From d14a0ab6a808f45765e40bb5491c2cae7cde4eab Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Tue, 24 Dec 2024 15:24:34 +0100 Subject: [PATCH] debug example --- intergration-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/intergration-test.sh b/intergration-test.sh index 670faf2..d41ef2b 100755 --- a/intergration-test.sh +++ b/intergration-test.sh @@ -1,9 +1,10 @@ #!/bin/bash - +is_local=0 echo $OSC_ENDPOINT_API | grep 127.0.0.1 > /dev/null if [ $? -eq 0 ]; then ./ricochet_preparation + is_local=1 fi set -eE @@ -12,6 +13,10 @@ MSG_BASE="Test Example" trap "echo [$MSG_BASE 0 FAIL]" ERR +if [[ "is_local" == 1 ]]; then + ./example0 +fi + out=$( ./example0 | grep -v '==' | jq ) [ $( echo "$out" | jq -r .Images[0].AccountAlias | grep -v null ) == "Outscale" ]