Codebase list cinder-tempest-plugin / add8298
Merge tag '1.15.0' into debian/dalmatian cinder-tempest-plugin 1.15.0 release meta:version: 1.15.0 meta:diff-start: - meta:series: dalmatian meta:branch: master meta:release-type: release meta:pypi: no meta:first: no meta:release:Author: Elod Illes <elod.illes@est.tech> meta:release:Commit: Elod Illes <elod.illes@est.tech> meta:release:Change-Id: I2161b328a1e4d4b1be417ff43d7b485477a3dc93 meta:release:Code-Review+2: Elod Illes <elod.illes@est.tech> meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org> meta:release:Workflow+1: Thierry Carrez <thierry@openstack.org> Thomas Goirand 1 year, 8 months ago
5 changed file(s) with 35 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
253253 Integration tests that runs with the ceph devstack plugin, py3
254254 and enable the backup service.
255255 vars:
256 # FIXME: change I29b1af0a4034decad to tempest added image format tests that
257 # cannot pass in this job because the image data takes a optimized path that
258 # bypasses nova's checks. Until the nova team decides on a strategy to handle
259 # this issue, we skip these tests.
260 tempest_exclude_regex: (tempest.api.image.v2.test_images_formats.ImagesFormatTest.test_compute_rejects)
256261 configure_swap_size: 4096
257262 devstack_local_conf:
258263 test-config:
303308 parent: cinder-tempest-plugin-lvm-barbican-base
304309 vars:
305310 devstack_localrc:
306 CINDER_ISCSI_HELPER: lioadm
307
308 - job:
309 name: cinder-tempest-plugin-lvm-lio-barbican-centos-8-stream
310 parent: cinder-tempest-plugin-lvm-lio-barbican
311 nodeset: devstack-single-node-centos-8-stream
312 description: |
313 This jobs configures Cinder with LVM, LIO, barbican and
314 runs tempest tests and cinderlib tests on CentOS Stream 8.
311 CINDER_TARGET_HELPER: lioadm
315312
316313 - job:
317314 name: cinder-tempest-plugin-lvm-lio-barbican-centos-9-stream
375372 parent: cinder-tempest-plugin-lvm-barbican-base
376373 vars:
377374 devstack_localrc:
378 CINDER_ISCSI_HELPER: tgtadm
375 CINDER_TARGET_HELPER: tgtadm
379376
380377 - job:
381378 name: cinder-tempest-plugin-cbak-s3
+0
-2
babel.cfg less more
0 [python: **.py]
1
1616 from tempest.lib import decorators
1717 from tempest.lib import exceptions
1818
19 import testtools
20
1921 from cinder_tempest_plugin.rbac.v3 import base as rbac_base
2022
2123 CONF = config.CONF
308310 def test_force_delete_snapshot(self):
309311 self._force_delete_snapshot(expected_status=exceptions.Forbidden)
310312
313 # We don't need to skip the unmanage because the failure should happen at
314 # the API level, so it should fail regardless of the driver support for
315 # unmanaging snapshots.
311316 @decorators.idempotent_id('35495666-b663-4c68-ba44-0695e30a6838')
312317 def test_unmanage_snapshot(self):
313318 self._unmanage_snapshot(expected_status=exceptions.Forbidden)
314319
320 @testtools.skipUnless(CONF.volume_feature_enabled.manage_snapshot,
321 'manage snapshots are disabled')
315322 @decorators.idempotent_id('d2d1326d-fb47-4448-a1e1-2d1219d30fd5')
316323 def test_manage_snapshot(self):
317324 self._manage_snapshot(
361368 def test_force_delete_snapshot(self):
362369 self._force_delete_snapshot(expected_status=exceptions.Forbidden)
363370
371 # We don't need to skip the unmanage because the failure should happen at
372 # the API level, so it should fail regardless of the driver support for
373 # unmanaging snapshots.
364374 @decorators.idempotent_id('dd7da3da-68ef-42f5-af1d-29803a4a04fd')
365375 def test_unmanage_snapshot(self):
366376 self._unmanage_snapshot(expected_status=exceptions.Forbidden)
367377
378 @testtools.skipUnless(CONF.volume_feature_enabled.manage_snapshot,
379 'manage snapshots are disabled')
368380 @decorators.idempotent_id('c2501d05-9bca-42d7-9ab5-c0d9133e762f')
369381 def test_manage_snapshot(self):
370382 self._manage_snapshot(
7070 # Create a multiattach volume
7171 volume = self.create_volume(volume_type=multiattach_vol_type['id'])
7272
73 # Create encrypted volume
74 encrypted_volume = self.create_encrypted_volume(
75 'luks', volume_type='luks')
73 # Create a volume with the default volume type
74 default_volume = self.create_volume()
7675
77 # Create a normal volume
78 simple_volume = self.create_volume()
76 # Create other volume
77 if CONF.compute_feature_enabled.attach_encrypted_volume:
78 other_volume = self.create_encrypted_volume(
79 'luks', volume_type='luks')
80 else:
81 # Create secondary volume type
82 second_vol_type = self.create_volume_type()
7983
80 # Attach normal and encrypted volumes (These volumes are not used in
84 other_volume = self.create_volume(
85 volume_type=second_vol_type['id'])
86
87 # Attach default and secondary volumes (These volumes are not used in
8188 # the current test but is used to emulate a real world scenario
8289 # where different types of volumes will be attached to the server)
83 self.attach_volume(server_1, simple_volume)
84 self.attach_volume(server_1, encrypted_volume)
90 self.attach_volume(server_1, default_volume)
91 self.attach_volume(server_1, other_volume)
8592
8693 instance_ip = self.get_server_ip(server_1)
8794
11 # of appearance. Changing the order has an impact on the overall integration
22 # process, which may cause wedges in the gate later.
33
4 hacking>=3.0.1,<3.1 # Apache-2.0
4 hacking>=6.1.0,<7.0 # Apache-2.0
55
66 coverage!=4.4,>=4.0 # Apache-2.0
77 python-subunit>=1.0.0 # Apache-2.0/BSD