]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw/keystone: run s3tests against both auth orders
authorCasey Bodley <cbodley@redhat.com>
Fri, 4 Oct 2024 14:51:01 +0000 (10:51 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Mon, 16 Jun 2025 19:40:54 +0000 (15:40 -0400)
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 <cbodley@redhat.com>
(cherry picked from commit 0601e565c5c98adf4946b8178e7e7b1efb52a207)

qa/suites/rgw/tempest/tasks/s3/% [new file with mode: 0644]
qa/suites/rgw/tempest/tasks/s3/.qa [new symlink]
qa/suites/rgw/tempest/tasks/s3/auth-order/.qa [new symlink]
qa/suites/rgw/tempest/tasks/s3/auth-order/external-local.yaml [new file with mode: 0644]
qa/suites/rgw/tempest/tasks/s3/auth-order/local-external.yaml [new file with mode: 0644]
qa/suites/rgw/tempest/tasks/s3/s3tests.yaml [new file with mode: 0644]
qa/suites/rgw/tempest/tasks/s3tests.yaml [deleted file]

diff --git a/qa/suites/rgw/tempest/tasks/s3/% b/qa/suites/rgw/tempest/tasks/s3/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rgw/tempest/tasks/s3/.qa b/qa/suites/rgw/tempest/tasks/s3/.qa
new file mode 120000 (symlink)
index 0000000..fea2489
--- /dev/null
@@ -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 (symlink)
index 0000000..fea2489
--- /dev/null
@@ -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 (file)
index 0000000..c46a51e
--- /dev/null
@@ -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 (file)
index 0000000..a7b00d0
--- /dev/null
@@ -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 (file)
index 0000000..06f3f9d
--- /dev/null
@@ -0,0 +1,41 @@
+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
+  s3tests:
+    accounts:
+      iam root: RGW88888888888888888
+      iam alt root: RGW99999999999999999
+
+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 (file)
index 06f3f9d..0000000
+++ /dev/null
@@ -1,41 +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
-  s3tests:
-    accounts:
-      iam root: RGW88888888888888888
-      iam alt root: RGW99999999999999999
-
-tasks:
-- s3tests:
-    client.0:
-      rgw_server: client.0
-      keystone users:
-        s3 main:
-          client: client.0
-          project: s3tests
-          user: s3tests-main