BaseAuthTokenMiddlewareTest.setUp call super normally

Python has its own way of calling the super impl. Use it.

Change-Id: I3318c130ca60c6579ee9c3aecb0781a0f0f5fc32
Improve help strings

For consistency of help strings, add "." where missing, improve
capitalization in some cases.

Change-Id: I628b331b306ac606dcfdbfb55a743600e611ed7c
add context to keystonemiddleware

this pulls in context module from oslo as it's required for
notifications (which will be used in the audit middleware).

syncs context file to: Id66aba0c600896521a4a236e0a97859735419357

Implements: blueprint audit-middleware
Change-Id: Id983775129dcc795ab91d37d3ba7d90cc6f6a7a9
Remove netaddr package requirement

An auth_host with : in the name is going to require wrapping in []
because otherwise the : is confused with the port separator, so the
code doesn't have to verify that it's an IPv6 address. This allows
the removal of the netaddr package requirement.

Change-Id: I0d4c622b360769f1a7587d3c230e50d22f5b75a4
Use correct name of oslo debugger script

As of oslotest 1.2.0 the oslo debugger script dropped the .sh
extension. This patch corrects the use the script name in tox.ini

Change-Id: I62d657fb850ed51686c2f37b1962654f75d1aad0
Merge "BaseAuthTokenMiddlewareTest.setUp call super normally"
Merge "Improve help strings"
Merge "Remove netaddr package requirement"
Merge "Use correct name of oslo debugger script"
Updated from global requirements

Change-Id: I4a932bbccd2a922dc593839ea9793700879faccd
Use connection retrying from keystoneclient

Keystoneclient added retrying requests on connection errors in 0.11. We
should use this in preference to our own scheme.

This is not exactly the same as the existing code. The existing code
catches any non-HTTP exceptions and retries the request. This has been a
problem in the past for example with AttributeErrors and such being
retried that will never succeed.

This implementation that will only retry when you get an actual
connection error is more correct.

I also remove the NetworkError exception. This is only used internally
and it is easier to simply catch the connection exceptions where the
NetworkError used to be.

Change-Id: I6c3c971ea1964cfbf50519e8faf0a0c7dff47598
Use an adapter in IdentityServer

Now that we are using plugins we can use the adapter to set the default
values on requests rather than push it through _http_request.

Remove the session from the base class. The only reference to it we need
will be in the adapter and maintained by the IdentityServer.

Removed one test assertion. It only seems to test that a config value is
passed through the class and the final location for this is getting
nested deeper and deeper. If the identity_uri config value wasn't being
passed we would have a lot more test failures so I believe it's safe to
remove.

Change-Id: Id092e8f42f843dbfbc1c30589b50ba341ccf4aae
Add versions to requests

Make the auth plugin work more like a regular plugin such that the
values returned from get_endpoint are version dependant and the requests
made to the session all have a version number.

For compatibility there is still no lookup of the correct versioned URL
it just appends the default.

Change-Id: I2a8258ebd584aa35a94369fe4673dfd5ee07715b
Convert authentication into a plugin

Extract all the information that is related to auth and make it into a
keystoneclient auth plugin. This will make it easier later to substitute
this auth plugin for another auth plugin.

Blueprint: pluggable-auth
Change-Id: Ibf9bc1dbf26f396bac09a96398a6467afc30f529
Use Discovery fixtures for auth token tests

These structures can be provided by keystoneclient Fixtures. The current
examples are actually incorrect as there are no links provided by the v2
discovery response.

Whilst at it we may as well use the built-in JSON handling of the
requests-mock library rather than encode it ourselves.

Change-Id: Icf227971458c92db0b0c77b5e3d08d1a9fec795e
Update python-keystoneclient reference

HACKING.rst has a python-keystoneclient reference.

Change-Id: If9603b604b4cb5b863d323a156926610234f09db
Adds space after # in comments

This was making some pep8 checkers to fail.

Change-Id: I50a0eba22fa40e075e019477b9a97630785a9dc5
Merge "add context to keystonemiddleware"
Merge "Updated from global requirements"
Merge "Adds space after # in comments"