Skip to content

Commit 3c012be

Browse files
Your NamePotherca
authored andcommitted
Check if thirdparty also comes online
1 parent 4ad3b31 commit 3c012be

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

run-solid-test-suite.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function runPss {
3434
done
3535
docker ps -a
3636
docker logs server
37-
echo Confirmed that https://server is started now, assuming that https://thirdparty will also come online soon
37+
echo Confirmed that https://server is started now
3838

3939
echo Getting cookie for Alice...
4040
export COOKIE="`docker run --rm --cap-add=SYS_ADMIN --network=testnet -e SERVER_TYPE=php-solid-server --env-file ./env-vars-for-test-image.list cookie`"
@@ -46,6 +46,17 @@ function runPss {
4646
exit 1
4747
fi
4848

49+
until docker run --rm --network=testnet webid-provider-tests curl -kI https://thirdparty 2> /dev/null > /dev/null
50+
do
51+
echo Waiting for thirdparty to start, this can take up to a minute ...
52+
docker ps -a
53+
docker logs thirdparty
54+
sleep 1
55+
done
56+
docker ps -a
57+
docker logs thirdparty
58+
echo Confirmed that https://thirdparty is started now
59+
4960
echo Getting cookie for Bob...
5061
export COOKIE_BOB="`docker run --rm --cap-add=SYS_ADMIN --network=testnet -e SERVER_TYPE=php-solid-server --env-file ./env-vars-for-third-party.list cookie`"
5162
if [[ $COOKIE_BOB == PHPSESSID* ]]

0 commit comments

Comments
 (0)