From 9968315d43bf9fc595d269aafecc78cfdcc06d17 Mon Sep 17 00:00:00 2001 From: Matt Riedemann <mriedem.os@gmail.com> Date: Thu, 14 Feb 2019 14:35:38 -0500 Subject: [PATCH] Conditionally mark test_attach_detach_volume as slow Based on average test times from the last 300 runs of the tempest-full job [1] this change marks the test_attach_detach_volume test as slow but only if SSH validation is enabled, which it is in tempest-full but might not be in other jobs that run it, for example in refstack which uses this test for interoperability certification. [1] http://paste.openstack.org/show/745114/ Change-Id: I47710321d8dfb0345c793e66bd09a5dd1933557b Related-Bug: #1783405 --- tempest/api/compute/volumes/test_attach_volume.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tempest/api/compute/volumes/test_attach_volume.py b/tempest/api/compute/volumes/test_attach_volume.py index f7b5b4bb09..8bb4eaab74 100644 --- a/tempest/api/compute/volumes/test_attach_volume.py +++ b/tempest/api/compute/volumes/test_attach_volume.py @@ -65,6 +65,8 @@ class BaseAttachVolumeTest(base.BaseV2ComputeTest): class AttachVolumeTestJSON(BaseAttachVolumeTest): @decorators.idempotent_id('52e9045a-e90d-4c0d-9087-79d657faffff') + # This test is conditionally marked slow if SSH validation is enabled. + @decorators.attr(type='slow', condition=CONF.validation.run_validation) def test_attach_detach_volume(self): # Stop and Start a server with an attached volume, ensuring that # the volume remains attached.