Add additional tests to configure the module and verify that it started successfully

Resolves: #1963135
This commit is contained in:
Coty Sutherland 2021-08-03 20:13:04 -04:00
parent 37ffef586e
commit d747333136
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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 '<strong>Test Page</strong>' 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