Skip to content

Commit 028a437

Browse files
authored
Merge pull request #53 from pdsinterop/latest-test-suites
Run latest versions of test suites
2 parents 4b12465 + 497de71 commit 028a437

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

env-vars-for-test-image.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ STORAGE_ROOT_BOB=https://thirdparty/storage
1111
USERNAME=alice
1212
PASSWORD=alice123
1313
PUBSUB_URL=http://pubsub:8080
14+
SKIP_CONC=1

run-solid-test-suite.sh

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ function setup {
1313

1414
docker pull solidtestsuite/webid-provider-tests:v2.0.3
1515
docker tag solidtestsuite/webid-provider-tests:v2.0.3 webid-provider-tests
16-
docker pull solidtestsuite/solid-crud-tests:pss-skips
17-
docker tag solidtestsuite/solid-crud-tests:pss-skips solid-crud-tests
18-
docker pull solidtestsuite/web-access-control-tests:v5.1.0
19-
docker tag solidtestsuite/web-access-control-tests:v5.1.0 web-access-control-tests
16+
docker pull solidtestsuite/solid-crud-tests:v5.2.0
17+
docker tag solidtestsuite/solid-crud-tests:v5.2.0 solid-crud-tests
18+
docker pull solidtestsuite/web-access-control-tests:v6.0.0
19+
docker tag solidtestsuite/web-access-control-tests:v6.0.0 web-access-control-tests
2020
}
2121

2222
function runPss {
@@ -34,12 +34,39 @@ 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

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+
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+
60+
echo Getting cookie for Bob...
4161
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-
}
62+
if [[ $COOKIE_BOB == PHPSESSID* ]]
63+
then
64+
echo Successfully obtained cookie for Bob: $COOKIE_BOB
65+
else
66+
echo Error obtaining cookie for Bob, stopping.
67+
exit 1
68+
fi
69+
}
4370

4471
function runTests {
4572
echo "Running webid-provider tests with cookie $COOKIE"

0 commit comments

Comments
 (0)