ipaddress is included

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-07-04 14:39:11 +05:30
parent bb6cd764c7
commit 248bea8b27

View File

@ -527,11 +527,11 @@ class TestLoadBalance(cloudstackTestCase):
lb_rule.assign(self.apiclient, [self.vm_1, self.vm_2]) lb_rule.assign(self.apiclient, [self.vm_1, self.vm_2])
hostnames = [] hostnames = []
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.debug("Hostnames: %s" % str(hostnames)) self.debug("Hostnames: %s" % str(hostnames))
self.assertIn( self.assertIn(
@ -556,7 +556,7 @@ class TestLoadBalance(cloudstackTestCase):
self.non_src_nat_ip.ipaddress, self.non_src_nat_ip.ipaddress,
self.vm_1.id, self.vm_1.id,
)) ))
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.assertIn( self.assertIn(
self.vm_1.name, self.vm_1.name,
@ -571,11 +571,11 @@ class TestLoadBalance(cloudstackTestCase):
# # Making hostnames list empty # # Making hostnames list empty
hostnames[:] = [] hostnames[:] = []
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.try_ssh(self.non_src_nat_ip, hostnames) self.try_ssh(self.non_src_nat_ip.ipaddress, hostnames)
self.debug("Hostnames: %s" % str(hostnames)) self.debug("Hostnames: %s" % str(hostnames))
self.assertIn( self.assertIn(
self.vm_1.name, self.vm_1.name,