Merge "Fixed ssh timeout issue in long running tests"

This commit is contained in:
Jenkins 2017-01-10 20:53:44 +00:00 committed by Gerrit Code Review
commit f716f76db4
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(