diff --git a/keystoneclient/auth/identity/base.py b/keystoneclient/auth/identity/base.py index 02c4fe6a1..bf7fc7225 100644 --- a/keystoneclient/auth/identity/base.py +++ b/keystoneclient/auth/identity/base.py @@ -184,6 +184,7 @@ class BaseIdentityPlugin(base.BaseAuthPlugin): :returns: Token access information. :rtype: :py:class:`keystoneclient.access.AccessInfo` """ + pass def get_token(self, session, **kwargs): """Return a valid auth token. diff --git a/keystoneclient/auth/identity/v2.py b/keystoneclient/auth/identity/v2.py index fd8b42272..3b98eff87 100644 --- a/keystoneclient/auth/identity/v2.py +++ b/keystoneclient/auth/identity/v2.py @@ -103,6 +103,7 @@ class Auth(base.BaseIdentityPlugin): :return: A dict of authentication data for the auth type. :rtype: dict """ + pass _NOT_PASSED = object() diff --git a/keystoneclient/auth/identity/v3/base.py b/keystoneclient/auth/identity/v3/base.py index b8234a386..a38cd8c08 100644 --- a/keystoneclient/auth/identity/v3/base.py +++ b/keystoneclient/auth/identity/v3/base.py @@ -240,6 +240,7 @@ class AuthMethod(object): data for the auth type. :rtype: tuple(string, dict) """ + pass @six.add_metaclass(abc.ABCMeta) diff --git a/keystoneclient/openstack/common/apiclient/auth.py b/keystoneclient/openstack/common/apiclient/auth.py index 003c086e1..d51223a92 100644 --- a/keystoneclient/openstack/common/apiclient/auth.py +++ b/keystoneclient/openstack/common/apiclient/auth.py @@ -204,8 +204,8 @@ class BaseAuthPlugin(object): @abc.abstractmethod def _do_authenticate(self, http_client): - """Protected method for authentication. - """ + """Protected method for authentication.""" + pass def sufficient_options(self): """Check if all required options are present. @@ -232,3 +232,4 @@ class BaseAuthPlugin(object): :returns: tuple of token and endpoint strings :raises: EndpointException """ + pass diff --git a/keystoneclient/service_catalog.py b/keystoneclient/service_catalog.py index bb64689a3..d0a27198e 100644 --- a/keystoneclient/service_catalog.py +++ b/keystoneclient/service_catalog.py @@ -110,6 +110,7 @@ class ServiceCatalog(object): :returns: True if the provided endpoint matches the required endpoint_type otherwise False. """ + pass @abc.abstractmethod def _normalize_endpoint_type(self, endpoint_type): @@ -122,6 +123,7 @@ class ServiceCatalog(object): :returns: the endpoint string in the format appropriate for this service catalog. """ + pass def get_endpoints(self, service_type=None, endpoint_type=None, region_name=None, service_name=None): diff --git a/keystoneclient/tests/unit/auth/test_identity_common.py b/keystoneclient/tests/unit/auth/test_identity_common.py index 5c906f617..a9f2ba227 100644 --- a/keystoneclient/tests/unit/auth/test_identity_common.py +++ b/keystoneclient/tests/unit/auth/test_identity_common.py @@ -55,6 +55,7 @@ class CommonIdentityTests(object): It doesn't really matter what auth mechanism is used but it should be appropriate to the API version. """ + pass @abc.abstractmethod def get_auth_data(self, **kwargs): @@ -63,6 +64,7 @@ class CommonIdentityTests(object): This should register a valid token response and ensure that the compute endpoints are set to TEST_COMPUTE_PUBLIC, _INTERNAL and _ADMIN. """ + pass def stub_auth_data(self, **kwargs): token = self.get_auth_data(**kwargs)