From c4deef74eb1f0a4f29f1dd58a0aebb9f21c55601 Mon Sep 17 00:00:00 2001 From: Fadi Abbud <39081670+Fadiabb@users.noreply.github.com> Date: Mon, 16 May 2022 10:45:49 +0200 Subject: [PATCH] Add aggregator to the integration tests scripts --- .github/workflows/itest.yml | 1 + docs/scripts/testAggregator.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 docs/scripts/testAggregator.sh diff --git a/.github/workflows/itest.yml b/.github/workflows/itest.yml index 7d815cf..4f6c35c 100644 --- a/.github/workflows/itest.yml +++ b/.github/workflows/itest.yml @@ -23,4 +23,5 @@ jobs: env FOLDERNAME=devca1 ORGANAME="CSAF Tools Development (internal)" ./TLSConfigsForITest.sh env FOLDERNAME=devca1 ORGANAME="CSAF Tools Development (internal)" ./TLSClientConfigsForITest.sh ./setupProviderForITest.sh + ./testAggregator.sh shell: bash diff --git a/docs/scripts/testAggregator.sh b/docs/scripts/testAggregator.sh new file mode 100755 index 0000000..ecc0a8d --- /dev/null +++ b/docs/scripts/testAggregator.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 + +# The same directory name used in the config-example file. +sudo mkdir /var/csaf_aggregator +sudo chgrp -R www-data /var/csaf_aggregator +sudo chmod -R g+w /var/csaf_aggregator + +cd ~/csaf_distribution/ +sudo ./bin-linux-amd64/csaf_aggregator -c docs/examples/aggregator.toml