platform/tests/create-local.sh

22 lines
737 B
Bash
Raw Normal View History

# Create workspace record in accounts
./tool-local.sh create-workspace sanity-ws -o SanityTest
# Create user record in accounts
./tool-local.sh create-account user1 -f John -l Appleseed -p 1234
./tool-local.sh confirm-email user1
# Create second user record in accounts
./tool-local.sh create-account user2 -f Kainin -l Dirak -p 1234
./tool-local.sh confirm-email user2
# Restore workspace contents in mongo/elastic
./tool-local.sh backup-restore ./sanity-ws sanity-ws
./tool-local.sh upgrade-workspace sanity-ws
# Re-assign user to workspace.
./tool-local.sh assign-workspace user1 sanity-ws
./tool-local.sh assign-workspace user2 sanity-ws
./tool-local.sh configure sanity-ws --enable=*
./tool-local.sh configure sanity-ws --list