summaryrefslogtreecommitdiff
path: root/.zuul.yaml
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2018-01-11 16:24:24 -0800
committerTim Burke <tim.burke@gmail.com>2021-03-01 10:09:03 -0800
commitc5152ed4d3a37c5e0017be9f0445bf0868561b96 (patch)
tree0e7dc25d05978bc88ba99659868861d155693c73 /.zuul.yaml
parent5c3eb488f2df5a93a9899a406fc9a4658efb272b (diff)
downloadswift-c5152ed4d3a37c5e0017be9f0445bf0868561b96.tar.gz
Add some functional CORS tests
If you've got selenium installed (and working), the whole thing can be automated pretty well; run main.py, wait while some windows pop up (or use xvfb-run to run things on a virtual display), then check out what tests were run on which browsers and whether any of them failed. Exit code is the number of failed tests. Includes tests against: - Account - Containers, with various ACLs/CORS settings - Objects - /info - SLOs - DLOs - Symlinks Include a gate job that runs the tests in firefox. Areas for future work: - Install chromium and chromedriver in the gate; tests should automatically pick up on the fact that it's available - Capture the web browser's console logs, too, so we can get more info when things go wrong Change-Id: Ic1d3a062419f1133c6e2f00a598867d567358c9f
Diffstat (limited to '.zuul.yaml')
-rw-r--r--.zuul.yaml27
1 files changed, 23 insertions, 4 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 6b26bfae7..ff2cd0278 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -309,6 +309,17 @@
vars:
bindep_profile: test py36
+- job:
+ name: swift-func-cors
+ parent: swift-probetests-centos-7
+ description: |
+ Setup a SAIO dev environment and run Swift's CORS functional tests
+ timeout: 1200
+ pre-run:
+ - tools/playbooks/cors/install_selenium.yaml
+ run: tools/playbooks/cors/run.yaml
+ post-run: tools/playbooks/cors/post.yaml
+
- nodeset:
name: swift-five-nodes
nodes:
@@ -515,7 +526,7 @@
- swift-tox-py27:
irrelevant-files: &unittest-irrelevant-files
- ^(api-ref|doc|releasenotes)/.*$
- - ^test/(functional|probe)/.*$
+ - ^test/(cors|functional|probe)/.*$
- swift-tox-py36:
irrelevant-files: *unittest-irrelevant-files
- swift-tox-py37:
@@ -529,7 +540,7 @@
- swift-tox-func-py27:
irrelevant-files: &functest-irrelevant-files
- ^(api-ref|doc|releasenotes)/.*$
- - ^test/probe/.*$
+ - ^test/(cors|probe)/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG|.*\.rst)$
- swift-tox-func-encryption-py27:
irrelevant-files: *functest-irrelevant-files
@@ -545,20 +556,27 @@
irrelevant-files: *functest-irrelevant-files
# Other tests
+ - swift-func-cors:
+ irrelevant-files:
+ - ^(api-ref|releasenotes)/.*$
+ # Keep doc/saio -- we use those sample configs in the saio playbooks
+ - ^doc/(requirements.txt|(manpages|s3api|source)/.*)$
+ - ^test/(unit|functional|probe)/.*$
+ - ^(.gitreview|.mailmap|AUTHORS|CHANGELOG)$
- swift-tox-func-s3api-ceph-s3tests-tempauth:
irrelevant-files:
- ^(api-ref|releasenotes)/.*$
# Keep doc/saio -- we use those sample configs in the saio playbooks
# Also keep doc/s3api -- it holds known failures for these tests
- ^doc/(requirements.txt|(manpages|source)/.*)$
- - ^test/(unit|probe)/.*$
+ - ^test/(cors|unit|probe)/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG|.*\.rst)$
- swift-probetests-centos-7:
irrelevant-files: &probetest-irrelevant-files
- ^(api-ref|releasenotes)/.*$
# Keep doc/saio -- we use those sample configs in the saio playbooks
- ^doc/(requirements.txt|(manpages|s3api|source)/.*)$
- - ^test/(unit|functional)/.*$
+ - ^test/(cors|unit|functional)/.*$
- ^(.gitreview|.mailmap|AUTHORS|CHANGELOG|.*\.rst)$
- swift-probetests-centos-8:
irrelevant-files: *probetest-irrelevant-files
@@ -606,6 +624,7 @@
- swift-tox-func-py37
- swift-tox-func-encryption-py37
- swift-tox-func-ec-py37
+ - swift-func-cors
- swift-probetests-centos-7:
irrelevant-files: *probetest-irrelevant-files
- swift-probetests-centos-8: