Skip unsupported cryptoproviders tests in tempest

Related-Prod: PRODX-26237
Change-Id: Ia7dcce95c4b500adad07ea21005e4503a58893cc
(cherry picked from commit 3f437f883c517ffbbabf5f3c7f3e3f94de3e09db)
diff --git a/tempest/config.py b/tempest/config.py
index 38d6ccc..39c8d1d 100644
--- a/tempest/config.py
+++ b/tempest/config.py
@@ -895,7 +895,10 @@
     cfg.BoolOpt('cluster_active_active',
                 default=False,
                 help='The boolean flag to indicate if active-active mode '
-                     'is used by volume backend.')
+                     'is used by volume backend.'),
+    cfg.ListOpt('supported_crypto_providers',
+                default=['luks'],
+                help='A list of enabled cryptoproviders for volumes')
 ]
 
 
diff --git a/tempest/scenario/test_encrypted_cinder_volumes.py b/tempest/scenario/test_encrypted_cinder_volumes.py
index e2e54d2..42811b2 100644
--- a/tempest/scenario/test_encrypted_cinder_volumes.py
+++ b/tempest/scenario/test_encrypted_cinder_volumes.py
@@ -58,6 +58,9 @@
     @decorators.attr(type='slow')
     @testtools.skipIf(getattr(CONF.service_available, 'barbican', False),
                       'Image Signature Verification enabled')
+    @testtools.skipUnless(
+        'luks' in CONF.volume_feature_enabled.supported_crypto_providers,
+        'Cryptoprovider is not supported.')
     @utils.services('compute', 'volume', 'image')
     def test_encrypted_cinder_volumes_luks(self):
         server = self.launch_instance()
@@ -69,6 +72,9 @@
     @decorators.attr(type='slow')
     @testtools.skipIf(getattr(CONF.service_available, 'barbican', False),
                       'Image Signature Verification enabled')
+    @testtools.skipUnless(
+        'plain' in CONF.volume_feature_enabled.supported_crypto_providers,
+        'Cryptoprovider is not supported.')
     @utils.services('compute', 'volume', 'image')
     def test_encrypted_cinder_volumes_cryptsetup(self):
         server = self.launch_instance()