platform/tests/prepare.sh
Alexander Onnikov 1260c8770c
UBER-629 Fix Kick Employee action (#3523)
Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
2023-07-26 17:22:03 +07:00

17 lines
491 B
Bash
Executable File

#!/bin/bash
docker-compose -p sanity kill
docker-compose -p sanity down --volumes
docker-compose -p sanity up -d --force-recreate --renew-anon-volumes
./wait-elastic.sh 9201
# Create workspace record in accounts
./tool.sh create-workspace sanity-ws -o SanityTest
# Create user record in accounts
./tool.sh create-account user1 -f John -l Appleseed -p 1234
# Make user the workspace maintainer
./tool.sh set-user-role user1 sanity-ws 1
./tool.sh confirm-email user1
./restore-workspace.sh