-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·32 lines (24 loc) · 1.1 KB
/
run-tests.sh
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
if [ ! $skip_build ]; then
docker build -t meetme-test-suite testing/backend-testing || exit 1
docker build -t meetme-test-puppeteer testing/puppeteer || exit 1
fi
#./build.sh
#docker-compose --file Docker-swarm.yml up --build -d
docker run --rm --network host mongo mongosh meetme --quiet --eval 'db.dropDatabase()'
docker run --rm --network host mongo mongosh meetme --quiet --eval 'db.createCollection("users")' &
docker run --rm --network host mongo mongosh meetme --quiet --eval 'db.createCollection("calendar_mains")' &
docker run --rm --network host mongo mongosh meetme --quiet --eval 'db.createCollection("calendar_metas")' &
docker run --rm --network host mongo mongosh meetme --quiet --eval 'db.createCollection("organizations")' &
wait
COOKIE_NETID1=""
COOKIE_NETID2=""
COOKIE_NETID3=""
COOKIE_NETID4=""
COOKIE_NETID5=""
COOKIE_NETID6=""
docker run \
--network host \
meetme-test-suite
#docker container create meetme-test-suite
#docker run -i --init --cap-add=SYS_ADMIN ---rm ghcr.io/puppeteer/puppeteer:latest node -e "$(cat getcookie.js)"
#docker-compose --file Docker-swarm.yml down