]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/keystone: config can create ec2 credentials
authorCasey Bodley <cbodley@redhat.com>
Fri, 4 Aug 2023 16:01:15 +0000 (12:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Oct 2023 14:41:35 +0000 (10:41 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/keystone.py

index 27e808f688352979b0a0a87e03f2a989b808f48d..fc45b9c2938dc70363b8bed24c788231c4c6d95c 100644 (file)
@@ -387,6 +387,8 @@ def fill_keystone(ctx, config):
                          cconfig.get('projects', []))
         run_section_cmds(ctx, cclient, 'user create --or-show', 'name',
                          cconfig.get('users', []))
+        run_section_cmds(ctx, cclient, 'ec2 credentials create', '',
+                         cconfig.get('ec2 credentials', []))
         run_section_cmds(ctx, cclient, 'role create --or-show', 'name',
                          cconfig.get('roles', []))
         run_section_cmds(ctx, cclient, 'role add', 'name',
@@ -441,6 +443,9 @@ def task(ctx, config):
               - name: custom
                 password: SECRET
                 project: custom
+            ec2 credentials:
+              - project: custom
+                user: custom
             roles: [ name: custom ]
             role-mappings:
               - name: custom