Codebase list cinder-tempest-plugin / 4ae1dc8
Deprecate `volume_image_dep_tests` We alignment with tempest configuration settings 'enable_volume_image_dep_tests' To keep requirements.txt lower bound up to dated, this bumping the Tempest version to 40.0.0 which include the image dependency configuration - https://review.opendev.org/c/openstack/tempest/+/914198 Change-Id: I6f219122bfe1ba1d3851a5954cb9ffc6e04ad69c Maxim Sava 1 year, 6 months ago
5 changed file(s) with 26 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
146146 images_client.delete_image(image_id)
147147 images_client.wait_for_resource_deletion(image_id)
148148
149 @testtools.skipUnless(CONF.volume_feature_enabled.volume_image_dep_tests,
150 reason='Volume/image dependency tests not enabled.')
149 @testtools.skipUnless(
150 CONF.volume_feature_enabled.enable_volume_image_dep_tests,
151 reason='Volume/image dependency tests not enabled.')
151152 @utils.services('image', 'volume')
152153 @decorators.idempotent_id('7a9fba78-2e4b-42b1-9898-bb4a60685320')
153154 def test_image_volume_dependencies_1(self):
173174
174175 self.del_image(image['id'])
175176
176 @testtools.skipUnless(CONF.volume_feature_enabled.volume_image_dep_tests,
177 reason='Volume/image dependency tests not enabled.')
177 @testtools.skipUnless(
178 CONF.volume_feature_enabled.enable_volume_image_dep_tests,
179 reason='Volume/image dependency tests not enabled.')
178180 @utils.services('image', 'volume')
179181 @decorators.idempotent_id('0e20bd6e-440f-41d8-9b5d-fc047ac00423')
180182 def test_image_volume_dependencies_2(self):
209211
210212 self.del_image(image['id'])
211213
212 @testtools.skipUnless(CONF.volume_feature_enabled.volume_image_dep_tests,
213 reason='Volume/image dependency tests not enabled.')
214 @testtools.skipUnless(
215 CONF.volume_feature_enabled.enable_volume_image_dep_tests,
216 reason='Volume/image dependency tests not enabled.')
214217 @decorators.idempotent_id('e6050452-06bd-4c7f-9912-45178c83e379')
215218 @utils.services('image', 'volume')
216219 def test_image_volume_dependencies_3(self):
2323 help='Enable to run Cinder volume revert tests'),
2424 cfg.BoolOpt('volume_image_dep_tests',
2525 default=True,
26 help='Run tests for dependencies between images and volumes')
26 help='Run tests for dependencies between images and volumes',
27 deprecated_for_removal=True,
28 deprecated_reason='Dependency test config setting '
29 '`volume_image_dep_tests` '
30 'in cinder-tempest-plugin is deprecated.Alternatively '
31 '`CONF.volume_feature_enabled.enable_volume_image_dep_tests` '
32 'can be used for dependency tests.')
2733 ]
2834
2935 # The barbican service is discovered by config_tempest [1], and will appear
129129
130130
131131 class SnapshotDependencyTests(manager.ScenarioTest):
132 @testtools.skipUnless(CONF.volume_feature_enabled.volume_image_dep_tests,
133 'dependency tests not enabled')
132 @testtools.skipUnless(
133 CONF.volume_feature_enabled.enable_volume_image_dep_tests,
134 'dependency tests not enabled')
134135 @decorators.idempotent_id('e7028f52-f6d4-479c-8809-6f6cf96cfe0f')
135136 @utils.services('image', 'volume')
136137 def test_snapshot_removal(self):
0 deprecations:
1 - |
2 Dependency test config setting 'volume_image_dep_tests'
3 in cinder-tempest-plugin is deprecated.Alternatively tempest
4 `CONF.volume_feature_enabled.enable_volume_image_dep_tests` can be used
5 to for dependency tests.
44 pbr!=2.1.0,>=2.0.0 # Apache-2.0
55 oslo.config>=5.1.0 # Apache-2.0
66 oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
7 tempest>=34.2.0 # Apache-2.0
7 tempest>=40.0.0 # Apache-2.0