Files
huly-platform/qms-tests/restore-workspace.sh
T
f50b0fab71 Rework processes (#9322)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Andrey Sobolev <haiodo@gmail.com>
2025-06-24 23:18:11 +05:00

20 lines
897 B
Bash
Executable File

#!/bin/bash
# Restore workspace contents in mongo/elastic
./tool.sh backup-restore ./sanity-ws-qms/ sanity-ws-qms --upgrade
# Re-assign user to workspace.
./tool.sh assign-workspace user1 sanity-ws-qms
./tool.sh assign-workspace user2 sanity-ws-qms
./tool.sh assign-workspace user3 sanity-ws-qms
./tool.sh assign-workspace user4 sanity-ws-qms
./tool.sh assign-workspace user_qara sanity-ws-qms
./tool.sh set-user-role user2 sanity-ws-qms OWNER
./tool.sh configure sanity-ws-qms --enable=*
./tool.sh configure sanity-ws-qms --list
# resets employee active status so it can be set again and trigger filling default spaces owners
# can be removed once we merge prod and develop and update the sanity workspace backup
./tool.sh change-field sanity-ws-qms --objectId 65a04887e1043543cd5f21a5 --objectClass contact:class:Person --attribute contact:mixin:Employee.active --value false --type boolean