mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix invalid references
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
63f303933a
commit
8ac1796226
@ -230,12 +230,12 @@ class TestAccountSnapshotClean(cloudstackTestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
isinstance(qresultset, list),
|
isinstance(qresultset, list),
|
||||||
True,
|
True,
|
||||||
"Invalid db query response for snapshot %s" % self.snapshot.id
|
"Invalid db query response for snapshot %s" % snapshot_id
|
||||||
)
|
)
|
||||||
self.assertNotEqual(
|
self.assertNotEqual(
|
||||||
len(qresultset),
|
len(qresultset),
|
||||||
0,
|
0,
|
||||||
"No such snapshot %s found in the cloudstack db" % self.snapshot.id
|
"No such snapshot %s found in the cloudstack db" % snapshot_id
|
||||||
)
|
)
|
||||||
snapshotPath = qresultset[0][0]
|
snapshotPath = qresultset[0][0]
|
||||||
nfsurl = secondaryStore.url
|
nfsurl = secondaryStore.url
|
||||||
|
|||||||
@ -218,12 +218,12 @@ class TestSnapshotLimit(cloudstackTestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
isinstance(qresultset, list),
|
isinstance(qresultset, list),
|
||||||
True,
|
True,
|
||||||
"Invalid db query response for snapshot %s" % self.snapshot.id
|
"Invalid db query response for snapshot %s" % snapshot_id
|
||||||
)
|
)
|
||||||
self.assertNotEqual(
|
self.assertNotEqual(
|
||||||
len(qresultset),
|
len(qresultset),
|
||||||
0,
|
0,
|
||||||
"No such snapshot %s found in the cloudstack db" % self.snapshot.id
|
"No such snapshot %s found in the cloudstack db" % snapshot_id
|
||||||
)
|
)
|
||||||
snapshotPath = qresultset[0][0]
|
snapshotPath = qresultset[0][0]
|
||||||
nfsurl = secondaryStore.url
|
nfsurl = secondaryStore.url
|
||||||
@ -373,12 +373,12 @@ class TestSnapshotLimit(cloudstackTestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
isinstance(qresultset, list),
|
isinstance(qresultset, list),
|
||||||
True,
|
True,
|
||||||
"Invalid db query response for snapshot %s" % self.snapshot.id
|
"Invalid db query response for snapshot %s" % snapshot.id
|
||||||
)
|
)
|
||||||
self.assertNotEqual(
|
self.assertNotEqual(
|
||||||
len(qresultset),
|
len(qresultset),
|
||||||
0,
|
0,
|
||||||
"No such snapshot %s found in the cloudstack db" % self.snapshot.id
|
"No such snapshot %s found in the cloudstack db" % snapshot.id
|
||||||
)
|
)
|
||||||
|
|
||||||
qresult = qresultset[0]
|
qresult = qresultset[0]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user