From 352d4aa0e4a2f8e9986c62becc7887d349165383 Mon Sep 17 00:00:00 2001 From: Alex Aperis Date: Sun, 15 Dec 2024 12:18:31 +0100 Subject: [PATCH] get the correct c4gh passphrase form config --- .../.github/integration/tests/common/50_check_endpoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sda-download/.github/integration/tests/common/50_check_endpoint.sh b/sda-download/.github/integration/tests/common/50_check_endpoint.sh index ad05f093d..944a5cb79 100755 --- a/sda-download/.github/integration/tests/common/50_check_endpoint.sh +++ b/sda-download/.github/integration/tests/common/50_check_endpoint.sh @@ -85,7 +85,7 @@ echo "expected file found" # Test file can be decrypted ## test also the files endpoint -C4GH_PASSPHRASE=$(grep -F passphrase config.yaml | sed -e 's/.* //' -e 's/"//g') +C4GH_PASSPHRASE=$(grep -F passphrase config.yaml | tail -1 | sed -e 's/.* //' -e 's/"//g') export C4GH_PASSPHRASE crypt4gh decrypt -s c4gh.sec.pem -f dummy_data.c4gh && mv dummy_data old-file.txt