From 9c1ad555db15adddd800fe270369270221255ba3 Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Mon, 22 Nov 2021 11:46:39 +0000 Subject: [PATCH] Update tests.yml to expect JSON output from getStatus * Also fix rpmlint issue with hardcoded path Resolves: #1935985 --- jss.spec | 2 +- tests/tests.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jss.spec b/jss.spec index 05c6e00..1a3e45b 100644 --- a/jss.spec +++ b/jss.spec @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml index 9d0d42b..0d23972 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -8,10 +8,10 @@ tests: - verify_spawn_ca: dir: . - run: "curl http://localhost:8080/ca/admin/ca/getStatus | grep 'running'" + 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 'running'" + run: "curl http://localhost:8080/kra/admin/kra/getStatus | grep '\"Status\" : \"running\"'" - destroy_kra: dir: . run: "pkidestroy -i pki-tomcat -s KRA && sleep 5"