Take domain_id from config in some tests.
tempest.api.identity.admin.v3.test_tokens.TokensV3TestJSON.test_rescope_token fails if not used default value for CONF.identity.default_domain_id Closes-Bug: 1951446 Change-Id: Ie08d570907ddf9102c1297f717355a7f772aabb8
This commit is contained in:
committed by
mitya-eremeev-2
parent
815798ada3
commit
aca819b796
@@ -38,14 +38,17 @@ class TokensV3TestJSON(base.BaseIdentityV3AdminTest):
|
||||
|
||||
# Create a user.
|
||||
user_password = data_utils.rand_password()
|
||||
user = self.create_test_user(password=user_password)
|
||||
user = self.create_test_user(password=user_password,
|
||||
domain_id=CONF.identity.default_domain_id)
|
||||
|
||||
# Create a couple projects
|
||||
project1_name = data_utils.rand_name(name=self.__class__.__name__)
|
||||
project1 = self.setup_test_project(name=project1_name)
|
||||
project1 = self.setup_test_project(
|
||||
name=project1_name, domain_id=CONF.identity.default_domain_id)
|
||||
|
||||
project2_name = data_utils.rand_name(name=self.__class__.__name__)
|
||||
project2 = self.setup_test_project(name=project2_name)
|
||||
project2 = self.setup_test_project(
|
||||
name=project2_name, domain_id=CONF.identity.default_domain_id)
|
||||
self.addCleanup(self.projects_client.delete_project, project2['id'])
|
||||
|
||||
# Create a role
|
||||
|
||||
Reference in New Issue
Block a user