2022-01-25 11:25:20 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-12-04 19:03:21 +03:00
|
|
|
docker compose -p sanity kill
|
|
|
|
docker compose -p sanity down --volumes
|
|
|
|
docker compose -p sanity up -d --force-recreate --renew-anon-volumes
|
2022-01-25 11:25:20 +03:00
|
|
|
|
2023-06-29 08:46:28 +03:00
|
|
|
./wait-elastic.sh 9201
|
|
|
|
|
2023-07-26 13:22:03 +03:00
|
|
|
# Create workspace record in accounts
|
2022-01-25 11:25:20 +03:00
|
|
|
./tool.sh create-workspace sanity-ws -o SanityTest
|
|
|
|
# Create user record in accounts
|
2023-08-26 12:37:26 +03:00
|
|
|
./tool.sh create-account user1 -f John -l Appleseed -p 1234
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh create-account user2 -f Kainin -l Dirak -p 1234
|
2023-07-26 13:22:03 +03:00
|
|
|
# Make user the workspace maintainer
|
|
|
|
./tool.sh set-user-role user1 sanity-ws 1
|
2023-05-29 09:20:59 +03:00
|
|
|
./tool.sh confirm-email user1
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh set-user-role user2 sanity-ws 1
|
|
|
|
./tool.sh confirm-email user2
|
2022-01-25 11:25:20 +03:00
|
|
|
|
|
|
|
./restore-workspace.sh
|