Update tests.yml to expect JSON output from getStatus

* Also fix rpmlint issue with hardcoded path

Resolves: #1935985
This commit is contained in:
Chris Kelley 2021-11-22 11:46:39 +00:00
parent abd85088fd
commit 9c1ad555db
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Source: https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phas
%define java_devel java-11-openjdk-devel
%define java_headless java-11-openjdk-headless
%define java_home /usr/lib/jvm/jre-11-openjdk
%define java_home %{_jvmdir}/jre-11-openjdk
################################################################################
# Build Options

View File

@ -8,10 +8,10 @@
tests:
- verify_spawn_ca:
dir: .
run: "curl http://localhost:8080/ca/admin/ca/getStatus | grep '<Status>running</Status>'"
run: "curl http://localhost:8080/ca/admin/ca/getStatus | grep '\"Status\" : \"running\"'"
- verify_spawn_kra:
dir: .
run: "curl http://localhost:8080/kra/admin/kra/getStatus | grep '<Status>running</Status>'"
run: "curl http://localhost:8080/kra/admin/kra/getStatus | grep '\"Status\" : \"running\"'"
- destroy_kra:
dir: .
run: "pkidestroy -i pki-tomcat -s KRA && sleep 5"