2022-01-25 08:25:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-12-04 16:03:21 +00: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 08:25:20 +00:00
|
|
|
|
2023-06-29 05:46:28 +00:00
|
|
|
./wait-elastic.sh 9201
|
|
|
|
|
2023-07-26 10:22:03 +00:00
|
|
|
# Create workspace record in accounts
|
2024-02-02 09:27:27 +00:00
|
|
|
./tool.sh create-workspace sanity-ws -w SanityTest
|
2022-01-25 08:25:20 +00:00
|
|
|
# Create user record in accounts
|
2023-08-26 09:37:26 +00:00
|
|
|
./tool.sh create-account user1 -f John -l Appleseed -p 1234
|
2023-11-22 09:14:26 +00:00
|
|
|
./tool.sh create-account user2 -f Kainin -l Dirak -p 1234
|
2024-02-02 09:27:27 +00:00
|
|
|
./tool.sh assign-workspace user1 sanity-ws
|
|
|
|
./tool.sh assign-workspace user2 sanity-ws
|
2023-07-26 10:22:03 +00:00
|
|
|
# Make user the workspace maintainer
|
|
|
|
./tool.sh set-user-role user1 sanity-ws 1
|
2023-05-29 06:20:59 +00:00
|
|
|
./tool.sh confirm-email user1
|
2023-11-22 09:14:26 +00:00
|
|
|
./tool.sh set-user-role user2 sanity-ws 1
|
|
|
|
./tool.sh confirm-email user2
|
2022-01-25 08:25:20 +00:00
|
|
|
|
|
|
|
./restore-workspace.sh
|