Add OS-OAUTH1 to consumers links section

Currently, the links portion of consumers does not give
a valid url in the self section. It is missing the
OS-OAUTH1 portion.

Change-Id: I852637c0d13ab77351656fc3cb3b0720b318b03c
Closes-Bug: #1279492
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
Cleanup backends after each test

Instance variables lingering around after a test completes can waste a
significant amount of memory during a long test run. This commit adds a
general helper method that can be used by add test classes to clean up
instance variables.

Change-Id: Ie7554f4c2e6e80540ea9f393f29b0eb15cacdf8c
Cleanup of instance attrs in core tests

This will cleanup the instance attributes added by setUps in
keystone.tests.core.

Change-Id: Iba820cbd33403c75291f04fd330bf343721e590b
Cleans up test data from limit tests

Change-Id: Ibd10e800b3108bfbb5bce076d3c1566cac3eb138
Cleanup fixture data added to test instances

Change-Id: I1c8f603dc520f2483630a902a4f93fd5f04b05b4
Cleanup keystoneclient tests

I remove redundant calls to load backends and initialize the database to
hopefully make these tests a little faster. I also added some cleanup
for instance attributes to help with memory consumption.

Change-Id: If2afec11266e0cd4cd132800259c4d4f84644600