From 31fd0f2e804f9ca593ab22ecb7378f101df80560 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Mar 22 2019 07:37:46 +0000 Subject: drop requirement of setting subjects and artifacts ansible variables when executing the test playbook Fix related to https://pagure.io/standard-test-roles/issue/307 Before changing how the pipeline executes the playbook the STI specification needs to be updated. --- diff --git a/modules/ROOT/pages/standard-test-interface.adoc b/modules/ROOT/pages/standard-test-interface.adoc index 7ca6c66..5f039a1 100644 --- a/modules/ROOT/pages/standard-test-interface.adoc +++ b/modules/ROOT/pages/standard-test-interface.adoc @@ -178,9 +178,6 @@ tasks for each _test suite_ playbook: . MUST execute the playbook with the following operating system environment variables: .. `TEST_SUBJECTS`: The _test subjects_ string as described above .. `TEST_ARTIFACTS`: The full path of an empty folder for _test artifacts_ -. MUST execute the playbook with the following Ansible variables. -.. `subjects`: The _test subjects_ string as described above -.. `artifacts`: The full path of an empty folder for _test artifacts_ . SHOULD execute the playbook with all Ansible tags best represent the intended _test context_. .. The choice of _test context_ tags is related to the _test subject_ being tested . MUST execute Ansible with inventory set to the full path of the file or directory `tests/inventory` if it exists. diff --git a/modules/ROOT/pages/standard-test-roles.adoc b/modules/ROOT/pages/standard-test-roles.adoc index 6291322..17a3878 100644 --- a/modules/ROOT/pages/standard-test-roles.adoc +++ b/modules/ROOT/pages/standard-test-roles.adoc @@ -58,7 +58,7 @@ To run it use the following command: You can find output artifacts of the tests in an `artifacts/` or specify a specific directory like this: - ansible-playbook -e artifacts=/tmp/output tests.yml + TEST_ARTIFACTS=/tmp/output ansible-playbook tests.yml You can filter which kinds of tests are run by providing a `--tags` argument. To only run tests that are suited for classic systems installed by `yum` or `dnf` you can use a command like: