From b8a6c1914ac2776e61b2a1086efbea07edc3c9ce Mon Sep 17 00:00:00 2001 From: Fadi Abbud <39081670+Fadiabb@users.noreply.github.com> Date: Tue, 17 May 2022 09:12:20 +0200 Subject: [PATCH] Add checker run to integration test scripts --- docs/scripts/setupProviderForITest.sh | 2 ++ docs/scripts/testChecker.sh | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 docs/scripts/testChecker.sh diff --git a/docs/scripts/setupProviderForITest.sh b/docs/scripts/setupProviderForITest.sh index b51b37b..76f1b9c 100755 --- a/docs/scripts/setupProviderForITest.sh +++ b/docs/scripts/setupProviderForITest.sh @@ -98,3 +98,5 @@ popd # Test resolving DNS record curl https://$DNS_NAME --insecure + +./testChecker.sh diff --git a/docs/scripts/testChecker.sh b/docs/scripts/testChecker.sh new file mode 100755 index 0000000..12bd5c2 --- /dev/null +++ b/docs/scripts/testChecker.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# This file is Free Software under the MIT License +# without warranty, see README.md and LICENSES/MIT.txt for details. +# +# SPDX-License-Identifier: MIT +# +# SPDX-FileCopyrightText: 2022 German Federal Office for Information Security (BSI) +# Software-Engineering: 2022 Intevation GmbH + +set -e # to exit if a command in the script fails + +cd ~/csaf_distribution + +./bin-linux-amd64/csaf_checker -o show.html --insecure \ +--client-cert ~/devca1/testclient1.crt --client-key \ +~/devca1/testclient1-key.pem localhost -f html \ + +cat show.html