@@ -29,22 +29,22 @@ setup_css() {
2929 mkdir -p config
3030 cat > ./config/css-config.json << EOF
3131{
32- "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5 .0.0/components/context.jsonld",
32+ "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7 .0.0/components/context.jsonld",
3333 "import": [
34+ "css:config/app/init/static-root.json",
3435 "css:config/app/main/default.json",
35- "css:config/app/init/initialize-prefilled-root.json",
36- "css:config/app/setup/optional.json",
3736 "css:config/app/variables/default.json",
3837 "css:config/http/handler/default.json",
39- "css:config/http/middleware/websockets.json",
40- "css:config/http/server-factory/https-websockets.json",
38+ "css:config/http/middleware/default.json",
39+ "css:config/http/notifications/all.json",
40+ "css:config/http/server-factory/https.json",
4141 "css:config/http/static/default.json",
4242 "css:config/identity/access/public.json",
4343 "css:config/identity/email/default.json",
4444 "css:config/identity/handler/default.json",
45+ "css:config/identity/oidc/default.json",
4546 "css:config/identity/ownership/token.json",
4647 "css:config/identity/pod/static.json",
47- "css:config/identity/registration/enabled.json",
4848 "css:config/ldp/authentication/dpop-bearer.json",
4949 "css:config/ldp/authorization/webacl.json",
5050 "css:config/ldp/handler/default.json",
@@ -53,6 +53,7 @@ setup_css() {
5353 "css:config/ldp/modes/default.json",
5454 "css:config/storage/backend/memory.json",
5555 "css:config/storage/key-value/resource-store.json",
56+ "css:config/storage/location/pod.json",
5657 "css:config/storage/middleware/default.json",
5758 "css:config/util/auxiliary/acl.json",
5859 "css:config/util/identifiers/suffix.json",
@@ -62,13 +63,6 @@ setup_css() {
6263 "css:config/util/resource-locker/memory.json",
6364 "css:config/util/variables/default.json"
6465 ],
65- "@graph": [
66- {
67- "comment": [
68- "Adds CLI options --httpsKey and --httpsCert and uses those to start an HTTPS server."
69- ]
70- },
71- ]
7266}
7367EOF
7468
8579 docker run -d --name=server --network=testnet --env NODE_TLS_REJECT_UNAUTHORIZED=0 \
8680 -v " $( pwd) " /config:/config \
8781 -v " $( pwd) " /certs:/certs \
88- -p 443:443 -it solidproject/community-server:5 \
82+ -p 443:443 -it solidproject/community-server:7 \
8983 -c /config/css-config.json \
9084 --httpsKey=/certs/server.key --httpsCert=/certs/server.cert \
9185 --port=443 --baseUrl=https://server/
9690 sleep 1
9791 done
9892 echo ' CSS is running'
93+
94+ echo ' Creating client credentials'
95+ cp css.env css-creds.env
96+ NODE_TLS_REJECT_UNAUTHORIZED=0 node createCredentials.js https://server >> css-creds.env
9997}
10098
10199stop_css () {
@@ -171,7 +169,7 @@ shift
171169
172170echo " Running tests on $subject and reporting to $cwd /reports/$subject "
173171
174- dockerargs+=(' -v' " $cwd /reports/$outdir :/reports" " --env-file= $envfile " )
172+ dockerargs+=(' -v' " $cwd /reports/$outdir :/reports" )
175173if ! [[ " $* " == * " --target=" * ]]; then
176174 harnessargs+=(" --target=https://github.com/solid/conformance-test-harness/$subject " )
177175fi
@@ -183,7 +181,10 @@ mkdir -p reports/$subject
183181if [ $subject == " css" ]
184182then
185183 setup_css
186- dockerargs+=(' --network=testnet' )
184+ dockerargs+=(' --env-file=css-creds.env' ' --network=testnet' )
185+ harnessargs+=(' --skip-teardown' )
186+ else
187+ dockerargs+=(' --env-file=$envfile' )
187188fi
188189
189190# optionally pull published CTH image
0 commit comments