)
-def _config_user(s3tests_conf, section, user, email):
+def _config_user(s3tests_conf, section, user, email, account):
"""
Configure users for this section by stashing away keys, ids, and
email addresses.
"""
s3tests_conf[section].setdefault('user_id', user)
+ s3tests_conf[section].setdefault('account_id', account)
s3tests_conf[section].setdefault('email', email)
s3tests_conf[section].setdefault('display_name', 'Mr.{user}'.format(user=user))
s3tests_conf[section].setdefault('access_key',
if section == 's3 tenant':
args += ['--tenant', 'testx']
ctx.cluster.only(client).run(args=args)
- _config_user(conf, section, account_id, account_email)
+ _config_user(conf, section, account_id, account_email, account_id)
else:
- _config_user(conf, section, user_id, user_email)
+ _config_user(conf, section, user_id, user_email, None)
# for keystone users, read ec2 credentials into s3tests.conf instead
# of creating a local user