mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Changing host password to retrieve from testdata
This commit is contained in:
		
							parent
							
								
									c730bc3491
								
							
						
					
					
						commit
						3d04b52d7e
					
				| @ -73,8 +73,8 @@ class TestvGPUWindowsVm(cloudstackTestCase): | |||||||
| 
 | 
 | ||||||
|              for ghost in hosts : |              for ghost in hosts : | ||||||
|                  if ghost.hypervisorversion >= "6.2.0": |                  if ghost.hypervisorversion >= "6.2.0": | ||||||
|                     #sshClient = SshClient(host=ghost.ipaddress, port=22, user='root',passwd="host_password") |                     #sshClient = SshClient(host=ghost.ipaddress, port=22, user='root',passwd=cls.testdata["host_password"]) | ||||||
|                     sshClient = SshClient(host=ghost.ipaddress, port=22, user='root',passwd="host_password") |                     sshClient = SshClient(host=ghost.ipaddress, port=22, user='root',passwd=cls.testdata["host_password"]) | ||||||
| 
 | 
 | ||||||
|                     if ghost.hypervisorversion == "6.2.0": |                     if ghost.hypervisorversion == "6.2.0": | ||||||
|                        res = len(sshClient.execute("xe patch-list uuid=0850b186-4d47-11e3-a720-001b2151a503")) |                        res = len(sshClient.execute("xe patch-list uuid=0850b186-4d47-11e3-a720-001b2151a503")) | ||||||
| @ -341,7 +341,7 @@ class TestvGPUWindowsVm(cloudstackTestCase): | |||||||
|                                self.apiclient, |                                self.apiclient, | ||||||
|                                id=hostid |                                id=hostid | ||||||
|                                ) |                                ) | ||||||
|         ssh_client = SshClient(host=vgpu_host[0].ipaddress, port=22, user='root',passwd="host_password") |         ssh_client = SshClient(host=vgpu_host[0].ipaddress, port=22, user='root',passwd=self.testdata["host_password"]) | ||||||
|         """ |         """ | ||||||
|         Get vGPU type model |         Get vGPU type model | ||||||
|         """ |         """ | ||||||
| @ -775,7 +775,7 @@ class TestvGPUWindowsVm(cloudstackTestCase): | |||||||
|                hypervisor="XenServer" |                hypervisor="XenServer" | ||||||
|                ) |                ) | ||||||
| 
 | 
 | ||||||
|         sshClient1 = SshClient(host=lhosts[0].ipaddress, port=22, user='root',passwd="host_password") |         sshClient1 = SshClient(host=lhosts[0].ipaddress, port=22, user='root',passwd=self.testdata["host_password"]) | ||||||
|         totalxenhosts=len(sshClient1.execute("xe host-list | grep uuid")) |         totalxenhosts=len(sshClient1.execute("xe host-list | grep uuid")) | ||||||
| 
 | 
 | ||||||
|         for hostlist in lhosts: |         for hostlist in lhosts: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user