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
This commit is contained in:
Leticia Wanderley 2017-08-04 00:42:59 -03:00
parent 644a6b9f10
commit 1d141daaf6

View File

@ -297,6 +297,12 @@ function configure_tempest {
# Newton and Ocata. This option can be removed after Mitaka is end of life.
iniset $TEMPEST_CONFIG identity-feature-enabled forbid_global_implied_dsr True
# When LDAP is enabled domain specific drivers are also enabled and the users
# and groups identity tests must adapt to this scenario
if is_service_enabled ldap; then
iniset $TEMPEST_CONFIG identity-feature-enabled domain_specific_drivers True
fi
# Image
# We want to be able to override this variable in the gate to avoid
# doing an external HTTP fetch for this test.