Import order is fixed

In keystone/tests/fakeldap.py built-in lib import was among third party
libs imports.

Change-Id: I94d5dc54b94193c2da2509589402b738daa4b575
Use config fixture

Use the configuration fixture instead of the old opt_in_group and
opt methods.

Where possible the config_fixture usage done from within setUp
has been moved to config_overrides() method. Notably a number of
the Policy.json tests cannot be moved into config_overrides
due to the need to control how and when policy data is loaded.

Change-Id: I1662627cca30890cc3f3da83772132cec7bd58e0
Remove unnecessary calls to self.config()

tests.TestCase:setUp calls self.config(), so there's no need to call
it again.

Change-Id: I02d460d5b0fa7b885f1134198c3215bc69649461
Call an existing method in sync cache for revoke events

The cache used for synchronizing the revocation tree across
green threads had an issue where it was calling a non-existant
method ``remove`` instead of ``remove_event``. The correct method
is now being called and an expanded test to exercise the synchronize
method has been added.

Change-Id: I3fe47fa51f88aab89480831b2d95746319f82ceb
Closes-Bug: 1289935
Merge "Use config fixture"
Configurable temporary directory for tests

The temporary directory used for testing was always
keystone/tests/tmp. This change makes it so that the temporary
directory can be configured by setting the KEYSTONE_TEST_TEMP_DIR
environment variable. For example:

 $ mkdir ~/keystone_test_temp
 $ sudo mount -t tmpfs -o size=16M tmpfs ~/keystone_test_temp &&
    sudo chown $USER: ~/keystone_test_temp
 $ KEYSTONE_TEST_TEMP_DIR=$HOME/keystone_test_temp tox -e py27

Change-Id: I41f86a23882a382ab19747e008720c0da5fd56e6
Merge "Call an existing method in sync cache for revoke events"
Merge "Remove unnecessary calls to self.config()"
Merge "Import order is fixed"
Add missing documentation for enabling federation auth plugin

The saml2 method and plugin must be declared in keystone.conf for
federation to be completely enabled.

Change-Id: Id68ffdc8a84d093406c836ee6988bfdb9e58d50f
Closes-Bug: #1290582
Co-Authored-By: Florent Flament <florent.flament-ext@cloudwatt.com>
Add missing documentation for enabling oauth1 auth plugin

The oauth1 method and plugin must be declared in keystone.conf for
OS-OAUTH1 to be completely enabled.

Change-Id: I23b479d3cd462ea3823dee0c281a26486f8600ac
Closes-Bug: #1290966
Merge "Configurable temporary directory for tests"
Merge "Add missing documentation for enabling oauth1 auth plugin"
Fixup region description uniqueness

Add a db migration for relaxing the uniqueness constraint on the
'description' column in the region table.

The migration will only occur if there is a unique index constraint
on the 'description' table. The previous migration of 037 has
had the unique index dropped on table creation. 043 will only be
run in the case of a deployment tracking closer to master than
the official releases.

Related-Bug: 1284972
Change-Id: I8198aec2fea4ff6a88938696499a60ebc0b16a47
Merge "Fixup region description uniqueness"