Skip to content

Commit

Permalink
debug example
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-mgo committed Dec 24, 2024
1 parent ed2eb03 commit d14a0ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion intergration-test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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" ]
Expand Down

0 comments on commit d14a0ab

Please sign in to comment.