Save test_auth_token_middleware from unlimited recursion

For Python 2.6, BaseAuthTokenMiddlewareTest will be
equal to AdjustedBaseAuthTokenMiddlewareTest in
BaseAuthTokenMiddlewareTest.setUp thus leading to
infinite recursion.

Also, parent's setUp was incorrectly called by
BaseAuthTokenMiddlewareTest.setUp twice: at the beginning
and at the end of the function.

Change-Id: I63fce65866ef9d8aebe9eb60f7ceb17463de0989
Fixes: bug #1130200
Improve error message for missing endpoint

Horizon logs an error when it wants an endpoint
that the client can't find, but the error does not
say which endpoint is missing. This change includes
more details in the error message to make debugging
from the horizon logs easier.

Change-Id: I6f0aacd469500238f13a2178a220268d86d31fe5
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Sync memorycache and timeutils from oslo.

Change-Id: Ibc61b07fe65d97f9a0eb60e514e29bc12b2f9f4a
Remove test dep on name of dir (bug 1124283)

The name of the project's directory was previously hardcoded into the
tests, so tests would fail if executed from another directory (such as
"python-keystoneclient-master", as checked-out by keystone for
integration testing).

Also, the tests should now be executable on Windows.

Change-Id: I0a1e052054e509b0f795fd13f95a804e0c255907
Work better in server env with no keyrings

We should not try loading keyrings if we dont' have to. We
certainly should not print messages if keyrings are not even
needed

Fix for LP# 1145071

Change-Id: I700a2b40620359f6f1fbe03c6a6239d162ddea61
Switch to oslo.config.

The oslo-config package has been renamed. Switch to the new
version. (should fix SmokeStack).

Change-Id: Ied8804035d748932e7763cbaa9a7e295a887f1f5
Merge "Save test_auth_token_middleware from unlimited recursion"
Merge "Work better in server env with no keyrings"
Merge "Switch to oslo.config."
Merge "Remove test dep on name of dir (bug 1124283)"
help text improvements

from comments in Ibbc7fab2033d8f037262b465b98d1713579adfc2

v2: synced to the README
manpage will be updated in https://review.openstack.org/#/c/20976

Change-Id: I33006a4b935b9272fd99775936a17b3cfd08e294
Fix auth-token middleware to understand v3 tokens

Now that the Identity server supports v3 tokens, the auth_token
middleware should permit the in-line validation of such a token.  This
essentially means just setting any new environment items
that correspond to the new attributes that may be in a v3 token (such
as domains), as well as allowing for the slight format differences.

Most of the work in this change is actually in the unit tests, where
it was important to try and enable the existing tests to be run against
an auth_token middleware configured for both v2 and v3.  This meant
restructing the test class so that the token format is separated
from the individual tests and is initialized by the class Setup().

Since there are some new signed token formats included in this testing,
a new set of the signed tokens was generated.

Fixes Bug #1132390

Change-Id: I78b232d30f5310c39089fbbc8e56c23df291f89f