Add ability to skip for test_signed_image_upload_boot_snapshot
when environment doesn't have an ability to sing image,
this test will fail, for this case
added test skip condition.
Change-Id: I426e0eb9e94386578d5ee2e756edd128a2dd9f0a
Related-prod: PRODX-362
(cherry picked from commit c272618c8bcca3172aedfe38205e88e563ffeb90)
diff --git a/barbican_tempest_plugin/tests/scenario/test_image_signing.py b/barbican_tempest_plugin/tests/scenario/test_image_signing.py
index 191b613..fb4d866 100644
--- a/barbican_tempest_plugin/tests/scenario/test_image_signing.py
+++ b/barbican_tempest_plugin/tests/scenario/test_image_signing.py
@@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import testtools
+
from oslo_log import log as logging
from tempest.api.compute import base as compute_base
from tempest.common import utils
@@ -98,6 +100,9 @@
@decorators.idempotent_id('f0603dfd-8b2c-44e2-8b0f-d65c87aab257')
@utils.services('compute', 'image')
+ @testtools.skipUnless(
+ CONF.compute_feature_enabled.barbican_integration_enabled,
+ 'Barbican integration must be enabled.')
def test_signed_image_upload_boot_snapshot(self):
"""Test that Glance can snapshot an instance using a signed image.