From: Casey Bodley Date: Fri, 4 Oct 2024 14:51:01 +0000 (-0400) Subject: qa/rgw/keystone: run s3tests against both auth orders X-Git-Tag: v18.2.5~53^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b2475ab700c4e1c48f7496ab0ac8edfc3744afe3;p=ceph.git qa/rgw/keystone: run s3tests against both auth orders we've only been testing the default configuration for `rgw_s3_auth_order: sts, external, local`, but local before external should work too. split the s3tests task into two jobs, one for each auth order relates to https://tracker.ceph.com/issues/68393 Signed-off-by: Casey Bodley (cherry picked from commit 0601e565c5c98adf4946b8178e7e7b1efb52a207) --- diff --git a/qa/suites/rgw/tempest/tasks/s3/% b/qa/suites/rgw/tempest/tasks/s3/% new file mode 100644 index 00000000000..e69de29bb2d diff --git a/qa/suites/rgw/tempest/tasks/s3/.qa b/qa/suites/rgw/tempest/tasks/s3/.qa new file mode 120000 index 00000000000..fea2489fdf6 --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/.qa @@ -0,0 +1 @@ +../.qa \ No newline at end of file diff --git a/qa/suites/rgw/tempest/tasks/s3/auth-order/.qa b/qa/suites/rgw/tempest/tasks/s3/auth-order/.qa new file mode 120000 index 00000000000..fea2489fdf6 --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/auth-order/.qa @@ -0,0 +1 @@ +../.qa \ No newline at end of file diff --git a/qa/suites/rgw/tempest/tasks/s3/auth-order/external-local.yaml b/qa/suites/rgw/tempest/tasks/s3/auth-order/external-local.yaml new file mode 100644 index 00000000000..c46a51e0958 --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/auth-order/external-local.yaml @@ -0,0 +1,5 @@ +overrides: + ceph: + conf: + client: + rgw s3 auth order: sts, external, local diff --git a/qa/suites/rgw/tempest/tasks/s3/auth-order/local-external.yaml b/qa/suites/rgw/tempest/tasks/s3/auth-order/local-external.yaml new file mode 100644 index 00000000000..a7b00d00f0b --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/auth-order/local-external.yaml @@ -0,0 +1,5 @@ +overrides: + ceph: + conf: + client: + rgw s3 auth order: sts, local, external diff --git a/qa/suites/rgw/tempest/tasks/s3/s3tests.yaml b/qa/suites/rgw/tempest/tasks/s3/s3tests.yaml new file mode 100644 index 00000000000..f1ee8a17c4c --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/s3tests.yaml @@ -0,0 +1,35 @@ +overrides: + ceph: + conf: + client: + rgw s3 auth use keystone: true + rgw crypt s3 kms backend: testing + rgw crypt s3 kms encryption keys: testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo= + rgw crypt require ssl: false + keystone: + client.0: + projects: + - name: s3tests + description: s3tests project + users: + - name: s3tests-main + password: SECRET + project: s3tests + ec2 credentials: + - project: s3tests + user: s3tests-main + roles: [ name: member ] + role-mappings: + - name: member + user: s3tests-main + project: s3tests + +tasks: +- s3tests: + client.0: + rgw_server: client.0 + keystone users: + s3 main: + client: client.0 + project: s3tests + user: s3tests-main diff --git a/qa/suites/rgw/tempest/tasks/s3tests.yaml b/qa/suites/rgw/tempest/tasks/s3tests.yaml deleted file mode 100644 index f1ee8a17c4c..00000000000 --- a/qa/suites/rgw/tempest/tasks/s3tests.yaml +++ /dev/null @@ -1,35 +0,0 @@ -overrides: - ceph: - conf: - client: - rgw s3 auth use keystone: true - rgw crypt s3 kms backend: testing - rgw crypt s3 kms encryption keys: testkey-1=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo= testkey-2=aWIKTWFrZWZpbGUKbWFuCm91dApzcmMKVGVzdGluZwo= - rgw crypt require ssl: false - keystone: - client.0: - projects: - - name: s3tests - description: s3tests project - users: - - name: s3tests-main - password: SECRET - project: s3tests - ec2 credentials: - - project: s3tests - user: s3tests-main - roles: [ name: member ] - role-mappings: - - name: member - user: s3tests-main - project: s3tests - -tasks: -- s3tests: - client.0: - rgw_server: client.0 - keystone users: - s3 main: - client: client.0 - project: s3tests - user: s3tests-main