mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Fixed few indentation errors and removed unwanted imports
This commit is contained in:
		
							parent
							
								
									175ead4ea9
								
							
						
					
					
						commit
						4473bb2185
					
				| @ -25,7 +25,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| import datetime | import datetime | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -807,13 +807,11 @@ class TestAssociatePublicIp(cloudstackTestCase): | |||||||
|         try: |         try: | ||||||
| 
 | 
 | ||||||
|             self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress) |             self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress) | ||||||
| 
 |             SshClient(portableip.ipaddress.ipaddress, | ||||||
|            SshClient( |                       self.services['natrule']["publicport"], | ||||||
|                         portableip.ipaddress.ipaddress, |                       self.virtual_machine.username, | ||||||
|                         self.services['natrule']["publicport"], |                       self.virtual_machine.password | ||||||
|                         self.virtual_machine.username, |                       ) | ||||||
|                         self.virtual_machine.password |  | ||||||
|                         ) |  | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|             self.fail("Exception while SSHing : %s" % e) |             self.fail("Exception while SSHing : %s" % e) | ||||||
| 
 | 
 | ||||||
| @ -1532,13 +1530,11 @@ class TestPortableIpTransferAcrossNetworks(cloudstackTestCase): | |||||||
|         try: |         try: | ||||||
| 
 | 
 | ||||||
|             self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress) |             self.debug("Trying to SSH to ip: %s" % portableip.ipaddress.ipaddress) | ||||||
| 
 |             SshClient(portableip.ipaddress.ipaddress, | ||||||
|            SshClient( |                       self.services['natrule']["publicport"], | ||||||
|                         portableip.ipaddress.ipaddress, |                       self.virtual_machine2.username, | ||||||
|                         self.services['natrule']["publicport"], |                       self.virtual_machine2.password | ||||||
|                         self.virtual_machine2.username, |                       ) | ||||||
|                         self.virtual_machine2.password |  | ||||||
|                         ) |  | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|             self.fail("Exception while SSHing : %s" % e) |             self.fail("Exception while SSHing : %s" % e) | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -656,12 +656,11 @@ class TestRevokeIngressRule(cloudstackTestCase): | |||||||
|         # SSH Attempt to VM should fail |         # SSH Attempt to VM should fail | ||||||
|         with self.assertRaises(Exception): |         with self.assertRaises(Exception): | ||||||
|             self.debug("SSH into VM: %s" % self.virtual_machine.id) |             self.debug("SSH into VM: %s" % self.virtual_machine.id) | ||||||
|            SshClient( |             SshClient(self.virtual_machine.ssh_ip, | ||||||
|                                         self.virtual_machine.ssh_ip, |                       self.virtual_machine.ssh_port, | ||||||
|                                         self.virtual_machine.ssh_port, |                       self.virtual_machine.username, | ||||||
|                                         self.virtual_machine.username, |                       self.virtual_machine.password | ||||||
|                                         self.virtual_machine.password |                     ) | ||||||
|                                         ) |  | ||||||
|         return |         return | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -21,7 +21,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| from marvin.integration.lib.utils import is_snapshot_on_nfs | from marvin.integration.lib.utils import is_snapshot_on_nfs | ||||||
| import os | import os | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -22,7 +22,6 @@ import marvin | |||||||
| from nose.plugins.attrib import attr | from nose.plugins.attrib import attr | ||||||
| from marvin.cloudstackTestCase import * | from marvin.cloudstackTestCase import * | ||||||
| from marvin.cloudstackAPI import * | from marvin.cloudstackAPI import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
|  | |||||||
| @ -20,7 +20,6 @@ | |||||||
| import marvin | import marvin | ||||||
| from marvin.cloudstackTestCase import * | from marvin.cloudstackTestCase import * | ||||||
| from marvin.cloudstackAPI import * | from marvin.cloudstackAPI import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
|  | |||||||
| @ -24,7 +24,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| import urllib | import urllib | ||||||
| from random import random | from random import random | ||||||
| #Import System modules | #Import System modules | ||||||
|  | |||||||
| @ -25,7 +25,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| import datetime | import datetime | ||||||
| # For more info on ddt refer to http://ddt.readthedocs.org/en/latest/api.html#module-ddt | # For more info on ddt refer to http://ddt.readthedocs.org/en/latest/api.html#module-ddt | ||||||
| from ddt import ddt, data | from ddt import ddt, data | ||||||
|  | |||||||
| @ -25,7 +25,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| import datetime | import datetime | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -25,7 +25,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| from marvin.codes import PASS | from marvin.codes import PASS | ||||||
| 
 | 
 | ||||||
| import time | import time | ||||||
|  | |||||||
| @ -25,7 +25,6 @@ from marvin.cloudstackAPI import * | |||||||
| from marvin.integration.lib.utils import * | from marvin.integration.lib.utils import * | ||||||
| from marvin.integration.lib.base import * | from marvin.integration.lib.base import * | ||||||
| from marvin.integration.lib.common import * | from marvin.integration.lib.common import * | ||||||
| from marvin.sshClient import SshClient |  | ||||||
| import datetime | import datetime | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user