diff --git a/tests/roles/Test_Setup/tasks/main.yml b/tests/roles/Test_Setup/tasks/main.yml new file mode 100644 index 0000000..4579c26 --- /dev/null +++ b/tests/roles/Test_Setup/tasks/main.yml @@ -0,0 +1,15 @@ +--- + +- name: Install required packages + dnf: + name: > + httpd, mod_jk-ap24 + +- name: Configure mod_jk.conf + command: mv /etc/httpd/conf.d/mod_jk.conf.sample /etc/httpd/conf.d/mod_jk.conf + +- name: Configure workers.properties + command: mv /etc/httpd/conf.d/workers.properties.sample /etc/httpd/conf.d/workers.properties + +- name: Configure uriworkermap.properties + command: mv /etc/httpd/conf.d/uriworkermap.properties.sample /etc/httpd/conf.d/uriworkermap.properties diff --git a/tests/tests.yml b/tests/tests.yml index eed9335..9145c91 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -3,14 +3,18 @@ tags: - classic roles: + - role: Test_Setup - role: standard-test-basic tests: - verify_httpd_up: dir: . run: "curl http://localhost/ &> testfile.log || true && grep 'Test Page' testfile.log" - - check_error_log: + - check_error_log_for_unexpected_errors: dir: . run: "! sudo grep -i error /var/log/httpd/error_log | grep -v \"AH01276\"" + - check_mod_jk_configured: + dir: . + run: "grep -e \"mod_jk/.* configured -- resuming normal operations\" /var/log/httpd/error_log" required_packages: - mod_jk-ap24 - httpd