Skip to content

Commit 38ad3a4

Browse files
committed
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
1 parent 7a3b737 commit 38ad3a4

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.zuul.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
COLUMNS: 240
243243
tox_constraints_file: '{{ ansible_user_dir }}/src/opendev.org/openstack/requirements/upper-constraints.txt'
244244
# This tox env get run twice; once for Keystone and once for tempauth
245-
tox_envlist: func
245+
tox_envlist: func,s3api
246246
devstack_localrc:
247247
SWIFT_HASH: changeme
248248
# We don't need multiple replicas to run purely functional tests.

roles/dsvm-additional-middlewares/tasks/main.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
value: example.com
2222
become: true
2323

24+
- name: Turn on s3_acl_tests_disabled in test.conf (for Keystone tests)
25+
ini_file:
26+
path: /etc/swift/test.conf
27+
section: s3api_test
28+
option: s3_acl_tests_disabled
29+
value: true
30+
become: true
31+
2432
- name: Set storage_domain in test/sample.conf (for tempauth tests)
2533
ini_file:
2634
path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf"
@@ -29,6 +37,14 @@
2937
value: example.com
3038
become: true
3139

40+
- name: Turn on s3_acl_tests_disabled in test/sample.conf (for tempauth tests)
41+
ini_file:
42+
path: "{{ ansible_env.HOME }}/{{ zuul.project.src_dir }}/test/sample.conf"
43+
section: s3api_test
44+
option: s3_acl_tests_disabled
45+
value: true
46+
become: true
47+
3248
- name: Enable object versioning
3349
ini_file:
3450
path: /etc/swift/proxy-server.conf

0 commit comments

Comments
 (0)