EndpointPolicy driver doesn't inherit interface
Added the driver interface 'base.EndpointPolicyDriverV8' as super class of the sql driver implementation. Removed unused methods from driver interface and added release notes. Change-Id: I198dcbda7591e0dafb1da3a72e3f32b258c0e299 Closes-Bug: #1611102
This commit is contained in:
parent
12f0db8cc9
commit
97585c15a6
@ -114,30 +114,6 @@ class EndpointPolicyDriverV8(object):
|
||||
:type policy_id: string
|
||||
:returns: List of association dicts
|
||||
|
||||
"""
|
||||
raise exception.NotImplemented() # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def list_endpoints_for_policy(self, policy_id):
|
||||
"""List all the endpoints using a given policy.
|
||||
|
||||
:param policy_id: identity of policy that is being associated
|
||||
:type policy_id: string
|
||||
:returns: list of endpoints that have an effective association with
|
||||
that policy
|
||||
|
||||
"""
|
||||
raise exception.NotImplemented() # pragma: no cover
|
||||
|
||||
@abc.abstractmethod
|
||||
def get_policy_for_endpoint(self, endpoint_id):
|
||||
"""Get the appropriate policy for a given endpoint.
|
||||
|
||||
:param endpoint_id: identity of endpoint
|
||||
:type endpoint_id: string
|
||||
:returns: Policy entity for the endpoint
|
||||
|
||||
|
||||
"""
|
||||
raise exception.NotImplemented() # pragma: no cover
|
||||
|
||||
|
@ -17,6 +17,7 @@ import uuid
|
||||
import sqlalchemy
|
||||
|
||||
from keystone.common import sql
|
||||
from keystone.endpoint_policy.backends import base
|
||||
from keystone import exception
|
||||
|
||||
|
||||
@ -47,7 +48,7 @@ class PolicyAssociation(sql.ModelBase, sql.ModelDictMixin):
|
||||
return d
|
||||
|
||||
|
||||
class EndpointPolicy(object):
|
||||
class EndpointPolicy(base.EndpointPolicyDriverV8):
|
||||
|
||||
def create_policy_association(self, policy_id, endpoint_id=None,
|
||||
service_id=None, region_id=None):
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- The methods ``list_endpoints_for_policy()`` and
|
||||
``get_policy_for_endpoint()`` have been removed from the EndpointPolicy
|
||||
driver interface.
|
Loading…
Reference in New Issue
Block a user