Browse code

Feature flag on tempest conf to notify enabled LDAP

This adds a new feature flag on tempest conf whenever LDAP is enabled.
When this flag is set to True Tempest users and groups identity tests
adapt to fetch users and groups from different domains.

Change-Id: I368ddf34908b906355c422bd1afd6ab9b1a80053
Depends-On: Iedb470c51fa2174ab7651e6b7e22eff1f25f7aac

Leticia Wanderley authored on 2017/08/04 12:42:59
Showing 1 changed files
... ...
@@ -297,6 +297,12 @@ function configure_tempest {
297 297
     # Newton and Ocata. This option can be removed after Mitaka is end of life.
298 298
     iniset $TEMPEST_CONFIG identity-feature-enabled forbid_global_implied_dsr True
299 299
 
300
+    # When LDAP is enabled domain specific drivers are also enabled and the users
301
+    # and groups identity tests must adapt to this scenario
302
+    if is_service_enabled ldap; then
303
+        iniset $TEMPEST_CONFIG identity-feature-enabled domain_specific_drivers True
304
+    fi
305
+
300 306
     # Image
301 307
     # We want to be able to override this variable in the gate to avoid
302 308
     # doing an external HTTP fetch for this test.