diff options
author | sergey.galtsev <sergey.galtsev@mongodb.com> | 2021-09-28 22:43:09 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-28 23:11:18 +0000 |
commit | e5d32fc7b6811a659ac36f519bf697d776df4849 (patch) | |
tree | 6c2675bad0d3c64daf6c1dea26a738ea242b4921 /etc/evergreen.yml | |
parent | 9569a71e456821fe24030f59810f384d4a9b8b02 (diff) | |
download | mongo-e5d32fc7b6811a659ac36f519bf697d776df4849.tar.gz |
SERVER-56180 SELinux policy tests
Diffstat (limited to 'etc/evergreen.yml')
-rw-r--r-- | etc/evergreen.yml | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index dee53d454a2..e3f564cabcd 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1441,6 +1441,30 @@ functions: args: - "./src/evergreen/powercycle_setup_host.sh" + "run selinux tests": + - command: host.create + params: + provider: ec2 + distro: ${distro} + timeout_teardown_secs: 86400 # 1 day + - command: host.list + params: + wait: true + timeout_seconds: 900 # 15 min + num_hosts: 1 + path: src/hosts.yml + - *f_expansions_write + - command: subprocess.exec + type: test + params: + binary: bash + args: + - "./src/evergreen/selinux_run_test.sh" + env: + test_list: ${test_list} + user: ec2-user + + ### Process & archive remote EC2 artifacts ### "save powercycle artifacts": &save_powercycle_artifacts command: subprocess.exec @@ -6047,6 +6071,69 @@ tasks: - func: "run powercycle test" timeout_secs: 1800 # 30 minute timeout for no output + +- name: selinux_rhel8_org + tags: [] + depends_on: + - name: package + commands: + - command: manifest.load + - func: "git get project and add git tag" + - *f_expansions_write + - func: "set up venv" + - func: "fetch packages" + - func: "run selinux tests" + vars: + distro: rhel80-selinux + test_list: jstests/selinux/*.js + +- name: selinux_rhel8_enterprise + tags: [] + depends_on: + - name: package + commands: + - command: manifest.load + - func: "git get project and add git tag" + - *f_expansions_write + - func: "set up venv" + - func: "fetch packages" + - func: "run selinux tests" + vars: + distro: rhel80-selinux + test_list: jstests/selinux/*.js src/mongo/db/modules/enterprise/jstests/selinux/*.js + +- name: selinux_rhel7_org + tags: [] + depends_on: + - name: package + commands: + - command: manifest.load + - func: "git get project and add git tag" + - *f_expansions_write + - func: "set up venv" + - func: "fetch packages" + - func: "run selinux tests" + vars: + user: root + distro: rhel76-selinux + test_list: jstests/selinux/*.js + +- name: selinux_rhel7_enterprise + tags: [] + depends_on: + - name: package + commands: + - command: manifest.load + - func: "git get project and add git tag" + - *f_expansions_write + - func: "set up venv" + - func: "fetch packages" + - func: "run selinux tests" + vars: + user: root + distro: rhel76-selinux + test_list: jstests/selinux/*.js src/mongo/db/modules/enterprise/jstests/selinux/*.js + - name: idl_tests tags: [] depends_on: @@ -9136,6 +9223,7 @@ buildvariants: - name: test_packages distros: - ubuntu2004-package + - name: selinux_rhel8_enterprise - name: .publish - &enterprise-rhel-80-64-bit-dynamic-required-template @@ -9830,6 +9918,7 @@ buildvariants: - name: test_packages distros: - ubuntu2004-package + - name: selinux_rhel7_enterprise - name: .publish distros: - rhel70-small @@ -9912,6 +10001,7 @@ buildvariants: - name: test_packages distros: - ubuntu2004-package + - name: selinux_rhel8_enterprise - name: .publish distros: - rhel80-small @@ -9967,6 +10057,7 @@ buildvariants: - name: test_packages distros: - ubuntu2004-package + - name: selinux_rhel8_org - name: .publish distros: - rhel80-small @@ -10149,6 +10240,7 @@ buildvariants: - name: test_packages distros: - ubuntu2004-package + - name: selinux_rhel7_org - name: .publish distros: - rhel70-small |