Update Region create and update

format strings in parenthesis in
create statement, update update region
command for domain name of ranger
region

Change-Id: I976f8972faefe87e21bd746a18037403719bb6cf
This commit is contained in:
jh629g 2020-08-21 00:46:27 -05:00 committed by Jeremy Houser
parent 11f1de34a4
commit 91f3af3759

View File

@ -87,8 +87,8 @@ class BaseOrmTest(test.BaseTestCase):
'type': 'identity'
}, {
'publicURL':
'https://ranger-agent-nc.%s.cci.att.com'
% CONF.identity.region,
('https://ranger-agent-nc.%s.cci.att.com'
% CONF.identity.region),
'type': 'ord'
}]})
except (exceptions.UnexpectedResponseCode, exceptions.NotFound):
@ -118,12 +118,12 @@ class BaseOrmTest(test.BaseTestCase):
if region['id'] == CONF.identity.region or \
(region['id'] == CONF.ranger.alt_region
and CONF.ranger.alt_region_available is True):
region['domainName'] = CONF.auth.admin_domain_name
cls.region_client.update_region(region['id'],
**region)
cls.addClassResourceCleanup(cls.region_client.update_region,
region['id'],
**region)
region['domainName'] = CONF.auth.admin_domain_name
cls.region_client.update_region(region['id'],
**region)
def assert_expected(self, expected, actual, excluded_keys):
for key, value in list(expected.items()):