]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 25 Nov 2024 04:53:57 +0000 (10:23 +0530)
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>
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..4efb579
--- /dev/null
@@ -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 (file)
index 4efb579..0000000
+++ /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