Refresh ssh verification mechanism

Last week there was a change in how ssh_verification in done in tempest
(see I76d818bf9e1bd26b1e499464fc9213764afee279) since those mechanisms
are shared and used by Ironic's scenario test we should also update it.

Change-Id: I68e9ee3faf747697cd5f50600ecadb15972cdd48
This commit is contained in:
Mauro S. M. Rodrigues 2016-02-03 13:23:14 -05:00
parent 7e734252e9
commit 5131d71b3d

View File

@ -112,12 +112,9 @@ class BaremetalBasicOps(baremetal_manager.BaremetalScenarioTest):
self.add_keypair() self.add_keypair()
self.boot_instance() self.boot_instance()
self.validate_ports() self.validate_ports()
self.verify_connectivity() ip_address = self.get_server_ip(self.instance)
if CONF.validation.connect_method == 'floating': self.get_remote_client(ip_address).validate_authentication()
floating_ip = self.create_floating_ip(self.instance)['ip'] vm_client = self.get_remote_client(ip_address)
self.verify_connectivity(ip=floating_ip)
vm_client = self.get_remote_client(self.instance)
# We expect the ephemeral partition to be mounted on /mnt and to have # We expect the ephemeral partition to be mounted on /mnt and to have
# the same size as our flavor definition. # the same size as our flavor definition.
@ -126,6 +123,6 @@ class BaremetalBasicOps(baremetal_manager.BaremetalScenarioTest):
self.verify_partition(vm_client, 'ephemeral0', '/mnt', eph_size) self.verify_partition(vm_client, 'ephemeral0', '/mnt', eph_size)
# Create the test file # Create the test file
self.create_timestamp( self.create_timestamp(
floating_ip, private_key=self.keypair['private_key']) ip_address, private_key=self.keypair['private_key'])
self.terminate_instance() self.terminate_instance()