From 7e7947a6019cb05108d439e7173a94c303b22fac Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Tue, 14 Jun 2022 11:56:11 +0200 Subject: [PATCH] Improve integration test for checker * Change checking to use client certs and verbose for html as this is what can be displayed on a webbrowser. * Rename the json result file to indicate why the result will differ without using the access of the client certificate. --- .github/workflows/itest.yml | 2 +- docs/scripts/testChecker.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/itest.yml b/.github/workflows/itest.yml index b30cba0..6a93c2e 100644 --- a/.github/workflows/itest.yml +++ b/.github/workflows/itest.yml @@ -34,5 +34,5 @@ jobs: name: checker-results path: | ~/checker-results.html - ~/checker-results.json + ~/checker-results-no-clientcert.json if-no-files-found: error diff --git a/docs/scripts/testChecker.sh b/docs/scripts/testChecker.sh index a6e7e19..37c128b 100755 --- a/docs/scripts/testChecker.sh +++ b/docs/scripts/testChecker.sh @@ -13,12 +13,12 @@ set -e # to exit if a command in the script fails echo '==== run checker (twice)' cd ~/csaf_distribution -./bin-linux-amd64/csaf_checker -o ../checker-results.html --insecure \ - --insecure localhost -f html +./bin-linux-amd64/csaf_checker -f html -o ../checker-results.html --insecure \ + --client-cert ~/devca1/testclient1.crt \ + --client-key ~/devca1/testclient1-key.pem \ + --verbose --insecure localhost cat ../checker-results.html -./bin-linux-amd64/csaf_checker -o ../checker-results.json --insecure \ ---client-cert ~/devca1/testclient1.crt \ ---client-key ~/devca1/testclient1-key.pem \ ---verbose localhost +./bin-linux-amd64/csaf_checker -o ../checker-results-no-clientcert.json \ + --insecure --verbose localhost