tomcatjss/tests/tests.yml
Shalini Khandelwal 4a14e08b18 Added tier0 gating tests for RHEL9
Resolves: #1954562

Signed-off-by: Shalini Khandelwal <skhandel@redhat.com>
2021-06-03 13:45:49 +05:30

31 lines
949 B
YAML

- hosts: localhost
remote_user: root
roles:
- role: Test_Setup
- role: standard-test-basic
tags:
- classic
tests:
- verify_spawn_ca:
dir: .
run: "curl http://localhost:8080/ca/admin/ca/getStatus | grep '<Status>running</Status>'"
- verify_spawn_kra:
dir: .
run: "curl http://localhost:8080/kra/admin/kra/getStatus | grep '<Status>running</Status>'"
- destroy_kra:
dir: .
run: "pkidestroy -i pki-tomcat -s KRA && sleep 5"
- verify_destroy_kra:
dir: .
run: "curl http://localhost:8080/kra/admin/kra/getStatus | grep 'HTTP Status 404'"
- destroy_ca:
dir: .
run: "pkidestroy -i pki-tomcat -s CA"
- verify_destroy_ca:
dir: .
run: "curl http://localhost:8080/ca/admin/ca/getStatus &> testfile.log || true && grep 'Connection refused' testfile.log"
required_packages:
- tomcatjss
- pki-ca
- pki-kra