2024-07-01 19:21:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-01-25 11:25:20 +03:00
|
|
|
|
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
|
2024-02-16 09:36:14 +03:00
|
|
|
docker_exit=$?
|
|
|
|
if [ ${docker_exit} -eq 0 ]; then
|
|
|
|
echo "Container started successfully"
|
|
|
|
else
|
|
|
|
echo "Container started with errors"
|
|
|
|
exit ${docker_exit}
|
|
|
|
fi
|
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
|
2024-02-02 12:27:27 +03:00
|
|
|
./tool.sh create-workspace sanity-ws -w SanityTest
|
2022-01-25 11:25:20 +03:00
|
|
|
# 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
|
2024-02-02 12:27:27 +03:00
|
|
|
./tool.sh assign-workspace user1 sanity-ws
|
|
|
|
./tool.sh assign-workspace user2 sanity-ws
|
2024-07-02 14:09:44 +03:00
|
|
|
./tool.sh set-user-role user1 sanity-ws OWNER
|
|
|
|
./tool.sh set-user-role user2 sanity-ws OWNER
|
2023-07-26 13:22:03 +03:00
|
|
|
# Make user the workspace maintainer
|
2023-05-29 09:20:59 +03:00
|
|
|
./tool.sh confirm-email user1
|
2023-11-22 12:14:26 +03:00
|
|
|
./tool.sh confirm-email user2
|
2022-01-25 11:25:20 +03:00
|
|
|
|
|
|
|
./restore-workspace.sh
|