Make LIVE Tests configurable with ENV

To enable ldap live test, set the environmental variable
``ENABLE_LDAP_LIVE_TESTS`` to a non-false value.

To enable tls ldap live test, set the environmental variable
``ENABLE_TLS_LDAP_LIVE_TESTS`` to a non-false value.

To enable mysql sql live test, set the environmental variable
``ENABLE_LIVE_MYSQL_TESTS`` to a non-false value.

To enable postgres sql live test, set the environmental variable
``ENABLE_LIVE_POSTGRES_TESTS`` to a non-false value.

To enable db2 sql live test, set the environmental variable
``ENABLE_LIVE_DB2_TESTS`` to a non-false value.

This allows for running all tests in a standard run by simply setting
the appropriate environmental variables.

This moves the live tests to be skips if the specific live-test
environmental variables are not set.

Change-Id: I8c09a8dcfca3f9691306c5f416f688205171bda3
Closes-Bug: 1243392
Rename scope_to_bad_project() to test_scope_to_bad_project().

In class test_v3_federation.FederatedTokenTests rename method
scope_to_bad_project() to test_scope_to_bad_project() and make
tox launch it automatically.

Change-Id: Id5cbc9843eae122b4e1709ace494bf05e467f116
Closes-Bug: #1294393
Store groups ids objects list in the OS-FEDERATION object.

When issuing unscoped federated token store groups ids
object in the OS-FEDERATION objects instead of standalone
OS-FEDERATION:groups.

Change-Id: I116466c6eefae674d2245796dfd608b12d5d3e6d
Closes-Bug: #1294150
Merge "Rename scope_to_bad_project() to test_scope_to_bad_project()."
Merge "Make LIVE Tests configurable with ENV"
Add user_id when calling populate_roles_for_groups

The call to _populate_roles_for_groups was missing the user_id,
and was always defaulted to None.

closes bug: #1294781

Change-Id: Ic78c66a1cbd0a32630f7247f0176ced2de352921
Ability to turn off ldap referral chasing

When getting an ldap connection, check a config property to see if
referral chasing should be turned off.

Co-Authored-By: Dolph Mathews <dolph.mathews@gmail.com>
Change-Id: I3bb5cc11b3c5c9108cfa656d5f5de1eaeb103fe5
Closes-Bug: 1233365
Merge "Store groups ids objects list in the OS-FEDERATION object."
Merge "Ability to turn off ldap referral chasing"
Merge "Add user_id when calling populate_roles_for_groups"