From aba9f19434a0aaa30d6a4b40db23e7568484da3c Mon Sep 17 00:00:00 2001 From: Thomas Fossati Date: Wed, 17 Dec 2025 12:14:58 +0100 Subject: [PATCH] test(coserv): more parameterised test harness Signed-off-by: Thomas Fossati --- coserv/test-harness/query.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coserv/test-harness/query.sh b/coserv/test-harness/query.sh index 34fd8053..523a8e5e 100755 --- a/coserv/test-harness/query.sh +++ b/coserv/test-harness/query.sh @@ -4,6 +4,8 @@ set -o pipefail set -eu A=${A?must be set in the environment to one of rv or ta} +HOST=${HOST:-localhost} +FMT=${FMT:-cbor} base64url_encode() { if [ "$(uname)" == "Darwin" ] @@ -64,7 +66,7 @@ elif [ "${A}" == "ta" ]; then q=$(ta_query) fi -curl https://localhost:11443/endorsement-distribution/v1/coserv/$q -s \ +curl https://${HOST}:11443/endorsement-distribution/v1/coserv/$q -s \ --insecure \ - --header 'Accept: application/coserv+cose; profile="tag:arm.com,2023:cca_platform#1.0.0"' \ + --header "Accept: application/coserv+${FMT}; profile=\"tag:arm.com,2023:cca_platform#1.0.0\"" \ | cbor-edn cbor2diag