From 3d2ff26904d196ac76e5ab56afc596c6587a9ec1 Mon Sep 17 00:00:00 2001 From: Coty Sutherland Date: Mon, 2 Aug 2021 15:45:50 -0400 Subject: [PATCH] Add basic tier0 tests to verify that installing mod_jk doesn't break anything Related: #1963135 --- gating.yaml | 6 ++++++ tests/test.yml | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/test.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..73db2d7 --- /dev/null +++ b/tests/test.yml @@ -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 '

Fedora Webserver Test Page

' 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