Skip to content

Commit

Permalink
s3/swift tests: call radosgw-admin as the right client
Browse files Browse the repository at this point in the history
This allows the right region and zone info to be read from ceph.conf

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
  • Loading branch information
jdurgin committed Jul 31, 2013
1 parent 3b3816d commit 9b2c4fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions s3tests.py
Expand Up @@ -82,6 +82,7 @@ def create_users(ctx, config):
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'radosgw-admin',
'-n', client,
'user', 'create',
'--uid', s3tests_conf[section]['user_id'],
'--display-name', s3tests_conf[section]['display_name'],
Expand All @@ -102,6 +103,7 @@ def create_users(ctx, config):
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'radosgw-admin',
'-n', client,
'user', 'rm',
'--uid', uid,
'--purge-data',
Expand Down
2 changes: 2 additions & 0 deletions swift.py
Expand Up @@ -63,6 +63,7 @@ def create_users(ctx, config):
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'radosgw-admin',
'-n', client,
'user', 'create',
'--subuser', '{account}:{user}'.format(account=testswift_conf['func_test']['account{s}'.format(s=suffix)],user=user),
'--display-name', testswift_conf['func_test']['display_name{s}'.format(s=suffix)],
Expand All @@ -83,6 +84,7 @@ def create_users(ctx, config):
'ceph-coverage',
'{tdir}/archive/coverage'.format(tdir=testdir),
'radosgw-admin',
'-n', client,
'user', 'rm',
'--uid', uid,
'--purge-data',
Expand Down

0 comments on commit 9b2c4fa

Please sign in to comment.