Add additional tests to configure the module and verify that it started successfully
Resolves: #1963135
This commit is contained in:
parent
37ffef586e
commit
d747333136
15
tests/roles/Test_Setup/tasks/main.yml
Normal file
15
tests/roles/Test_Setup/tasks/main.yml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user