diff options
| author | Nisha Yadav <ynisha11@gmail.com> | 2016-06-21 15:44:29 +0530 |
|---|---|---|
| committer | Nisha Yadav <ynisha11@gmail.com> | 2016-06-21 16:19:32 +0530 |
| commit | cf45fff4f1942e8a5d54ceee618fef391925f268 (patch) | |
| tree | b35dfe685072ea085c964e4b5549837b3af70eb7 /keystoneclient/tests/functional | |
| parent | 15a93d8bfba6e24185e0105b234e5c8db6e5a6ec (diff) | |
| download | python-keystoneclient-cf45fff4f1942e8a5d54ceee618fef391925f268.tar.gz | |
Follow up patch for add domain functional tests
This patch fixes comments left by the review
I74bff2728c09e6aafaced97a7836f51e58a81786.
Change-Id: Ic74e8fbde2455280f5affaafb8d989a6b98feb75
Diffstat (limited to 'keystoneclient/tests/functional')
| -rw-r--r-- | keystoneclient/tests/functional/v3/client_fixtures.py | 3 | ||||
| -rw-r--r-- | keystoneclient/tests/functional/v3/test_domains.py | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/keystoneclient/tests/functional/v3/client_fixtures.py b/keystoneclient/tests/functional/v3/client_fixtures.py index 56ecaf6..9467643 100644 --- a/keystoneclient/tests/functional/v3/client_fixtures.py +++ b/keystoneclient/tests/functional/v3/client_fixtures.py @@ -19,12 +19,11 @@ RESOURCE_NAME_PREFIX = 'keystoneclient-functional-' class Base(fixtures.Fixture): - def __init__(self, client, domain_id): + def __init__(self, client, domain_id=None): super(Base, self).__init__() self.client = client self.domain_id = domain_id - self.ref = None self.entity = None diff --git a/keystoneclient/tests/functional/v3/test_domains.py b/keystoneclient/tests/functional/v3/test_domains.py index cd87f3f..cdfbdd7 100644 --- a/keystoneclient/tests/functional/v3/test_domains.py +++ b/keystoneclient/tests/functional/v3/test_domains.py @@ -54,10 +54,10 @@ class DomainsTestCase(base.V3ClientTestCase): self.check_domain(domain_ret) def test_list_domains(self): - domain_one = fixtures.Domain(self.client, self.project_domain_id) + domain_one = fixtures.Domain(self.client) self.useFixture(domain_one) - domain_two = fixtures.Domain(self.client, self.project_domain_id) + domain_two = fixtures.Domain(self.client) self.useFixture(domain_two) domains = self.client.domains.list() @@ -70,7 +70,7 @@ class DomainsTestCase(base.V3ClientTestCase): self.assertIn(domain_two.entity, domains) def test_update_domain(self): - domain = fixtures.Domain(self.client, self.project_domain_id) + domain = fixtures.Domain(self.client) self.useFixture(domain) new_description = uuid.uuid4().hex |
