Fixed ssh timeout issue in long running tests

Change-Id: I6222e81804d89ccf7b1f00d22195038084396dc5
This commit is contained in:
Jose Idar 2017-01-10 13:23:55 -06:00
parent 1cdfb1d38a
commit c0e7a8c234
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,9 @@ class VolumeCloningIntegrationSmokeTests(ComputeIntegrationTestFixture):
source_volid=self.test_volume.id_)
assert self.volume_clone is not None, "Unable to clone volume"
# Re-connect to server to prevent timeout issues
self.server_conn = self.connect_to_instance(self.test_server)
# Attach clone to server(self):
self.clone_attachment = self.attach_volume_and_get_device_info(
self.server_conn, self.test_server.id, self.volume_clone.id_)

View File

@ -127,6 +127,9 @@ class VolumeSnapshotIntegrationSmokeTests(ComputeIntegrationTestFixture):
self.volumes.behaviors.delete_snapshot_confirmed,
self.test_snapshot.id_)
# Re-connect to server to prevent timeout issues
self.server_conn = self.connect_to_instance(self.test_server)
# Restore snapshot to new volume
self.restored_snapshot_volume = \
self.volumes.behaviors.create_available_volume(