Codebase list cinder-tempest-plugin / 9df6c9d
Add 'encryption_id' parameter to enc type calls Change Ieca29000b575 in tempest revised the update and delete encryption type methods for the encryption_type_client to include the encryption_id, as is specified in the Block Storage API ref. Thus we need to update our usage of the encryption_type_client to pass the encryption_id parameter. Partial-bug: #1835186 Change-Id: I14d2eb8ec8f4343464710124df0c108464bece1b Brian Rosmaita 1 year, 5 months ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6565 cls.encryption_type = \
6666 cls.admin_encryption_types_client.create_encryption_type(
6767 volume_type['id'], **cls.create_kwargs)['encryption']
68 # NOTE: strictly speaking, this is NOT a volume_type field;
69 # we save it for convenience in these tests
70 volume_type['encryption_id'] = cls.encryption_type['encryption_id']
6871
6972 if cleanup:
7073 cls.addClassResourceCleanup(
225228 method='delete_encryption_type',
226229 expected_status=expected_status,
227230 client=self.encryption_types_client,
228 volume_type_id=volume_type['id']
231 volume_type_id=volume_type['id'],
232 encryption_id=volume_type['encryption_id']
229233 )
230234
231235 def _create_encryption_type(self, expected_status):
249253 expected_status=expected_status,
250254 client=self.encryption_types_client,
251255 volume_type_id=self.volume_type['id'],
256 encryption_id=self.volume_type['encryption_id'],
252257 **update_kwargs
253258 )
254259