From 38ad3a4867201edb28a18cf83fb62bc729eca921 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 18 Feb 2025 10:41:46 -0800 Subject: [PATCH] CI: run S3 cross-compat tests as part of DSVM jobs We're increasingly trying to move toward having S3 tests that pass against both AWS and Swift. Especially as we move to replace our old boto(2) tests, it would be nice to have the replacements be cross- compatible from the get-go. However, there was previously a risk in leaning too-heavily on that test suite: only the functional test suite would be exercised in the gate with Keystone. Now, run both test suites to ensure we don't leave implementation gaps in s3token. Change-Id: I873c32107b4174bd2968097b5fe96d97f260a256 --- .zuul.yaml | 2 +- .../dsvm-additional-middlewares/tasks/main.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 8a29bb836c..bb988505bb 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -242,7 +242,7 @@ COLUMNS: 240 tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/openstack/requirements/upper-constraints.txt' # This tox env get run twice; once for Keystone and once for tempauth - tox_envlist: func + tox_envlist: func,s3api devstack_localrc: SWIFT_HASH: changeme # We don't need multiple replicas to run purely functional tests. diff --git a/roles/dsvm-additional-middlewares/tasks/main.yaml b/roles/dsvm-additional-middlewares/tasks/main.yaml index 42db2701c0..7d9f78ac97 100644 --- a/roles/dsvm-additional-middlewares/tasks/main.yaml +++ b/roles/dsvm-additional-middlewares/tasks/main.yaml @@ -21,6 +21,14 @@ value: example.com become: true +- name: Turn on s3_acl_tests_disabled in test.conf (for Keystone tests) + ini_file: + path: /etc/swift/test.conf + section: s3api_test + option: s3_acl_tests_disabled + value: true + become: true + - name: Set storage_domain in test/sample.conf (for tempauth tests) ini_file: path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" @@ -29,6 +37,14 @@ value: example.com become: true +- name: Turn on s3_acl_tests_disabled in test/sample.conf (for tempauth tests) + ini_file: + path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf" + section: s3api_test + option: s3_acl_tests_disabled + value: true + become: true + - name: Enable object versioning ini_file: path: /etc/swift/proxy-server.conf