Browse Source

Fix issue with wrong call of SSHManager

Change-Id: I4761bcfd9f7d742035aa050ef258aaca9810618a
Vasily Gorin 2 years ago
parent
commit
db91c613b4

+ 3
- 2
plugin_test/helpers/openstack.py View File

@@ -337,12 +337,13 @@ def check_service(ip, commands):
337 337
                          example of commands:
338 338
                          ['nova-manage service list | grep vcenter-vmcluster1'
339 339
         """
340
-        SSHManager.execute_on_remote(ip=ip, cmd='source openrc')
340
+        ssh_manager = SSHManager()
341
+        ssh_manager.execute_on_remote(ip=ip, cmd='source openrc')
341 342
 
342 343
         for cmd in commands:
343 344
             wait(
344 345
                 lambda:
345
-                ':-)' in SSHManager.execute_on_remote(ip=ip,
346
+                ':-)' in ssh_manager.execute_on_remote(ip=ip,
346 347
                                                       cmd=cmd)['stdout'][-1],
347 348
                 timeout=200)
348 349
 

+ 1
- 2
plugin_test/tests/test_plugin_vmware_dvs_smoke.py View File

@@ -54,8 +54,7 @@ class TestDVSSmoke(TestBasic):
54 54
 
55 55
         self.show_step(1)
56 56
         self.show_step(2)
57
-        plugin.install_dvs_plugin(
58
-            self.ssh_manager.admin_ip)
57
+        plugin.install_dvs_plugin(self.ssh_manager.admin_ip)
59 58
 
60 59
         cmd = 'fuel plugins list'
61 60
 

Loading…
Cancel
Save