Skip to content

Commit 4ad3b31

Browse files
Your NamePotherca
authored andcommitted
Stop if can't get cookie
1 parent 4cf0008 commit 4ad3b31

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

run-solid-test-suite.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,26 @@ function runPss {
3636
docker logs server
3737
echo Confirmed that https://server is started now, assuming that https://thirdparty will also come online soon
3838

39-
echo Getting cookie...
39+
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`"
41+
if [[ $COOKIE == PHPSESSID* ]]
42+
then
43+
echo Successfully obtained cookie for Alice: $COOKIE
44+
else
45+
echo Error obtaining cookie for Alice, stopping.
46+
exit 1
47+
fi
48+
49+
echo Getting cookie for Bob...
4150
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`"
42-
}
51+
if [[ $COOKIE_BOB == PHPSESSID* ]]
52+
then
53+
echo Successfully obtained cookie for Bob: $COOKIE_BOB
54+
else
55+
echo Error obtaining cookie for Bob, stopping.
56+
exit 1
57+
fi
58+
}
4359

4460
function runTests {
4561
echo "Running webid-provider tests with cookie $COOKIE"

0 commit comments

Comments
 (0)