Fix missing key

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-08-07 22:52:45 +05:30
parent 1a46bbd893
commit d1c01a79a5
3 changed files with 5 additions and 5 deletions

View File

@ -282,7 +282,7 @@ class TestAccountSnapshotClean(cloudstackTestCase):
ssh_client.execute(c) ssh_client.execute(c)
except Exception as e: except Exception as e:
self.fail("SSH failed for management server: %s - %s" % self.fail("SSH failed for management server: %s - %s" %
(self.services["mgmt_server"]["ipaddress"], e)) (self.config.mgtSvr[0].mgtSvrIp, e))
res = str(snapshots) res = str(snapshots)
return res.count(snapshot_id) == 1 return res.count(snapshot_id) == 1
@ -401,4 +401,4 @@ class TestAccountSnapshotClean(cloudstackTestCase):
) )
self.assertFalse(self.is_snapshot_on_nfs(snapshot_id), "Snapshot was still found no NFS after account gc") self.assertFalse(self.is_snapshot_on_nfs(snapshot_id), "Snapshot was still found no NFS after account gc")
return return

View File

@ -270,7 +270,7 @@ class TestSnapshotLimit(cloudstackTestCase):
ssh_client.execute(c) ssh_client.execute(c)
except Exception as e: except Exception as e:
self.fail("SSH failed for management server: %s - %s" % self.fail("SSH failed for management server: %s - %s" %
(self.services["mgmt_server"]["ipaddress"], e)) (self.config.mgtSvr[0].mgtSvrIp, e))
res = str(snapshots) res = str(snapshots)
return res.count(snapshot_id) == 1 return res.count(snapshot_id) == 1
@ -384,4 +384,4 @@ class TestSnapshotLimit(cloudstackTestCase):
qresult = qresultset[0] qresult = qresultset[0]
snapshot_id = qresult[0] snapshot_id = qresult[0]
self.is_snapshot_on_nfs(snapshot_id) self.is_snapshot_on_nfs(snapshot_id)
return return

View File

@ -262,7 +262,7 @@ class TestSnapshots(cloudstackTestCase):
ssh_client.execute(c) ssh_client.execute(c)
except Exception as e: except Exception as e:
self.fail("SSH failed for management server: %s - %s" % self.fail("SSH failed for management server: %s - %s" %
(self.services["mgmt_server"]["ipaddress"], e)) (self.config.mgtSvr[0].mgtSvrIp, e))
res = str(snapshots) res = str(snapshots)
return res.count(snapshot_id) == 1 return res.count(snapshot_id) == 1