From a0000e4e9a4a2d59b1156e7dde04d19eafae05c8 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Thu, 25 Jun 2015 12:34:42 -0700 Subject: [PATCH] Move to the keystoneauth1 namespace Conver from the keystoneauth namespace to keystoneauth1. This is to ensure that is is possible to install all versions of keystoneauth side-by-side. Change-Id: Ibbaf11525980c8edb5968d8b8ee19c55094e77d8 --- .testr.conf | 2 +- doc/source/authentication-plugins.rst | 108 +++++++++--------- doc/source/conf.py | 10 +- doc/source/using-sessions.rst | 20 ++-- {keystoneauth => keystoneauth1}/__init__.py | 0 {keystoneauth => keystoneauth1}/_utils.py | 0 {keystoneauth => keystoneauth1}/access.py | 8 +- {keystoneauth => keystoneauth1}/adapter.py | 2 +- .../auth/__init__.py | 6 +- {keystoneauth => keystoneauth1}/auth/base.py | 4 +- {keystoneauth => keystoneauth1}/auth/cli.py | 4 +- {keystoneauth => keystoneauth1}/auth/conf.py | 2 +- .../auth/identity/__init__.py | 8 +- .../auth/identity/access.py | 4 +- .../auth/identity/base.py | 8 +- .../auth/identity/generic/__init__.py | 6 +- .../auth/identity/generic/base.py | 6 +- .../auth/identity/generic/password.py | 10 +- .../auth/identity/generic/token.py | 8 +- .../auth/identity/v2.py | 8 +- .../auth/identity/v3/__init__.py | 10 +- .../auth/identity/v3/base.py | 8 +- .../auth/identity/v3/federation.py | 4 +- .../auth/identity/v3/k2k.py | 12 +- .../auth/identity/v3/password.py | 2 +- .../auth/identity/v3/token.py | 2 +- .../auth/token_endpoint.py | 2 +- {keystoneauth => keystoneauth1}/discover.py | 8 +- .../exceptions/__init__.py | 18 +-- .../exceptions/auth.py | 2 +- .../exceptions/auth_plugins.py | 2 +- .../exceptions/base.py | 0 .../exceptions/catalog.py | 2 +- .../exceptions/connection.py | 2 +- .../exceptions/discovery.py | 2 +- .../exceptions/http.py | 4 +- .../exceptions/response.py | 2 +- .../exceptions/service_providers.py | 2 +- .../fixture/__init__.py | 8 +- .../fixture/discovery.py | 2 +- .../fixture/exception.py | 0 {keystoneauth => keystoneauth1}/fixture/v2.py | 4 +- {keystoneauth => keystoneauth1}/fixture/v3.py | 4 +- .../hacking/__init__.py | 0 .../hacking/checks.py | 4 +- .../service_catalog.py | 4 +- .../service_providers.py | 2 +- {keystoneauth => keystoneauth1}/session.py | 8 +- .../tests/__init__.py | 0 .../tests/unit/__init__.py | 0 .../tests/unit/auth/__init__.py | 0 .../tests/unit/auth/test_access.py | 12 +- .../tests/unit/auth/test_cli.py | 6 +- .../tests/unit/auth/test_conf.py | 12 +- .../tests/unit/auth/test_identity_common.py | 16 +-- .../tests/unit/auth/test_identity_v2.py | 8 +- .../tests/unit/auth/test_identity_v3.py | 14 +-- .../unit/auth/test_identity_v3_federation.py | 14 +-- .../tests/unit/auth/test_loading.py | 2 +- .../tests/unit/auth/test_password.py | 10 +- .../tests/unit/auth/test_token.py | 10 +- .../tests/unit/auth/test_token_endpoint.py | 6 +- .../tests/unit/auth/utils.py | 12 +- .../tests/unit/k2k_fixtures.py | 0 .../tests/unit/keystoneauth_fixtures.py | 0 .../tests/unit/test_discovery.py | 6 +- .../tests/unit/test_fixtures.py | 4 +- .../tests/unit/test_hacking_checks.py | 4 +- .../tests/unit/test_session.py | 10 +- .../tests/unit/utils.py | 0 openstack-common.conf | 2 +- setup.cfg | 20 ++-- tox.ini | 4 +- 73 files changed, 258 insertions(+), 258 deletions(-) rename {keystoneauth => keystoneauth1}/__init__.py (100%) rename {keystoneauth => keystoneauth1}/_utils.py (100%) rename {keystoneauth => keystoneauth1}/access.py (98%) rename {keystoneauth => keystoneauth1}/adapter.py (99%) rename {keystoneauth => keystoneauth1}/auth/__init__.py (87%) rename {keystoneauth => keystoneauth1}/auth/base.py (99%) rename {keystoneauth => keystoneauth1}/auth/cli.py (97%) rename {keystoneauth => keystoneauth1}/auth/conf.py (99%) rename {keystoneauth => keystoneauth1}/auth/identity/__init__.py (83%) rename {keystoneauth => keystoneauth1}/auth/identity/access.py (95%) rename {keystoneauth => keystoneauth1}/auth/identity/base.py (98%) rename {keystoneauth => keystoneauth1}/auth/identity/generic/__init__.py (74%) rename {keystoneauth => keystoneauth1}/auth/identity/generic/base.py (98%) rename {keystoneauth => keystoneauth1}/auth/identity/generic/password.py (93%) rename {keystoneauth => keystoneauth1}/auth/identity/generic/token.py (89%) rename {keystoneauth => keystoneauth1}/auth/identity/v2.py (97%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/__init__.py (73%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/base.py (98%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/federation.py (97%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/k2k.py (96%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/password.py (98%) rename {keystoneauth => keystoneauth1}/auth/identity/v3/token.py (97%) rename {keystoneauth => keystoneauth1}/auth/token_endpoint.py (97%) rename {keystoneauth => keystoneauth1}/discover.py (98%) rename {keystoneauth => keystoneauth1}/exceptions/__init__.py (51%) rename {keystoneauth => keystoneauth1}/exceptions/auth.py (93%) rename {keystoneauth => keystoneauth1}/exceptions/auth_plugins.py (97%) rename {keystoneauth => keystoneauth1}/exceptions/base.py (100%) rename {keystoneauth => keystoneauth1}/exceptions/catalog.py (95%) rename {keystoneauth => keystoneauth1}/exceptions/connection.py (97%) rename {keystoneauth => keystoneauth1}/exceptions/discovery.py (95%) rename {keystoneauth => keystoneauth1}/exceptions/http.py (99%) rename {keystoneauth => keystoneauth1}/exceptions/response.py (95%) rename {keystoneauth => keystoneauth1}/exceptions/service_providers.py (95%) rename {keystoneauth => keystoneauth1}/fixture/__init__.py (88%) rename {keystoneauth => keystoneauth1}/fixture/discovery.py (99%) rename {keystoneauth => keystoneauth1}/fixture/exception.py (100%) rename {keystoneauth => keystoneauth1}/fixture/v2.py (98%) rename {keystoneauth => keystoneauth1}/fixture/v3.py (99%) rename {keystoneauth => keystoneauth1}/hacking/__init__.py (100%) rename {keystoneauth => keystoneauth1}/hacking/checks.py (91%) rename {keystoneauth => keystoneauth1}/service_catalog.py (99%) rename {keystoneauth => keystoneauth1}/service_providers.py (97%) rename {keystoneauth => keystoneauth1}/session.py (99%) rename {keystoneauth => keystoneauth1}/tests/__init__.py (100%) rename {keystoneauth => keystoneauth1}/tests/unit/__init__.py (100%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/__init__.py (100%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_access.py (89%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_cli.py (98%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_conf.py (96%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_identity_common.py (98%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_identity_v2.py (98%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_identity_v3.py (98%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_identity_v3_federation.py (96%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_loading.py (96%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_password.py (89%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_token.py (86%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/test_token_endpoint.py (94%) rename {keystoneauth => keystoneauth1}/tests/unit/auth/utils.py (96%) rename {keystoneauth => keystoneauth1}/tests/unit/k2k_fixtures.py (100%) rename {keystoneauth => keystoneauth1}/tests/unit/keystoneauth_fixtures.py (100%) rename {keystoneauth => keystoneauth1}/tests/unit/test_discovery.py (98%) rename {keystoneauth => keystoneauth1}/tests/unit/test_fixtures.py (99%) rename {keystoneauth => keystoneauth1}/tests/unit/test_hacking_checks.py (94%) rename {keystoneauth => keystoneauth1}/tests/unit/test_session.py (99%) rename {keystoneauth => keystoneauth1}/tests/unit/utils.py (100%) diff --git a/.testr.conf b/.testr.conf index 32d0b7a..6595c1a 100644 --- a/.testr.conf +++ b/.testr.conf @@ -1,4 +1,4 @@ [DEFAULT] -test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystoneauth/tests/unit} $LISTOPT $IDOPTION +test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystoneauth1/tests/unit} $LISTOPT $IDOPTION test_id_option=--load-list $IDFILE test_list_option=--list diff --git a/doc/source/authentication-plugins.rst b/doc/source/authentication-plugins.rst index d924cc8..101eb14 100644 --- a/doc/source/authentication-plugins.rst +++ b/doc/source/authentication-plugins.rst @@ -28,13 +28,13 @@ V2 Identity Plugins ------------------- Standard V2 identity plugins are defined in the module: -:py:mod:`keystoneauth.auth.identity.v2` +:py:mod:`keystoneauth1.auth.identity.v2` They include: -- :py:class:`~keystoneauth.auth.identity.v2.Password`: Authenticate against +- :py:class:`~keystoneauth1.auth.identity.v2.Password`: Authenticate against a V2 identity service using a username and password. -- :py:class:`~keystoneauth.auth.identity.v2.Token`: Authenticate against a +- :py:class:`~keystoneauth1.auth.identity.v2.Token`: Authenticate against a V2 identity service using an existing token. V2 identity plugins must use an auth_url that points to the root of a V2 @@ -44,23 +44,23 @@ V3 Identity Plugins ------------------- Standard V3 identity plugins are defined in the module -:py:mod:`keystoneauth.auth.identity.v3`. +:py:mod:`keystoneauth1.auth.identity.v3`. V3 Identity plugins are slightly different from their V2 counterparts as a V3 authentication request can contain multiple authentication methods. To handle this V3 defines a number of different -:py:class:`~keystoneauth.auth.identity.v3.AuthMethod` classes: +:py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` classes: -- :py:class:`~keystoneauth.auth.identity.v3.PasswordMethod`: Authenticate +- :py:class:`~keystoneauth1.auth.identity.v3.PasswordMethod`: Authenticate against a V3 identity service using a username and password. -- :py:class:`~keystoneauth.auth.identity.v3.TokenMethod`: Authenticate against +- :py:class:`~keystoneauth1.auth.identity.v3.TokenMethod`: Authenticate against a V2 identity service using an existing token. -The :py:class:`~keystoneauth.auth.identity.v3.AuthMethod` objects are then -passed to the :py:class:`~keystoneauth.auth.identity.v3.Auth` plugin:: +The :py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` objects are then +passed to the :py:class:`~keystoneauth1.auth.identity.v3.Auth` plugin:: - >>> from keystoneauth import session - >>> from keystoneauth.auth.identity import v3 + >>> from keystoneauth1 import session + >>> from keystoneauth1.auth.identity import v3 >>> password = v3.PasswordMethod(username='user', ... password='password') >>> auth = v3.Auth(auth_url='http://my.keystone.com:5000/v3', @@ -69,15 +69,15 @@ passed to the :py:class:`~keystoneauth.auth.identity.v3.Auth` plugin:: >>> sess = session.Session(auth=auth) As in the majority of cases you will only want to use one -:py:class:`~keystoneauth.auth.identity.v3.AuthMethod` there are also helper +:py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` there are also helper authentication plugins for the various -:py:class:`~keystoneauth.auth.identity.v3.AuthMethod` which can be used more +:py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` which can be used more like the V2 plugins: -- :py:class:`~keystoneauth.auth.identity.v3.Password`: Authenticate using - only a :py:class:`~keystoneauth.auth.identity.v3.PasswordMethod`. -- :py:class:`~keystoneauth.auth.identity.v3.Token`: Authenticate using only a - :py:class:`~keystoneauth.auth.identity.v3.TokenMethod`. +- :py:class:`~keystoneauth1.auth.identity.v3.Password`: Authenticate using + only a :py:class:`~keystoneauth1.auth.identity.v3.PasswordMethod`. +- :py:class:`~keystoneauth1.auth.identity.v3.Token`: Authenticate using only a + :py:class:`~keystoneauth1.auth.identity.v3.TokenMethod`. :: @@ -88,7 +88,7 @@ like the V2 plugins: >>> sess = session.Session(auth=auth) This will have exactly the same effect as using the single -:py:class:`~keystoneauth.auth.identity.v3.PasswordMethod` above. +:py:class:`~keystoneauth1.auth.identity.v3.PasswordMethod` above. V3 identity plugins must use an auth_url that points to the root of a V3 identity server URL, i.e.: `http://hostname:5000/v3`. @@ -97,7 +97,7 @@ Version Independent Identity Plugins ------------------------------------ Standard version independent identity plugins are defined in the module -:py:mod:`keystoneauth.auth.identity.generic`. +:py:mod:`keystoneauth1.auth.identity.generic`. For the cases of plugins that exist under both the identity V2 and V3 APIs there is an abstraction to allow the plugin to determine which of the V2 and V3 @@ -105,9 +105,9 @@ APIs are supported by the server and use the most appropriate API. These plugins are: -- :py:class:`~keystoneauth.auth.identity.generic.Password`: Authenticate +- :py:class:`~keystoneauth1.auth.identity.generic.Password`: Authenticate using a user/password against either v2 or v3 API. -- :py:class:`~keystoneauth.auth.identity.generic.Token`: Authenticate using +- :py:class:`~keystoneauth1.auth.identity.generic.Token`: Authenticate using an existing token against either v2 or v3 API. These plugins work by first querying the identity server to determine available @@ -124,7 +124,7 @@ same provided token and endpoint is available. This is useful in situations where you have an ``ADMIN_TOKEN`` or in testing when you specifically know the endpoint you want to communicate with. -It can be found at :py:class:`keystoneauth.auth.token_endpoint.Token`. +It can be found at :py:class:`keystoneauth1.auth.token_endpoint.Token`. V3 OAuth 1.0a Plugins @@ -132,13 +132,13 @@ V3 OAuth 1.0a Plugins There also exists a plugin for OAuth 1.0a authentication. We provide a helper authentication plugin at: -:py:class:`~keystoneauth.v3.contrib.oauth1.auth.OAuth`. +:py:class:`~keystoneauth1.v3.contrib.oauth1.auth.OAuth`. The plugin requires the OAuth consumer's key and secret, as well as the OAuth access token's key and secret. For example:: - >>> from keystoneauth.v3.contrib.oauth1 import auth - >>> from keystoneauth import session - >>> from keystoneauth.v3 import client + >>> from keystoneauth1.v3.contrib.oauth1 import auth + >>> from keystoneauth1 import session + >>> from keystoneauth1.v3 import client >>> a = auth.OAuth('http://my.keystone.com:5000/v3', ... consumer_key=consumer_id, ... consumer_secret=consumer_secret, @@ -155,12 +155,12 @@ possible to specify a plugin to load via name. The authentication options that are available are then specific to the plugin that you specified. Currently the authentication plugins that are available in `keystoneauth` are: -- password: :py:class:`keystoneauth.auth.identity.generic.Password` -- token: :py:class:`keystoneauth.auth.identity.generic.Token` -- v2password: :py:class:`keystoneauth.auth.identity.v2.Password` -- v2token: :py:class:`keystoneauth.auth.identity.v2.Token` -- v3password: :py:class:`keystoneauth.auth.identity.v3.Password` -- v3token: :py:class:`keystoneauth.auth.identity.v3.Token` +- password: :py:class:`keystoneauth1.auth.identity.generic.Password` +- token: :py:class:`keystoneauth1.auth.identity.generic.Token` +- v2password: :py:class:`keystoneauth1.auth.identity.v2.Password` +- v2token: :py:class:`keystoneauth1.auth.identity.v2.Token` +- v3password: :py:class:`keystoneauth1.auth.identity.v3.Password` +- v3token: :py:class:`keystoneauth1.auth.identity.v3.Token` Creating Authentication Plugins @@ -175,43 +175,43 @@ for the existing Identity mechanisms. As the V2 identity API is essentially frozen, it is expected that new plugins are for the V3 API. To implement a new V3 plugin that can be combined with others you should -implement the base :py:class:`keystoneauth.auth.identity.v3.AuthMethod` class +implement the base :py:class:`keystoneauth1.auth.identity.v3.AuthMethod` class and implement the -:py:meth:`~keystoneauth.auth.identity.v3.AuthMethod.get_auth_data` function. +:py:meth:`~keystoneauth1.auth.identity.v3.AuthMethod.get_auth_data` function. If your Plugin cannot be used in conjunction with existing -:py:class:`keystoneauth.auth.identity.v3.AuthMethod` then you should just -override :py:class:`keystoneauth.auth.identity.v3.Auth` directly. +:py:class:`keystoneauth1.auth.identity.v3.AuthMethod` then you should just +override :py:class:`keystoneauth1.auth.identity.v3.Auth` directly. -The new :py:class:`~keystoneauth.auth.identity.v3.AuthMethod` should take all +The new :py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` should take all the required parameters via -:py:meth:`~keystoneauth.auth.identity.v3.AuthMethod.__init__` and return from -:py:meth:`~keystoneauth.auth.identity.v3.AuthMethod.get_auth_data` a tuple +:py:meth:`~keystoneauth1.auth.identity.v3.AuthMethod.__init__` and return from +:py:meth:`~keystoneauth1.auth.identity.v3.AuthMethod.get_auth_data` a tuple with the unique identifier of this plugin (e.g. *password*) and a dictionary containing the payload of values to send to the authentication server. The session, calling auth object and request headers are also passed to this function so that the plugin may use or manipulate them. You should also provide a class that inherits from -:py:class:`keystoneauth.auth.identity.v3.Auth` with an instance of your new -:py:class:`~keystoneauth.auth.identity.v3.AuthMethod` as the `auth_methods` -parameter to :py:class:`keystoneauth.auth.identity.v3.Auth`. +:py:class:`keystoneauth1.auth.identity.v3.Auth` with an instance of your new +:py:class:`~keystoneauth1.auth.identity.v3.AuthMethod` as the `auth_methods` +parameter to :py:class:`keystoneauth1.auth.identity.v3.Auth`. By convention (and like above) these are named `PluginType` and `PluginTypeMethod` (for example -:py:class:`~keystoneauth.auth.identity.v3.Password` and -:py:class:`~keystoneauth.auth.identity.v3.PasswordMethod`). +:py:class:`~keystoneauth1.auth.identity.v3.Password` and +:py:class:`~keystoneauth1.auth.identity.v3.PasswordMethod`). Creating a Custom Plugin ------------------------ To implement an entirely new plugin you should implement the base class -:py:class:`keystoneauth.auth.base.BaseAuthPlugin` and provide the -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.get_endpoint`, -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.get_token` and -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.invalidate` functions. +:py:class:`keystoneauth1.auth.base.BaseAuthPlugin` and provide the +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.get_endpoint`, +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.get_token` and +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.invalidate` functions. -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.get_token` is called to +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.get_token` is called to retrieve the string token from a plugin. It is intended that a plugin will cache a received token and so if the token is still valid then it should be re-used rather than fetching a new one. A session object is provided with which @@ -219,19 +219,19 @@ the plugin can contact it's server. (Note: use `authenticated=False` when making those requests or it will end up being called recursively). The return value should be the token as a string. -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.get_endpoint` is called to +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.get_endpoint` is called to determine a base URL for a particular service's requests. The keyword arguments provided to the function are those that are given by the `endpoint_filter` -variable in :py:meth:`keystoneauth.session.Session.request`. A session object +variable in :py:meth:`keystoneauth1.session.Session.request`. A session object is also provided so that the plugin may contact an external source to determine the endpoint. Again this will be generally be called once per request and so it is up to the plugin to cache these responses if appropriate. The return value should be the base URL to communicate with. -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.invalidate` should also be +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.invalidate` should also be implemented to clear the current user credentials so that on the next -:py:meth:`~keystoneauth.auth.base.BaseAuthPlugin.get_token` call a new token +:py:meth:`~keystoneauth1.auth.base.BaseAuthPlugin.get_token` call a new token can be retrieved. The most simple example of a plugin is the -:py:class:`keystoneauth.auth.token_endpoint.Token` plugin. +:py:class:`keystoneauth1.auth.token_endpoint.Token` plugin. diff --git a/doc/source/conf.py b/doc/source/conf.py index c97bdeb..bc6a5c4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# keystoneauth documentation build configuration file, created by +# keystoneauth1 documentation build configuration file, created by # sphinx-quickstart on Sun Dec 6 14:19:25 2009. # # This file is execfile()d with the current directory set to its containing @@ -55,13 +55,13 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = 'keystoneauth' +project = 'keystoneauth1' copyright = 'OpenStack Contributors' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. -version_info = pbr.version.VersionInfo('keystoneauth') +version_info = pbr.version.VersionInfo('keystoneauth1') # The short X.Y version. version = version_info.version_string() # The full version, including alpha/beta/rc tags. @@ -201,8 +201,8 @@ htmlhelp_basename = 'keystoneauthdoc' # (source start file, target name, title, author, documentclass [howto/manual]) # . latex_documents = [ - ('index', 'keystoneauth.tex', - 'keystoneauth Documentation', + ('index', 'keystoneauth1.tex', + 'keystoneauth1 Documentation', 'Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', 'manual'), ] diff --git a/doc/source/using-sessions.rst b/doc/source/using-sessions.rst index 6b0dc3b..f090b20 100644 --- a/doc/source/using-sessions.rst +++ b/doc/source/using-sessions.rst @@ -5,8 +5,8 @@ Using Sessions Introduction ============ -The :py:class:`keystoneauth.session.Session` class was introduced into -keystoneauth as an attempt to bring a unified interface to the various +The :py:class:`keystoneauth1.session.Session` class was introduced into +keystoneauth1 as an attempt to bring a unified interface to the various OpenStack clients that share common authentication and request parameters between a variety of services. @@ -55,9 +55,9 @@ service and fetch a new one. An example from keystoneauth:: - >>> from keystoneauth.auth.identity import v3 - >>> from keystoneauth import session - >>> from keystoneauth.v3 import client + >>> from keystoneauth1.auth.identity import v3 + >>> from keystoneauth1 import session + >>> from keystoneauth1.v3 import client >>> auth = v3.Password(auth_url='https://my.keystone.com:5000/v2.0', ... username='myuser', @@ -72,16 +72,16 @@ As clients adopt this means of operating they will be created in a similar fashion by passing the Session object to the client's constructor. -Migrating keystoneauth to use a Session +Migrating keystoneauth1 to use a Session ----------------------------------------- -By using a session with a keystoneauth Client we presume that you have opted +By using a session with a keystoneauth1 Client we presume that you have opted in to new behavior defined by the session. For example authentication is now on-demand rather than on creation. To allow this change in behavior there are a number of functions that have changed behavior or are no longer available. For example the -:py:meth:`keystoneauth.httpclient.HTTPClient.authenticate` method used +:py:meth:`keystoneauth1.httpclient.HTTPClient.authenticate` method used to be able to always re-authenticate the current client and fetch a new token. As this is now controlled by the Session and not the client this has changed, however the function will still exist to provide compatibility with older @@ -91,7 +91,7 @@ Likewise certain parameters such as ``user_id`` and ``auth_token`` that used to be available on the client object post authentication will remain uninitialized. -When converting an application to use a session object with keystoneauth you +When converting an application to use a session object with keystoneauth1 you should be aware of the possibility of changes to authentication and authentication parameters and make sure to test your code thoroughly. It should have no impact on the typical CRUD interaction with the client. @@ -188,7 +188,7 @@ While authentication plugins will endeavour to maintain a consistent set of arguments for an ``endpoint_filter`` the concept of an authentication plugin is purposefully generic and a specific mechanism may not know how to interpret certain arguments and ignore them. For example the -:py:class:`keystoneauth.auth.token_endpoint.Token` plugin (which is used when +:py:class:`keystoneauth1.auth.token_endpoint.Token` plugin (which is used when you want to always use a specific endpoint and token combination) will always return the same endpoint regardless of the parameters to ``endpoint_filter`` or a custom OpenStack authentication mechanism may not have the concept of diff --git a/keystoneauth/__init__.py b/keystoneauth1/__init__.py similarity index 100% rename from keystoneauth/__init__.py rename to keystoneauth1/__init__.py diff --git a/keystoneauth/_utils.py b/keystoneauth1/_utils.py similarity index 100% rename from keystoneauth/_utils.py rename to keystoneauth1/_utils.py diff --git a/keystoneauth/access.py b/keystoneauth1/access.py similarity index 98% rename from keystoneauth/access.py rename to keystoneauth1/access.py index 1bd4023..93fcf4d 100644 --- a/keystoneauth/access.py +++ b/keystoneauth1/access.py @@ -16,9 +16,9 @@ import functools -from keystoneauth import _utils as utils -from keystoneauth import service_catalog -from keystoneauth import service_providers +from keystoneauth1 import _utils as utils +from keystoneauth1 import service_catalog +from keystoneauth1 import service_providers # gap, in seconds, to determine whether the given token is about to expire @@ -358,7 +358,7 @@ class AccessInfo(object): Used for Keystone2Keystone federating-out. - :returns: :py:class:`keystoneauth.service_providers.ServiceProviders` + :returns: :py:class:`keystoneauth1.service_providers.ServiceProviders` or None """ raise NotImplementedError() diff --git a/keystoneauth/adapter.py b/keystoneauth1/adapter.py similarity index 99% rename from keystoneauth/adapter.py rename to keystoneauth1/adapter.py index da2223c..8fe033f 100644 --- a/keystoneauth/adapter.py +++ b/keystoneauth1/adapter.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth import _utils as utils +from keystoneauth1 import _utils as utils class Adapter(object): diff --git a/keystoneauth/auth/__init__.py b/keystoneauth1/auth/__init__.py similarity index 87% rename from keystoneauth/auth/__init__.py rename to keystoneauth1/auth/__init__.py index acae92b..703b86f 100644 --- a/keystoneauth/auth/__init__.py +++ b/keystoneauth1/auth/__init__.py @@ -11,9 +11,9 @@ # under the License. -from keystoneauth.auth.base import * # noqa -from keystoneauth.auth.cli import * # noqa -from keystoneauth.auth.conf import * # noqa +from keystoneauth1.auth.base import * # noqa +from keystoneauth1.auth.cli import * # noqa +from keystoneauth1.auth.conf import * # noqa __all__ = [ diff --git a/keystoneauth/auth/base.py b/keystoneauth1/auth/base.py similarity index 99% rename from keystoneauth/auth/base.py rename to keystoneauth1/auth/base.py index 60b333e..6b85973 100644 --- a/keystoneauth/auth/base.py +++ b/keystoneauth1/auth/base.py @@ -15,7 +15,7 @@ import os import six import stevedore -from keystoneauth import exceptions +from keystoneauth1 import exceptions # NOTE(jamielennox): The AUTH_INTERFACE is a special value that can be @@ -23,7 +23,7 @@ from keystoneauth import exceptions # 'interface' it should return the initial URL that was passed to the plugin. AUTH_INTERFACE = object() -PLUGIN_NAMESPACE = 'keystoneauth.auth.plugin' +PLUGIN_NAMESPACE = 'keystoneauth1.auth.plugin' IDENTITY_AUTH_HEADER_NAME = 'X-Auth-Token' diff --git a/keystoneauth/auth/cli.py b/keystoneauth1/auth/cli.py similarity index 97% rename from keystoneauth/auth/cli.py rename to keystoneauth1/auth/cli.py index 3cab2f0..1f71394 100644 --- a/keystoneauth/auth/cli.py +++ b/keystoneauth1/auth/cli.py @@ -13,8 +13,8 @@ import argparse import os -from keystoneauth import _utils as utils -from keystoneauth.auth import base +from keystoneauth1 import _utils as utils +from keystoneauth1.auth import base @utils.positional() diff --git a/keystoneauth/auth/conf.py b/keystoneauth1/auth/conf.py similarity index 99% rename from keystoneauth/auth/conf.py rename to keystoneauth1/auth/conf.py index fe437a6..138f2c8 100644 --- a/keystoneauth/auth/conf.py +++ b/keystoneauth1/auth/conf.py @@ -12,7 +12,7 @@ from oslo_config import cfg -from keystoneauth.auth import base +from keystoneauth1.auth import base _AUTH_PLUGIN_OPT = cfg.StrOpt('auth_plugin', help='Name of the plugin to load') diff --git a/keystoneauth/auth/identity/__init__.py b/keystoneauth1/auth/identity/__init__.py similarity index 83% rename from keystoneauth/auth/identity/__init__.py rename to keystoneauth1/auth/identity/__init__.py index e5692a1..1570957 100644 --- a/keystoneauth/auth/identity/__init__.py +++ b/keystoneauth1/auth/identity/__init__.py @@ -10,10 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.auth.identity import base -from keystoneauth.auth.identity import generic -from keystoneauth.auth.identity import v2 -from keystoneauth.auth.identity import v3 +from keystoneauth1.auth.identity import base +from keystoneauth1.auth.identity import generic +from keystoneauth1.auth.identity import v2 +from keystoneauth1.auth.identity import v3 BaseIdentityPlugin = base.BaseIdentityPlugin diff --git a/keystoneauth/auth/identity/access.py b/keystoneauth1/auth/identity/access.py similarity index 95% rename from keystoneauth/auth/identity/access.py rename to keystoneauth1/auth/identity/access.py index 06e6f1a..e3588fd 100644 --- a/keystoneauth/auth/identity/access.py +++ b/keystoneauth1/auth/identity/access.py @@ -10,8 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth import _utils as utils -from keystoneauth.auth.identity import base +from keystoneauth1 import _utils as utils +from keystoneauth1.auth.identity import base class AccessInfoPlugin(base.BaseIdentityPlugin): diff --git a/keystoneauth/auth/identity/base.py b/keystoneauth1/auth/identity/base.py similarity index 98% rename from keystoneauth/auth/identity/base.py rename to keystoneauth1/auth/identity/base.py index afa74d1..c778891 100644 --- a/keystoneauth/auth/identity/base.py +++ b/keystoneauth1/auth/identity/base.py @@ -16,10 +16,10 @@ import logging from oslo_config import cfg import six -from keystoneauth import _utils as utils -from keystoneauth.auth import base -from keystoneauth import discover -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1.auth import base +from keystoneauth1 import discover +from keystoneauth1 import exceptions LOG = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/generic/__init__.py b/keystoneauth1/auth/identity/generic/__init__.py similarity index 74% rename from keystoneauth/auth/identity/generic/__init__.py rename to keystoneauth1/auth/identity/generic/__init__.py index 1a0e3ff..dc74eed 100644 --- a/keystoneauth/auth/identity/generic/__init__.py +++ b/keystoneauth1/auth/identity/generic/__init__.py @@ -10,9 +10,9 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.auth.identity.generic.base import BaseGenericPlugin # noqa -from keystoneauth.auth.identity.generic.password import Password # noqa -from keystoneauth.auth.identity.generic.token import Token # noqa +from keystoneauth1.auth.identity.generic.base import BaseGenericPlugin # noqa +from keystoneauth1.auth.identity.generic.password import Password # noqa +from keystoneauth1.auth.identity.generic.token import Token # noqa __all__ = ['BaseGenericPlugin', diff --git a/keystoneauth/auth/identity/generic/base.py b/keystoneauth1/auth/identity/generic/base.py similarity index 98% rename from keystoneauth/auth/identity/generic/base.py rename to keystoneauth1/auth/identity/generic/base.py index 8c263c1..b684c42 100644 --- a/keystoneauth/auth/identity/generic/base.py +++ b/keystoneauth1/auth/identity/generic/base.py @@ -17,9 +17,9 @@ from oslo_config import cfg import six import six.moves.urllib.parse as urlparse -from keystoneauth.auth.identity import base -from keystoneauth import discover -from keystoneauth import exceptions +from keystoneauth1.auth.identity import base +from keystoneauth1 import discover +from keystoneauth1 import exceptions LOG = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/generic/password.py b/keystoneauth1/auth/identity/generic/password.py similarity index 93% rename from keystoneauth/auth/identity/generic/password.py rename to keystoneauth1/auth/identity/generic/password.py index 026916b..a1271c7 100644 --- a/keystoneauth/auth/identity/generic/password.py +++ b/keystoneauth1/auth/identity/generic/password.py @@ -14,11 +14,11 @@ import logging from oslo_config import cfg -from keystoneauth import _utils as utils -from keystoneauth.auth.identity.generic import base -from keystoneauth.auth.identity import v2 -from keystoneauth.auth.identity import v3 -from keystoneauth import discover +from keystoneauth1 import _utils as utils +from keystoneauth1.auth.identity.generic import base +from keystoneauth1.auth.identity import v2 +from keystoneauth1.auth.identity import v3 +from keystoneauth1 import discover LOG = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/generic/token.py b/keystoneauth1/auth/identity/generic/token.py similarity index 89% rename from keystoneauth/auth/identity/generic/token.py rename to keystoneauth1/auth/identity/generic/token.py index 32c8209..e1d4620 100644 --- a/keystoneauth/auth/identity/generic/token.py +++ b/keystoneauth1/auth/identity/generic/token.py @@ -14,10 +14,10 @@ import logging from oslo_config import cfg -from keystoneauth.auth.identity.generic import base -from keystoneauth.auth.identity import v2 -from keystoneauth.auth.identity import v3 -from keystoneauth import discover +from keystoneauth1.auth.identity.generic import base +from keystoneauth1.auth.identity import v2 +from keystoneauth1.auth.identity import v3 +from keystoneauth1 import discover LOG = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/v2.py b/keystoneauth1/auth/identity/v2.py similarity index 97% rename from keystoneauth/auth/identity/v2.py rename to keystoneauth1/auth/identity/v2.py index e0c7dd7..4720be6 100644 --- a/keystoneauth/auth/identity/v2.py +++ b/keystoneauth1/auth/identity/v2.py @@ -16,10 +16,10 @@ import logging from oslo_config import cfg import six -from keystoneauth import _utils as utils -from keystoneauth import access -from keystoneauth.auth.identity import base -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1 import access +from keystoneauth1.auth.identity import base +from keystoneauth1 import exceptions _logger = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/v3/__init__.py b/keystoneauth1/auth/identity/v3/__init__.py similarity index 73% rename from keystoneauth/auth/identity/v3/__init__.py rename to keystoneauth1/auth/identity/v3/__init__.py index d71e60b..c883e8a 100644 --- a/keystoneauth/auth/identity/v3/__init__.py +++ b/keystoneauth1/auth/identity/v3/__init__.py @@ -10,11 +10,11 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.auth.identity.v3.base import * # noqa -from keystoneauth.auth.identity.v3.federation import * # noqa -from keystoneauth.auth.identity.v3.k2k import * # noqa -from keystoneauth.auth.identity.v3.password import * # noqa -from keystoneauth.auth.identity.v3.token import * # noqa +from keystoneauth1.auth.identity.v3.base import * # noqa +from keystoneauth1.auth.identity.v3.federation import * # noqa +from keystoneauth1.auth.identity.v3.k2k import * # noqa +from keystoneauth1.auth.identity.v3.password import * # noqa +from keystoneauth1.auth.identity.v3.token import * # noqa __all__ = ['Auth', diff --git a/keystoneauth/auth/identity/v3/base.py b/keystoneauth1/auth/identity/v3/base.py similarity index 98% rename from keystoneauth/auth/identity/v3/base.py rename to keystoneauth1/auth/identity/v3/base.py index ea0559f..9fd7947 100644 --- a/keystoneauth/auth/identity/v3/base.py +++ b/keystoneauth1/auth/identity/v3/base.py @@ -16,10 +16,10 @@ import logging from oslo_config import cfg import six -from keystoneauth import _utils as utils -from keystoneauth import access -from keystoneauth.auth.identity import base -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1 import access +from keystoneauth1.auth.identity import base +from keystoneauth1 import exceptions _logger = logging.getLogger(__name__) diff --git a/keystoneauth/auth/identity/v3/federation.py b/keystoneauth1/auth/identity/v3/federation.py similarity index 97% rename from keystoneauth/auth/identity/v3/federation.py rename to keystoneauth1/auth/identity/v3/federation.py index 411849c..8cf1c02 100644 --- a/keystoneauth/auth/identity/v3/federation.py +++ b/keystoneauth1/auth/identity/v3/federation.py @@ -15,8 +15,8 @@ import abc from oslo_config import cfg import six -from keystoneauth.auth.identity.v3 import base -from keystoneauth.auth.identity.v3 import token +from keystoneauth1.auth.identity.v3 import base +from keystoneauth1.auth.identity.v3 import token __all__ = ['FederationBaseAuth'] diff --git a/keystoneauth/auth/identity/v3/k2k.py b/keystoneauth1/auth/identity/v3/k2k.py similarity index 96% rename from keystoneauth/auth/identity/v3/k2k.py rename to keystoneauth1/auth/identity/v3/k2k.py index b827745..9dc3f7a 100644 --- a/keystoneauth/auth/identity/v3/k2k.py +++ b/keystoneauth1/auth/identity/v3/k2k.py @@ -12,11 +12,11 @@ from oslo_config import cfg -from keystoneauth import access -from keystoneauth.auth import base as auth_base -from keystoneauth.auth.identity.v3 import base -from keystoneauth.auth.identity.v3 import token -from keystoneauth import exceptions +from keystoneauth1 import access +from keystoneauth1.auth import base as auth_base +from keystoneauth1.auth.identity.v3 import base +from keystoneauth1.auth.identity.v3 import token +from keystoneauth1 import exceptions __all__ = ['Keystone2Keystone'] @@ -30,7 +30,7 @@ class Keystone2Keystone(base.BaseAuth): :param base_plugin: Auth plugin already authenticated against the keystone IdP. - :type base_plugin: ``keystoneauth.auth.v3.base.BaseAuth`` + :type base_plugin: ``keystoneauth1.auth.v3.base.BaseAuth`` :param service_provider: The Service Provider ID. :type service_provider: string diff --git a/keystoneauth/auth/identity/v3/password.py b/keystoneauth1/auth/identity/v3/password.py similarity index 98% rename from keystoneauth/auth/identity/v3/password.py rename to keystoneauth1/auth/identity/v3/password.py index da0e6a4..a22c420 100644 --- a/keystoneauth/auth/identity/v3/password.py +++ b/keystoneauth1/auth/identity/v3/password.py @@ -12,7 +12,7 @@ from oslo_config import cfg -from keystoneauth.auth.identity.v3 import base +from keystoneauth1.auth.identity.v3 import base __all__ = ['PasswordMethod', 'Password'] diff --git a/keystoneauth/auth/identity/v3/token.py b/keystoneauth1/auth/identity/v3/token.py similarity index 97% rename from keystoneauth/auth/identity/v3/token.py rename to keystoneauth1/auth/identity/v3/token.py index 2dc622f..861a238 100644 --- a/keystoneauth/auth/identity/v3/token.py +++ b/keystoneauth1/auth/identity/v3/token.py @@ -12,7 +12,7 @@ from oslo_config import cfg -from keystoneauth.auth.identity.v3 import base +from keystoneauth1.auth.identity.v3 import base __all__ = ['TokenMethod', 'Token'] diff --git a/keystoneauth/auth/token_endpoint.py b/keystoneauth1/auth/token_endpoint.py similarity index 97% rename from keystoneauth/auth/token_endpoint.py rename to keystoneauth1/auth/token_endpoint.py index ae988b2..6547faf 100644 --- a/keystoneauth/auth/token_endpoint.py +++ b/keystoneauth1/auth/token_endpoint.py @@ -12,7 +12,7 @@ from oslo_config import cfg -from keystoneauth.auth import base +from keystoneauth1.auth import base class Token(base.BaseAuthPlugin): diff --git a/keystoneauth/discover.py b/keystoneauth1/discover.py similarity index 98% rename from keystoneauth/discover.py rename to keystoneauth1/discover.py index f33268f..ef31e80 100644 --- a/keystoneauth/discover.py +++ b/keystoneauth1/discover.py @@ -13,7 +13,7 @@ """The passive components to version discovery. The Discover object in discover.py contains functions that can create objects -on your behalf. These functions are not usable from within the keystoneauth +on your behalf. These functions are not usable from within the keystoneauth1 library because you will get dependency resolution issues. The Discover object in this file provides the querying components of Discovery. @@ -24,8 +24,8 @@ raw data specified in version discovery responses. import logging import re -from keystoneauth import _utils as utils -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1 import exceptions _LOGGER = logging.getLogger(__name__) @@ -314,7 +314,7 @@ _VERSION_HACKS.add_discover_hack('identity', re.compile('/v2.0/?$'), '/') def _get_catalog_discover_hack(service_type, url): """Apply the catalog hacks and figure out an unversioned endpoint. - This function is internal to keystoneauth. + This function is internal to keystoneauth1. :param str service_type: the service_type to look up. :param str url: The original url that came from a service_catalog. diff --git a/keystoneauth/exceptions/__init__.py b/keystoneauth1/exceptions/__init__.py similarity index 51% rename from keystoneauth/exceptions/__init__.py rename to keystoneauth1/exceptions/__init__.py index b6df748..021b99f 100644 --- a/keystoneauth/exceptions/__init__.py +++ b/keystoneauth1/exceptions/__init__.py @@ -11,12 +11,12 @@ # under the License. -from keystoneauth.exceptions.auth import * # noqa -from keystoneauth.exceptions.auth_plugins import * # noqa -from keystoneauth.exceptions.base import * # noqa -from keystoneauth.exceptions.catalog import * # noqa -from keystoneauth.exceptions.connection import * # noqa -from keystoneauth.exceptions.discovery import * # noqa -from keystoneauth.exceptions.http import * # noqa -from keystoneauth.exceptions.response import * # noqa -from keystoneauth.exceptions.service_providers import * # noqa +from keystoneauth1.exceptions.auth import * # noqa +from keystoneauth1.exceptions.auth_plugins import * # noqa +from keystoneauth1.exceptions.base import * # noqa +from keystoneauth1.exceptions.catalog import * # noqa +from keystoneauth1.exceptions.connection import * # noqa +from keystoneauth1.exceptions.discovery import * # noqa +from keystoneauth1.exceptions.http import * # noqa +from keystoneauth1.exceptions.response import * # noqa +from keystoneauth1.exceptions.service_providers import * # noqa diff --git a/keystoneauth/exceptions/auth.py b/keystoneauth1/exceptions/auth.py similarity index 93% rename from keystoneauth/exceptions/auth.py rename to keystoneauth1/exceptions/auth.py index 87ab35c..3550d64 100644 --- a/keystoneauth/exceptions/auth.py +++ b/keystoneauth1/exceptions/auth.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base class AuthorizationFailure(base.ClientException): diff --git a/keystoneauth/exceptions/auth_plugins.py b/keystoneauth1/exceptions/auth_plugins.py similarity index 97% rename from keystoneauth/exceptions/auth_plugins.py rename to keystoneauth1/exceptions/auth_plugins.py index 090b24f..3747c50 100644 --- a/keystoneauth/exceptions/auth_plugins.py +++ b/keystoneauth1/exceptions/auth_plugins.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base class AuthPluginException(base.ClientException): diff --git a/keystoneauth/exceptions/base.py b/keystoneauth1/exceptions/base.py similarity index 100% rename from keystoneauth/exceptions/base.py rename to keystoneauth1/exceptions/base.py diff --git a/keystoneauth/exceptions/catalog.py b/keystoneauth1/exceptions/catalog.py similarity index 95% rename from keystoneauth/exceptions/catalog.py rename to keystoneauth1/exceptions/catalog.py index ca7e130..6fa538b 100644 --- a/keystoneauth/exceptions/catalog.py +++ b/keystoneauth1/exceptions/catalog.py @@ -11,7 +11,7 @@ # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['CatalogException', 'EmptyCatalog', diff --git a/keystoneauth/exceptions/connection.py b/keystoneauth1/exceptions/connection.py similarity index 97% rename from keystoneauth/exceptions/connection.py rename to keystoneauth1/exceptions/connection.py index 650b107..81b4cf7 100644 --- a/keystoneauth/exceptions/connection.py +++ b/keystoneauth1/exceptions/connection.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['ConnectionError', diff --git a/keystoneauth/exceptions/discovery.py b/keystoneauth1/exceptions/discovery.py similarity index 95% rename from keystoneauth/exceptions/discovery.py rename to keystoneauth1/exceptions/discovery.py index bb6ff4a..8cad554 100644 --- a/keystoneauth/exceptions/discovery.py +++ b/keystoneauth1/exceptions/discovery.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['DiscoveryFailure', diff --git a/keystoneauth/exceptions/http.py b/keystoneauth1/exceptions/http.py similarity index 99% rename from keystoneauth/exceptions/http.py rename to keystoneauth1/exceptions/http.py index 0120a9d..62e4209 100644 --- a/keystoneauth/exceptions/http.py +++ b/keystoneauth1/exceptions/http.py @@ -17,7 +17,7 @@ # under the License. """ -HTTP Exceptions used by keystoneauth +HTTP Exceptions used by keystoneauth1 """ import inspect @@ -25,7 +25,7 @@ import sys import six -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['HttpError', diff --git a/keystoneauth/exceptions/response.py b/keystoneauth1/exceptions/response.py similarity index 95% rename from keystoneauth/exceptions/response.py rename to keystoneauth1/exceptions/response.py index 61bd8ad..60f29a5 100644 --- a/keystoneauth/exceptions/response.py +++ b/keystoneauth1/exceptions/response.py @@ -11,7 +11,7 @@ # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['InvalidResponse'] diff --git a/keystoneauth/exceptions/service_providers.py b/keystoneauth1/exceptions/service_providers.py similarity index 95% rename from keystoneauth/exceptions/service_providers.py rename to keystoneauth1/exceptions/service_providers.py index e66668f..015da6f 100644 --- a/keystoneauth/exceptions/service_providers.py +++ b/keystoneauth1/exceptions/service_providers.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth.exceptions import base +from keystoneauth1.exceptions import base __all__ = ['ServiceProviderNotFound'] diff --git a/keystoneauth/fixture/__init__.py b/keystoneauth1/fixture/__init__.py similarity index 88% rename from keystoneauth/fixture/__init__.py rename to keystoneauth1/fixture/__init__.py index 740a445..c466d3c 100644 --- a/keystoneauth/fixture/__init__.py +++ b/keystoneauth1/fixture/__init__.py @@ -21,10 +21,10 @@ may be dependencies from this module on libraries that are only available in testing. """ -from keystoneauth.fixture.discovery import * # noqa -from keystoneauth.fixture import exception -from keystoneauth.fixture import v2 -from keystoneauth.fixture import v3 +from keystoneauth1.fixture.discovery import * # noqa +from keystoneauth1.fixture import exception +from keystoneauth1.fixture import v2 +from keystoneauth1.fixture import v3 FixtureValidationError = exception.FixtureValidationError diff --git a/keystoneauth/fixture/discovery.py b/keystoneauth1/fixture/discovery.py similarity index 99% rename from keystoneauth/fixture/discovery.py rename to keystoneauth1/fixture/discovery.py index 1998997..d11e056 100644 --- a/keystoneauth/fixture/discovery.py +++ b/keystoneauth1/fixture/discovery.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from keystoneauth import _utils as utils +from keystoneauth1 import _utils as utils __all__ = ['DiscoveryList', 'V2Discovery', diff --git a/keystoneauth/fixture/exception.py b/keystoneauth1/fixture/exception.py similarity index 100% rename from keystoneauth/fixture/exception.py rename to keystoneauth1/fixture/exception.py diff --git a/keystoneauth/fixture/v2.py b/keystoneauth1/fixture/v2.py similarity index 98% rename from keystoneauth/fixture/v2.py rename to keystoneauth1/fixture/v2.py index 37540e3..7b7a884 100644 --- a/keystoneauth/fixture/v2.py +++ b/keystoneauth1/fixture/v2.py @@ -13,8 +13,8 @@ import datetime import uuid -from keystoneauth import _utils -from keystoneauth.fixture import exception +from keystoneauth1 import _utils +from keystoneauth1.fixture import exception class _Service(dict): diff --git a/keystoneauth/fixture/v3.py b/keystoneauth1/fixture/v3.py similarity index 99% rename from keystoneauth/fixture/v3.py rename to keystoneauth1/fixture/v3.py index 1203cf6..b534424 100644 --- a/keystoneauth/fixture/v3.py +++ b/keystoneauth1/fixture/v3.py @@ -13,8 +13,8 @@ import datetime import uuid -from keystoneauth import _utils -from keystoneauth.fixture import exception +from keystoneauth1 import _utils +from keystoneauth1.fixture import exception class _Service(dict): diff --git a/keystoneauth/hacking/__init__.py b/keystoneauth1/hacking/__init__.py similarity index 100% rename from keystoneauth/hacking/__init__.py rename to keystoneauth1/hacking/__init__.py diff --git a/keystoneauth/hacking/checks.py b/keystoneauth1/hacking/checks.py similarity index 91% rename from keystoneauth/hacking/checks.py rename to keystoneauth1/hacking/checks.py index f4f55b8..9e4a942 100644 --- a/keystoneauth/hacking/checks.py +++ b/keystoneauth1/hacking/checks.py @@ -10,10 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -"""keystoneauth's pep8 extensions. +"""keystoneauth1's pep8 extensions. In order to make the review process faster and easier for core devs we are -adding some keystoneauth specific pep8 checks. This will catch common +adding some keystoneauth1 specific pep8 checks. This will catch common errors so that core devs don't have to. """ diff --git a/keystoneauth/service_catalog.py b/keystoneauth1/service_catalog.py similarity index 99% rename from keystoneauth/service_catalog.py rename to keystoneauth1/service_catalog.py index 2231e6d..c842956 100644 --- a/keystoneauth/service_catalog.py +++ b/keystoneauth1/service_catalog.py @@ -20,8 +20,8 @@ import abc import six -from keystoneauth import _utils as utils -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1 import exceptions @six.add_metaclass(abc.ABCMeta) diff --git a/keystoneauth/service_providers.py b/keystoneauth1/service_providers.py similarity index 97% rename from keystoneauth/service_providers.py rename to keystoneauth1/service_providers.py index fd1d728..83a27cc 100644 --- a/keystoneauth/service_providers.py +++ b/keystoneauth1/service_providers.py @@ -10,7 +10,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from keystoneauth import exceptions +from keystoneauth1 import exceptions class ServiceProviders(object): diff --git a/keystoneauth/session.py b/keystoneauth1/session.py similarity index 99% rename from keystoneauth/session.py rename to keystoneauth1/session.py index 75bd324..f143438 100644 --- a/keystoneauth/session.py +++ b/keystoneauth1/session.py @@ -26,8 +26,8 @@ import requests import six from six.moves import urllib -from keystoneauth import _utils as utils -from keystoneauth import exceptions +from keystoneauth1 import _utils as utils +from keystoneauth1 import exceptions try: import netaddr @@ -39,7 +39,7 @@ try: except ImportError: osprofiler_web = None -USER_AGENT = 'keystoneauth' +USER_AGENT = 'keystoneauth1' _logger = logging.getLogger(__name__) @@ -101,7 +101,7 @@ class Session(object): to 0) :param string user_agent: A User-Agent header string to use for the request. If not provided a default is used. - (optional, defaults to 'keystoneauth') + (optional, defaults to 'keystoneauth1') :param int/bool redirect: Controls the maximum number of redirections that can be followed by a request. Either an integer for a specific count or True/False for diff --git a/keystoneauth/tests/__init__.py b/keystoneauth1/tests/__init__.py similarity index 100% rename from keystoneauth/tests/__init__.py rename to keystoneauth1/tests/__init__.py diff --git a/keystoneauth/tests/unit/__init__.py b/keystoneauth1/tests/unit/__init__.py similarity index 100% rename from keystoneauth/tests/unit/__init__.py rename to keystoneauth1/tests/unit/__init__.py diff --git a/keystoneauth/tests/unit/auth/__init__.py b/keystoneauth1/tests/unit/auth/__init__.py similarity index 100% rename from keystoneauth/tests/unit/auth/__init__.py rename to keystoneauth1/tests/unit/auth/__init__.py diff --git a/keystoneauth/tests/unit/auth/test_access.py b/keystoneauth1/tests/unit/auth/test_access.py similarity index 89% rename from keystoneauth/tests/unit/auth/test_access.py rename to keystoneauth1/tests/unit/auth/test_access.py index 3b6517e..ec119ba 100644 --- a/keystoneauth/tests/unit/auth/test_access.py +++ b/keystoneauth1/tests/unit/auth/test_access.py @@ -12,12 +12,12 @@ import uuid -from keystoneauth import access -from keystoneauth import auth -from keystoneauth.auth.identity import access as access_plugin -from keystoneauth import fixture -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1 import access +from keystoneauth1 import auth +from keystoneauth1.auth.identity import access as access_plugin +from keystoneauth1 import fixture +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils class AccessInfoPluginTests(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/test_cli.py b/keystoneauth1/tests/unit/auth/test_cli.py similarity index 98% rename from keystoneauth/tests/unit/auth/test_cli.py rename to keystoneauth1/tests/unit/auth/test_cli.py index a38b711..f2cbde4 100644 --- a/keystoneauth/tests/unit/auth/test_cli.py +++ b/keystoneauth1/tests/unit/auth/test_cli.py @@ -17,9 +17,9 @@ import fixtures import mock from oslo_config import cfg -from keystoneauth.auth import base -from keystoneauth.auth import cli -from keystoneauth.tests.unit.auth import utils +from keystoneauth1.auth import base +from keystoneauth1.auth import cli +from keystoneauth1.tests.unit.auth import utils class TesterPlugin(base.BaseAuthPlugin): diff --git a/keystoneauth/tests/unit/auth/test_conf.py b/keystoneauth1/tests/unit/auth/test_conf.py similarity index 96% rename from keystoneauth/tests/unit/auth/test_conf.py rename to keystoneauth1/tests/unit/auth/test_conf.py index 1e325b7..4adc07d 100644 --- a/keystoneauth/tests/unit/auth/test_conf.py +++ b/keystoneauth1/tests/unit/auth/test_conf.py @@ -17,12 +17,12 @@ from oslo_config import cfg from oslo_config import fixture as config import stevedore -from keystoneauth.auth import base -from keystoneauth.auth import conf -from keystoneauth.auth.identity import v2 as v2_auth -from keystoneauth.auth.identity import v3 as v3_auth -from keystoneauth import exceptions -from keystoneauth.tests.unit.auth import utils +from keystoneauth1.auth import base +from keystoneauth1.auth import conf +from keystoneauth1.auth.identity import v2 as v2_auth +from keystoneauth1.auth.identity import v3 as v3_auth +from keystoneauth1 import exceptions +from keystoneauth1.tests.unit.auth import utils class ConfTests(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/test_identity_common.py b/keystoneauth1/tests/unit/auth/test_identity_common.py similarity index 98% rename from keystoneauth/tests/unit/auth/test_identity_common.py rename to keystoneauth1/tests/unit/auth/test_identity_common.py index fd87482..d3e233f 100644 --- a/keystoneauth/tests/unit/auth/test_identity_common.py +++ b/keystoneauth1/tests/unit/auth/test_identity_common.py @@ -16,14 +16,14 @@ import uuid import mock import six -from keystoneauth import _utils -from keystoneauth import access -from keystoneauth.auth import base -from keystoneauth.auth import identity -from keystoneauth import exceptions -from keystoneauth import fixture -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1 import _utils +from keystoneauth1 import access +from keystoneauth1.auth import base +from keystoneauth1.auth import identity +from keystoneauth1 import exceptions +from keystoneauth1 import fixture +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils @six.add_metaclass(abc.ABCMeta) diff --git a/keystoneauth/tests/unit/auth/test_identity_v2.py b/keystoneauth1/tests/unit/auth/test_identity_v2.py similarity index 98% rename from keystoneauth/tests/unit/auth/test_identity_v2.py rename to keystoneauth1/tests/unit/auth/test_identity_v2.py index a1f1c3c..bdab06a 100644 --- a/keystoneauth/tests/unit/auth/test_identity_v2.py +++ b/keystoneauth1/tests/unit/auth/test_identity_v2.py @@ -13,10 +13,10 @@ import copy import uuid -from keystoneauth.auth.identity import v2 -from keystoneauth import exceptions -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1.auth.identity import v2 +from keystoneauth1 import exceptions +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils class V2IdentityPlugin(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/test_identity_v3.py b/keystoneauth1/tests/unit/auth/test_identity_v3.py similarity index 98% rename from keystoneauth/tests/unit/auth/test_identity_v3.py rename to keystoneauth1/tests/unit/auth/test_identity_v3.py index 2123349..a04162f 100644 --- a/keystoneauth/tests/unit/auth/test_identity_v3.py +++ b/keystoneauth1/tests/unit/auth/test_identity_v3.py @@ -13,13 +13,13 @@ import copy import uuid -from keystoneauth import access -from keystoneauth.auth.identity import v3 -from keystoneauth.auth.identity.v3 import base as v3_base -from keystoneauth import exceptions -from keystoneauth import fixture -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1 import access +from keystoneauth1.auth.identity import v3 +from keystoneauth1.auth.identity.v3 import base as v3_base +from keystoneauth1 import exceptions +from keystoneauth1 import fixture +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils class V3IdentityPlugin(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/test_identity_v3_federation.py b/keystoneauth1/tests/unit/auth/test_identity_v3_federation.py similarity index 96% rename from keystoneauth/tests/unit/auth/test_identity_v3_federation.py rename to keystoneauth1/tests/unit/auth/test_identity_v3_federation.py index 352f3ec..fc35b7e 100644 --- a/keystoneauth/tests/unit/auth/test_identity_v3_federation.py +++ b/keystoneauth1/tests/unit/auth/test_identity_v3_federation.py @@ -15,13 +15,13 @@ import uuid import six -from keystoneauth import access -from keystoneauth.auth.identity import v3 -from keystoneauth import exceptions -from keystoneauth import fixture -from keystoneauth import session -from keystoneauth.tests.unit import k2k_fixtures -from keystoneauth.tests.unit import utils +from keystoneauth1 import access +from keystoneauth1.auth.identity import v3 +from keystoneauth1 import exceptions +from keystoneauth1 import fixture +from keystoneauth1 import session +from keystoneauth1.tests.unit import k2k_fixtures +from keystoneauth1.tests.unit import utils class TesterFederationPlugin(v3.FederationBaseAuth): diff --git a/keystoneauth/tests/unit/auth/test_loading.py b/keystoneauth1/tests/unit/auth/test_loading.py similarity index 96% rename from keystoneauth/tests/unit/auth/test_loading.py rename to keystoneauth1/tests/unit/auth/test_loading.py index bee74d8..382a68c 100644 --- a/keystoneauth/tests/unit/auth/test_loading.py +++ b/keystoneauth1/tests/unit/auth/test_loading.py @@ -14,7 +14,7 @@ import uuid import six -from keystoneauth.tests.unit.auth import utils +from keystoneauth1.tests.unit.auth import utils class TestOtherLoading(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/test_password.py b/keystoneauth1/tests/unit/auth/test_password.py similarity index 89% rename from keystoneauth/tests/unit/auth/test_password.py rename to keystoneauth1/tests/unit/auth/test_password.py index da6e707..9bb8931 100644 --- a/keystoneauth/tests/unit/auth/test_password.py +++ b/keystoneauth1/tests/unit/auth/test_password.py @@ -12,11 +12,11 @@ import uuid -from keystoneauth.auth.identity.generic import password -from keystoneauth.auth.identity import v2 -from keystoneauth.auth.identity import v3 -from keystoneauth.auth.identity.v3 import password as v3_password -from keystoneauth.tests.unit.auth import utils +from keystoneauth1.auth.identity.generic import password +from keystoneauth1.auth.identity import v2 +from keystoneauth1.auth.identity import v3 +from keystoneauth1.auth.identity.v3 import password as v3_password +from keystoneauth1.tests.unit.auth import utils class PasswordTests(utils.GenericPluginTestCase): diff --git a/keystoneauth/tests/unit/auth/test_token.py b/keystoneauth1/tests/unit/auth/test_token.py similarity index 86% rename from keystoneauth/tests/unit/auth/test_token.py rename to keystoneauth1/tests/unit/auth/test_token.py index 54c84b2..5647067 100644 --- a/keystoneauth/tests/unit/auth/test_token.py +++ b/keystoneauth1/tests/unit/auth/test_token.py @@ -12,11 +12,11 @@ import uuid -from keystoneauth.auth.identity.generic import token -from keystoneauth.auth.identity import v2 -from keystoneauth.auth.identity import v3 -from keystoneauth.auth.identity.v3 import token as v3_token -from keystoneauth.tests.unit.auth import utils +from keystoneauth1.auth.identity.generic import token +from keystoneauth1.auth.identity import v2 +from keystoneauth1.auth.identity import v3 +from keystoneauth1.auth.identity.v3 import token as v3_token +from keystoneauth1.tests.unit.auth import utils class TokenTests(utils.GenericPluginTestCase): diff --git a/keystoneauth/tests/unit/auth/test_token_endpoint.py b/keystoneauth1/tests/unit/auth/test_token_endpoint.py similarity index 94% rename from keystoneauth/tests/unit/auth/test_token_endpoint.py rename to keystoneauth1/tests/unit/auth/test_token_endpoint.py index 5bdf8f2..28050ee 100644 --- a/keystoneauth/tests/unit/auth/test_token_endpoint.py +++ b/keystoneauth1/tests/unit/auth/test_token_endpoint.py @@ -12,9 +12,9 @@ from testtools import matchers -from keystoneauth.auth import token_endpoint -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1.auth import token_endpoint +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils class TokenEndpointTest(utils.TestCase): diff --git a/keystoneauth/tests/unit/auth/utils.py b/keystoneauth1/tests/unit/auth/utils.py similarity index 96% rename from keystoneauth/tests/unit/auth/utils.py rename to keystoneauth1/tests/unit/auth/utils.py index eabf839..6bace5e 100644 --- a/keystoneauth/tests/unit/auth/utils.py +++ b/keystoneauth1/tests/unit/auth/utils.py @@ -17,12 +17,12 @@ import mock from oslo_config import cfg import six -from keystoneauth import access -from keystoneauth.auth import base -from keystoneauth import exceptions -from keystoneauth import fixture -from keystoneauth import session -from keystoneauth.tests.unit import utils +from keystoneauth1 import access +from keystoneauth1.auth import base +from keystoneauth1 import exceptions +from keystoneauth1 import fixture +from keystoneauth1 import session +from keystoneauth1.tests.unit import utils class MockPlugin(base.BaseAuthPlugin): diff --git a/keystoneauth/tests/unit/k2k_fixtures.py b/keystoneauth1/tests/unit/k2k_fixtures.py similarity index 100% rename from keystoneauth/tests/unit/k2k_fixtures.py rename to keystoneauth1/tests/unit/k2k_fixtures.py diff --git a/keystoneauth/tests/unit/keystoneauth_fixtures.py b/keystoneauth1/tests/unit/keystoneauth_fixtures.py similarity index 100% rename from keystoneauth/tests/unit/keystoneauth_fixtures.py rename to keystoneauth1/tests/unit/keystoneauth_fixtures.py diff --git a/keystoneauth/tests/unit/test_discovery.py b/keystoneauth1/tests/unit/test_discovery.py similarity index 98% rename from keystoneauth/tests/unit/test_discovery.py rename to keystoneauth1/tests/unit/test_discovery.py index c45d931..ccd2f29 100644 --- a/keystoneauth/tests/unit/test_discovery.py +++ b/keystoneauth1/tests/unit/test_discovery.py @@ -15,9 +15,9 @@ import re import six -from keystoneauth import discover -from keystoneauth import fixture -from keystoneauth.tests.unit import utils +from keystoneauth1 import discover +from keystoneauth1 import fixture +from keystoneauth1.tests.unit import utils BASE_HOST = 'http://keystone.example.com' diff --git a/keystoneauth/tests/unit/test_fixtures.py b/keystoneauth1/tests/unit/test_fixtures.py similarity index 99% rename from keystoneauth/tests/unit/test_fixtures.py rename to keystoneauth1/tests/unit/test_fixtures.py index b8a20ba..92baa1c 100644 --- a/keystoneauth/tests/unit/test_fixtures.py +++ b/keystoneauth1/tests/unit/test_fixtures.py @@ -14,8 +14,8 @@ import uuid import six -from keystoneauth import fixture -from keystoneauth.tests.unit import utils +from keystoneauth1 import fixture +from keystoneauth1.tests.unit import utils class V2TokenTests(utils.TestCase): diff --git a/keystoneauth/tests/unit/test_hacking_checks.py b/keystoneauth1/tests/unit/test_hacking_checks.py similarity index 94% rename from keystoneauth/tests/unit/test_hacking_checks.py rename to keystoneauth1/tests/unit/test_hacking_checks.py index 79684b4..b81ede7 100644 --- a/keystoneauth/tests/unit/test_hacking_checks.py +++ b/keystoneauth1/tests/unit/test_hacking_checks.py @@ -16,8 +16,8 @@ import mock import pep8 import testtools -from keystoneauth.hacking import checks -from keystoneauth.tests.unit import keystoneauth_fixtures +from keystoneauth1.hacking import checks +from keystoneauth1.tests.unit import keystoneauth_fixtures class TestCheckOsloNamespaceImports(testtools.TestCase): diff --git a/keystoneauth/tests/unit/test_session.py b/keystoneauth1/tests/unit/test_session.py similarity index 99% rename from keystoneauth/tests/unit/test_session.py rename to keystoneauth1/tests/unit/test_session.py index 99f54c4..dd5aed0 100644 --- a/keystoneauth/tests/unit/test_session.py +++ b/keystoneauth1/tests/unit/test_session.py @@ -23,11 +23,11 @@ import requests import six from testtools import matchers -from keystoneauth import adapter -from keystoneauth.auth import base -from keystoneauth import exceptions -from keystoneauth import session as client_session -from keystoneauth.tests.unit import utils +from keystoneauth1 import adapter +from keystoneauth1.auth import base +from keystoneauth1 import exceptions +from keystoneauth1 import session as client_session +from keystoneauth1.tests.unit import utils class SessionTests(utils.TestCase): diff --git a/keystoneauth/tests/unit/utils.py b/keystoneauth1/tests/unit/utils.py similarity index 100% rename from keystoneauth/tests/unit/utils.py rename to keystoneauth1/tests/unit/utils.py diff --git a/openstack-common.conf b/openstack-common.conf index 6c89408..3571f02 100644 --- a/openstack-common.conf +++ b/openstack-common.conf @@ -4,4 +4,4 @@ module=install_venv_common # The base module to hold the copy of openstack.common -base=keystoneauth +base=keystoneauth1 diff --git a/setup.cfg b/setup.cfg index 64bfa1f..40cfab5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = keystoneauth +name = keystoneauth1 summary = Authentication Libarary for OpenStack Identity description-file = README.rst @@ -21,18 +21,18 @@ classifier = [files] packages = - keystoneauth + keystoneauth1 [entry_points] -keystoneauth.auth.plugin = - password = keystoneauth.auth.identity.generic:Password - token = keystoneauth.auth.identity.generic:Token - v2password = keystoneauth.auth.identity.v2:Password - v2token = keystoneauth.auth.identity.v2:Token - v3password = keystoneauth.auth.identity.v3:Password - v3token = keystoneauth.auth.identity.v3:Token - k2k = keystoneauth.auth.identity.v3:Keystone2Keystone +keystoneauth1.auth.plugin = + password = keystoneauth1.auth.identity.generic:Password + token = keystoneauth1.auth.identity.generic:Token + v2password = keystoneauth1.auth.identity.v2:Password + v2token = keystoneauth1.auth.identity.v2:Token + v3password = keystoneauth1.auth.identity.v3:Password + v3token = keystoneauth1.auth.identity.v3:Token + k2k = keystoneauth1.auth.identity.v3:Keystone2Keystone [build_sphinx] source-dir = doc/source diff --git a/tox.ini b/tox.ini index e108d62..394ba06 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' downloadcache = ~/cache/pip [testenv:debug] -commands = oslo_debug_helper -t keystoneauth/tests {posargs} +commands = oslo_debug_helper -t keystoneauth1/tests {posargs} [flake8] # H405: multi line docstring summary not separated with an empty line @@ -41,4 +41,4 @@ commands= python setup.py build_sphinx [hacking] -local-check-factory = keystoneauth.hacking.checks.factory +local-check-factory = keystoneauth1.hacking.checks.factory