
removed the private namespace options that were lingering in create/update/tests it should now adhere to the v3 api specs Change-Id: I853c2b8a13bc657e9cd2a3f24e6eb7deb68a4c5c
21 lines
583 B
Python
21 lines
583 B
Python
import uuid
|
|
|
|
from keystoneclient.v3 import domains
|
|
from tests.v3 import utils
|
|
|
|
|
|
class DomainTests(utils.TestCase, utils.CrudTests):
|
|
def setUp(self):
|
|
super(DomainTests, self).setUp()
|
|
self.additionalSetUp()
|
|
self.key = 'domain'
|
|
self.collection_key = 'domains'
|
|
self.model = domains.Domain
|
|
self.manager = self.client.domains
|
|
|
|
def new_ref(self, **kwargs):
|
|
kwargs = super(DomainTests, self).new_ref(**kwargs)
|
|
kwargs.setdefault('enabled', True)
|
|
kwargs.setdefault('name', uuid.uuid4().hex)
|
|
return kwargs
|