Add barbican_integration_enabled

Add new param to tempest conf for skip
tests when barbican deployed without integration

Closes-bug: PROD-26939

Change-Id: I418c7c27de850fd993a9c151149a0b61214cd4a3
diff --git a/_modules/runtest/tempest_sections/compute_feature_enabled.py b/_modules/runtest/tempest_sections/compute_feature_enabled.py
index 3fd36f8..5c41682 100644
--- a/_modules/runtest/tempest_sections/compute_feature_enabled.py
+++ b/_modules/runtest/tempest_sections/compute_feature_enabled.py
@@ -9,6 +9,7 @@
     options = [
         'api_extensions',
         'attach_encrypted_volume',
+        'barbican_integration_enabled',
         'block_migrate_cinder_iscsi',
         'block_migration_for_live_migration',
         'change_password',
@@ -54,6 +55,16 @@
         return False
 
     @property
+    def barbican_integration_enabled(self):
+        c = conditions.BaseRule('nova.controller.enabled', 'eq', True)
+        integration = self.get_item_when_condition_match(
+            'nova.controller.barbican.enabled', c)
+        if integration:
+            return True
+        else:
+            return False
+
+    @property
     def block_migrate_cinder_iscsi(self):
         c = conditions.BaseRule('cinder.volume.enabled', 'eq', True)
         backends = self.get_item_when_condition_match(