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
| 65 | 65 | cls.encryption_type = \ |
| 66 | 66 | cls.admin_encryption_types_client.create_encryption_type( |
| 67 | 67 | 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'] | |
| 68 | 71 | |
| 69 | 72 | if cleanup: |
| 70 | 73 | cls.addClassResourceCleanup( |
| 225 | 228 | method='delete_encryption_type', |
| 226 | 229 | expected_status=expected_status, |
| 227 | 230 | 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'] | |
| 229 | 233 | ) |
| 230 | 234 | |
| 231 | 235 | def _create_encryption_type(self, expected_status): |
| 249 | 253 | expected_status=expected_status, |
| 250 | 254 | client=self.encryption_types_client, |
| 251 | 255 | volume_type_id=self.volume_type['id'], |
| 256 | encryption_id=self.volume_type['encryption_id'], | |
| 252 | 257 | **update_kwargs |
| 253 | 258 | ) |
| 254 | 259 | |