Use the proper condition for volume encryption transfer tests
Like all other volume encryption tests (with attachment or boot
from volume), make sure that also the volume encryption transfer
tests are executed only when the appropriate configuration key
(compute_feature_enabled.attach_encrypted_volume) is set.
Change-Id: I21014b915dbecd0abaabb214f18f5241cc7c5b47
Luigi Toscano
1 year, 8 months ago
| 40 | 40 | @classmethod |
| 41 | 41 | def skip_checks(cls): |
| 42 | 42 | super(TransferEncryptedVolumeTest, cls).skip_checks() |
| 43 | if not CONF.compute_feature_enabled.attach_encrypted_volume: | |
| 44 | raise cls.skipException('Encrypted volume attach is not supported') | |
| 43 | 45 | if not CONF.service_available.barbican: |
| 44 | 46 | raise cls.skipException('Barbican is required') |
| 45 | 47 |