Add basic tier0 tests to verify that installing mod_jk doesn't break anything

Related: #1963135
This commit is contained in:
Coty Sutherland 2021-08-02 15:45:50 -04:00
parent 063e91895e
commit 3d2ff26904
2 changed files with 24 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

18
tests/test.yml Normal file
View File

@ -0,0 +1,18 @@
- hosts: localhost
remote_user: root
tags:
- classic
roles:
- role: standard-test-basic
tests:
- verify_httpd_up:
dir: .
run: "curl http://localhost/ &> testfile.log || true && grep '<h1>Fedora Webserver <strong>Test Page</strong></h1>' testfile.log"
- check_error_log:
dir: .
run: "! sudo grep -i error /var/log/httpd/error_log | grep -v \"AH01276\""
required_packages:
- mod_jk-ap24
- httpd
required_services:
- httpd