-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
41 lines (38 loc) · 1.12 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Need to investigate why login time can be so high
MS_LOGIN=60000
MS_RESP=4000
DURATION=2m
if [[ "$LOCUST_TEST_ENV" == "production" ]]
then
MERRITTURL=https://merritt.cdlib.org
SSMPATH=/uc3/mrt/dev/integ-tests/for-prod
USERCOUNT=6
ARKLIST=ark:/99999/fk4t16pn3j,ark:/99999/fk4xp8q22b
elif [[ "$LOCUST_TEST_ENV" == "preview" ]]
then
MERRITTURL=https://uc3-mrt-preview-prd.cdlib.org
SSMPATH=/uc3/mrt/dev/integ-tests/for-prod
USERCOUNT=6
ARKLIST=ark:/99999/fk4t16pn3j,ark:/99999/fk4xp8q22b
else
MERRITTURL=https://merritt-stage.cdlib.org
SSMPATH=/uc3/mrt/dev/integ-tests/for-stage
USERCOUNT=6
# stage arks are purged weekly
ARKLIST=
fi
if [[ "$LOCUST_MODE" == "readonly" ]]
then
export MNEMONIC=merritt_demo_pub
export TESTARKS=
else
export MERRITTUSER=$(aws ssm get-parameter --name ${SSMPATH}/user --query Parameter.Value --output text)
export MERRITTPASS=$(aws ssm get-parameter --name ${SSMPATH}/password --with-decryption --query Parameter.Value --output text)
export MNEMONIC=merritt_demo
export TESTARKS=$ARKLIST
fi
if [[ "$LOCUST_MODE" == "long" ]]
then
USERCOUNT=$((USERCOUNT * 3))
DURATION=10m
fi