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: v20.0.0~563^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0601e565c5c98adf4946b8178e7e7b1efb52a207;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 --- diff --git a/qa/suites/rgw/tempest/tasks/s3/% b/qa/suites/rgw/tempest/tasks/s3/% new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/qa/suites/rgw/tempest/tasks/s3/.qa b/qa/suites/rgw/tempest/tasks/s3/.qa new file mode 120000 index 000000000000..fea2489fdf6d --- /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 000000000000..fea2489fdf6d --- /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 000000000000..c46a51e0958a --- /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 000000000000..a7b00d00f0b8 --- /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 000000000000..4efb579fa834 --- /dev/null +++ b/qa/suites/rgw/tempest/tasks/s3/s3tests.yaml @@ -0,0 +1,37 @@ +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 + rgw sts key: abcdefghijklmnop + rgw s3 auth use sts: true + 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 4efb579fa834..000000000000 --- a/qa/suites/rgw/tempest/tasks/s3tests.yaml +++ /dev/null @@ -1,37 +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 - rgw sts key: abcdefghijklmnop - rgw s3 auth use sts: true - 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