]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add iam section to cloud transitions config
authorAli Maredia <amaredia@redhat.com>
Tue, 19 Jul 2022 15:37:35 +0000 (11:37 -0400)
committerAli Maredia <amaredia@redhat.com>
Mon, 22 Aug 2022 06:49:58 +0000 (23:49 -0700)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
(cherry picked from commit 07435866e7dbfb2dc6e7f3246ae852f59cb01c6d)

qa/tasks/s3tests.py

index 31b9623251df2ac5f7277d3dd553f1f0ba8ead4d..5461cb82e1ebe63f691afdb3a980b6232aab88aa 100644 (file)
@@ -119,6 +119,8 @@ def create_users(ctx, config):
                     'user', 'create',
                     '--uid', s3tests_conf[section]['user_id'],
                     '--display-name', s3tests_conf[section]['display_name'],
+                    '--email', s3tests_conf[section]['email'],
+                    '--caps', 'user-policy=*',
                     '--access-key', s3tests_conf[section]['access_key'],
                     '--secret', s3tests_conf[section]['secret_key'],
                     '--cluster', cluster_name,
@@ -146,19 +148,6 @@ def create_users(ctx, config):
 
             # add/configure caps for iam user
             if section=='iam':
-                ctx.cluster.only(client).run(
-                    args=[
-                        'adjust-ulimits',
-                        'ceph-coverage',
-                        '{tdir}/archive/coverage'.format(tdir=testdir),
-                        'radosgw-admin',
-                        '-n', client_with_id,
-                        'caps', 'add',
-                        '--uid', s3tests_conf[section]['user_id'],
-                        '--caps', 'user-policy=*',
-                        '--cluster', cluster_name,
-                    ],
-                )
                 ctx.cluster.only(client).run(
                     args=[
                         'adjust-ulimits',
@@ -626,6 +615,7 @@ def task(ctx, config):
                         's3 alt'     : {},
                         's3 tenant'  : {},
                         's3 cloud'   : {},
+                        'iam'        : {},
                         }
                     ) 
         else: