diff options
author | wanghong <w.wanghong@huawei.com> | 2015-02-04 16:55:42 +0800 |
---|---|---|
committer | wanghong <w.wanghong@huawei.com> | 2015-02-05 04:10:30 +0000 |
commit | 5ad4cc0b68ec49f18caa92082a062acc0848c807 (patch) | |
tree | d7c13bcd8acb71830570afb662197ee19f01099c | |
parent | cef7775cda6d4113171ff713ee36b93731b89242 (diff) | |
download | python-keystoneclient-5ad4cc0b68ec49f18caa92082a062acc0848c807.tar.gz |
use right resource_class to create resource instance
Currently, in test_endpoint_policy.py we use the resource_class of
project to create a policy instance. We should use the resource_class
of policy to create policy instance.
Closes-Bug: #1418316
Change-Id: I4fc444b266c61da0a131651d7aa636021f6ea5f9
-rw-r--r-- | keystoneclient/tests/v3/test_endpoint_policy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keystoneclient/tests/v3/test_endpoint_policy.py b/keystoneclient/tests/v3/test_endpoint_policy.py index 59a9079..5915910 100644 --- a/keystoneclient/tests/v3/test_endpoint_policy.py +++ b/keystoneclient/tests/v3/test_endpoint_policy.py @@ -57,7 +57,7 @@ class EndpointPolicyTests(utils.TestCase, self, http_action, manager_action): policy_ref = self.new_policy_ref() endpoint_ref = self.new_endpoint_ref() - policy = self.client.projects.resource_class( + policy = self.client.policies.resource_class( self.client.policies, policy_ref, loaded=True) endpoint = self.client.endpoints.resource_class( self.client.endpoints, endpoint_ref, loaded=True) @@ -108,7 +108,7 @@ class EndpointPolicyTests(utils.TestCase, self, http_action, manager_action): policy_ref = self.new_policy_ref() service_ref = self.new_service_ref() - policy = self.client.projects.resource_class( + policy = self.client.policies.resource_class( self.client.policies, policy_ref, loaded=True) service = self.client.services.resource_class( self.client.services, service_ref, loaded=True) @@ -161,7 +161,7 @@ class EndpointPolicyTests(utils.TestCase, policy_ref = self.new_policy_ref() region_ref = self.new_region_ref() service_ref = self.new_service_ref() - policy = self.client.projects.resource_class( + policy = self.client.policies.resource_class( self.client.policies, policy_ref, loaded=True) region = self.client.regions.resource_class( self.client.regions, region_ref, loaded=True) |