keystoneauth/keystoneauth1/fixture
Jamie Lennox d545c4e97d Add loading mock fixtures
An advantage of consuming keystoneauth is that the application doesn't
need to know the details of the authentication sequence to use the
library. Currently in testing they are having to provide a specific auth
plugin and this means their tests execute this full auth sequence and
they have to mock that out.

Create a SimpleTestPlugin that has the standard values that an
application might be interested in. This can be used in testing instead
of a real plugin to remove any network interaction and simplify the
authentication component so applications can focus on their problems.

We then create 2 fixtures that will mock out functions to load the
SimpleTestPlugin instead of a real plugin in application code.

The SimpleLoaderFixture will mock out all calls to keystoneauth plugin
loading and return the basic plugin, which is going to be sufficient for
testing for most applications.

The SimplePluginFixutre will mock out a specific function and return a
SimpleTestPlugin so that applications can mock out just a specific
section of loading code.

Change-Id: Ica852dcbd89323b23f1681403f8c57b5399bf4e7
2017-08-28 13:53:19 +10:00
..
__init__.py Add loading mock fixtures 2017-08-28 13:53:19 +10:00
discovery.py Remove use of positional decorator 2017-08-07 16:37:07 -07:00
exception.py Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
hooks.py Prevent JSON decode errors in the pre-record hook 2017-03-08 12:37:21 -06:00
keystoneauth_betamax.py Allow users to specify request matchers in Betamax 2017-03-08 11:55:26 -06:00
plugin.py Add loading mock fixtures 2017-08-28 13:53:19 +10:00
serializer.py Allow new cassettes to be recorded via fixture 2017-03-07 08:16:23 -06:00
v2.py Expose bind data via AccessInfo 2015-10-15 17:22:30 +11:00
v3.py Add is_domain to keystoneauth token 2016-05-18 21:56:36 -03:00