mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 12:05:36 +00:00
Qfix: qms signature dialog login info in tests (#6100)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
0a65d46eec
commit
b1bf038355
@ -18,7 +18,7 @@
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import login from '@hcengineering/login'
|
||||
import { ERROR, IntlString, OK, Severity, Status, getMetadata, translate } from '@hcengineering/platform'
|
||||
import { EditBox, StylishEdit, ModernDialog } from '@hcengineering/ui'
|
||||
import { EditBox, StylishEdit, ModernDialog, fetchMetadataLocalStorage } from '@hcengineering/ui'
|
||||
|
||||
import documents from '../plugin'
|
||||
import StatusControl from './requests/StatusControl.svelte'
|
||||
@ -33,7 +33,8 @@
|
||||
let rejectionNote = ''
|
||||
|
||||
const accountsUrl = getMetadata(login.metadata.AccountsUrl) ?? ''
|
||||
const email: string = getMetadata(login.metadata.LoginEmail) ?? ''
|
||||
const email: string =
|
||||
getMetadata(login.metadata.LoginEmail) ?? fetchMetadataLocalStorage(login.metadata.LoginEmail) ?? ''
|
||||
const disableEmailField = email !== ''
|
||||
|
||||
const object: LoginInfo = {
|
||||
|
16
qms-tests/create-local.sh
Executable file
16
qms-tests/create-local.sh
Executable file
@ -0,0 +1,16 @@
|
||||
# Create init workspace
|
||||
./tool-local.sh create-workspace init-ws-qms -w InitTest
|
||||
./tool-local.sh configure init-ws-qms --enable=*
|
||||
./tool-local.sh configure init-ws-qms --list
|
||||
|
||||
# Create workspace record in accounts
|
||||
./tool-local.sh create-workspace sanity-ws-qms -w 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
|
||||
|
||||
./tool-local.sh create-account user_qara -f Qara -l Admin -p 1234
|
||||
./tool-local.sh confirm-email user_qara
|
22
qms-tests/restore-local.sh
Executable file
22
qms-tests/restore-local.sh
Executable file
@ -0,0 +1,22 @@
|
||||
|
||||
export MINIO_ACCESS_KEY=minioadmin
|
||||
export MINIO_SECRET_KEY=minioadmin
|
||||
export MINIO_ENDPOINT=localhost:9000
|
||||
export MONGO_URL=mongodb://localhost:27017
|
||||
export ELASTIC_URL=http://localhost:9200
|
||||
export SERVER_SECRET=secret
|
||||
|
||||
# Restore workspace contents in mongo/elastic
|
||||
./tool-local.sh backup-restore ./sanity-ws-qms sanity-ws-qms
|
||||
|
||||
./tool-local.sh upgrade-workspace sanity-ws-qms
|
||||
|
||||
# Re-assign user to workspace.
|
||||
./tool-local.sh assign-workspace user1 sanity-ws-qms
|
||||
./tool-local.sh assign-workspace user2 sanity-ws-qms
|
||||
./tool-local.sh assign-workspace user_qara sanity-ws-qms
|
||||
./tool-local.sh set-user-role user1 sanity-ws-qms OWNER
|
||||
./tool-local.sh set-user-role user2 sanity-ws-qms OWNER
|
||||
|
||||
./tool-local.sh configure sanity-ws-qms --enable=*
|
||||
./tool-local.sh configure sanity-ws-qms --list
|
12
qms-tests/tool-local.sh
Executable file
12
qms-tests/tool-local.sh
Executable file
@ -0,0 +1,12 @@
|
||||
|
||||
export MINIO_ACCESS_KEY=minioadmin
|
||||
export MINIO_SECRET_KEY=minioadmin
|
||||
export MINIO_ENDPOINT=localhost:9000
|
||||
export MONGO_URL=mongodb://localhost:27017
|
||||
export ACCOUNTS_URL=http://localhost:3000
|
||||
export TRANSACTOR_URL=ws://localhost:3333
|
||||
export ELASTIC_URL=http://localhost:9200
|
||||
export SERVER_SECRET=secret
|
||||
|
||||
# Restore workspace contents in mongo/elastic
|
||||
node ../dev/tool/bundle/bundle.js $@
|
Loading…
Reference in New Issue
Block a user