def generate_test_accounts_file(tenant_id):
"""
Add needed tenant and user params into test_accounts.yaml
"""
logger.debug("Add needed params into test_accounts.yaml...")
accounts_list = [
{
'tenant_name':
CONST.__getattribute__('tempest_identity_tenant_name'),
'tenant_id': str(tenant_id),
'username': CONST.__getattribute__('tempest_identity_user_name'),
'password':
CONST.__getattribute__('tempest_identity_user_password')
}
]
with open(TEST_ACCOUNTS_FILE, "w") as f:
yaml.dump(accounts_list, f, default_flow_style=False)
评论列表
文章目录