-
Notifications
You must be signed in to change notification settings - Fork 4
/
TODO.txt
40 lines (35 loc) · 1.49 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Development notes:
Solid-Nextcloud server with solid app mounted from host:
```
function startSolidNextcloud {
docker run -d --name $1 --network=testnet --env-file ./env-vars-$1.list -v /Users/michiel/gh/pdsinterop/solid-nextcloud/solid:/var/www/html/apps/solid solid-nextcloud
until docker run --rm --network=testnet solidtestsuite/webid-provider-tests curl -kI https://$1 2> /dev/null > /dev/null
do
echo Waiting for $1 to start, this can take up to a minute ...
docker ps -a
docker logs $1
sleep 1
done
docker logs $1
echo Running init script for Nextcloud $1 ...
docker exec -u www-data -it -e SERVER_ROOT=https://$1 $1 sh /init.sh
docker exec -u root -it $1 service apache2 reload
echo Getting cookie for $1...
export COOKIE_$1="`docker run --cap-add=SYS_ADMIN --network=testnet --env-file ./env-vars-$1.list michielbdejong/nextcloud-cookie`"
}
```
You can check this with `type -a startSolidNextcloud`. Interactively, run:
```
teardown
setup
startPubSub
startSolidNextcloud server
```
And then run the tester interactively and with code mounted from the host:
```
docker run --rm --network=testnet --env COOKIE="$COOKIE_server" --env COOKIE_ALICE="$COOKIE_server" --env COOKIE_BOB="$COOKIE_thirdparty" --env-file ./env-vars-testers.list -it -v /Users/michiel/gh/solid-contrib/solid-crud-tests/test:/app/test --name tester -v /Users/michiel/hevel:/hevel solid-crud-tests /bin/bash
```
And then inside that:
```
./node_modules/.bin/jest test/surface/notifications.test.ts
```