]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat tests : remove pointless get_ssh_client
authorSteven Hardy <shardy@redhat.com>
Fri, 4 Jan 2013 15:20:43 +0000 (15:20 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 4 Jan 2013 17:55:29 +0000 (17:55 +0000)
get_ssh_client() doesn't actually do anything, so just reference the
attribute directly

Change-Id: I6a88b09953a7ca5a0e2675ac1c2c5a99b8cf724a
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/functional/test_WordPress_With_RDS.py
heat/tests/functional/util.py

index 384a88e68a4bdc6d50346cdeeb68c6b0fe996c04..7c66ef8fd55613dffc1c95641e9fa1c24e325898 100644 (file)
@@ -63,8 +63,7 @@ class WordPressRDSFunctionalTest(unittest.TestCase):
         # IP into the /usr/share one, which seems to work but could be a
         # template bug..
         stdin, stdout, sterr =\
-            self.WebServer.get_ssh_client().exec_command('grep DB_HOST '
-                                                         + wp_file)
+            self.WebServer.ssh.exec_command('grep DB_HOST ' + wp_file)
         result = stdout.readlines().pop().rstrip().split('\'')
         print "Checking wordpress DB_HOST, got %s" % result[3]
         self.assertTrue("localhost" != result[3])
index d2fcb5a9f3ef9e1239a4140242da409e1c08b51f..c8f935bc7a88e24f0c5d5f34fb06c245ebfe0cd0 100644 (file)
@@ -296,11 +296,6 @@ class Instance(object):
                 with open(filepaths[file]) as f:
                     self.testcase.assertEqual(data, f.read())
 
-    def get_ssh_client(self):
-        if self.ssh.get_transport() is not None:
-            return self.ssh
-        return None
-
     def get_sftp_client(self):
         if self.sftp is not None:
             return self.sftp