1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

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.
This commit is contained in:
Bernhard Reiter 2022-06-14 11:56:11 +02:00
parent d4f68a9b08
commit 7e7947a601
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554
2 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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