You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/07/18 11:37:03 UTC

[6/6] git commit: updated refs/heads/master to e25cbd6

CLOUDSTACK-3168: Change in try_ssh function

Signed-off-by: Prasanna Santhanam <ts...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e25cbd66
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e25cbd66
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e25cbd66

Branch: refs/heads/master
Commit: e25cbd66d2b13db684f2f339b05aafa6b119bcfe
Parents: 8442e35
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Tue Jul 16 03:08:55 2013 -0400
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Jul 18 15:06:22 2013 +0530

----------------------------------------------------------------------
 test/integration/smoke/test_loadbalance.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e25cbd66/test/integration/smoke/test_loadbalance.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_loadbalance.py b/test/integration/smoke/test_loadbalance.py
index 7bf560c..4e1f0c1 100644
--- a/test/integration/smoke/test_loadbalance.py
+++ b/test/integration/smoke/test_loadbalance.py
@@ -188,17 +188,17 @@ class TestLoadBalance(cloudstackTestCase):
         cleanup_resources(cls.api_client, cls._cleanup)
         return
 
-    def try_ssh(self, src_nat_ip_addr, hostnames):
+    def try_ssh(self, ip_addr, hostnames):
         try:
             self.debug(
                 "SSH into VM (IPaddress: %s) & NAT Rule (Public IP: %s)" %
-                (self.vm_1.ipaddress, src_nat_ip_addr.ipaddress)
+                (self.vm_1.ipaddress, ip_addr)
             )
            # If Round Robin Algorithm is chosen,
             # each ssh command should alternate between VMs
 
             ssh_1  = remoteSSHClient(
-                src_nat_ip_addr.ipaddress,
+                ip_addr,
                 self.services['lbrule']["publicport"],
                 self.vm_1.username,
                 self.vm_1.password
@@ -207,7 +207,7 @@ class TestLoadBalance(cloudstackTestCase):
             self.debug(hostnames)
         except Exception as e:
             self.fail("%s: SSH failed for VM with IP Address: %s" %
-                                    (e, src_nat_ip_addr.ipaddress))
+                                    (e, ip_addr))
         time.sleep(self.services["lb_switch_wait"])
         return