Skip to content

Commit ee31c8d

Browse files
committed
fixup! test: update deployed envs e2e test to latest sdk version
1 parent e816298 commit ee31c8d

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

.github/workflows/test-deploy-e2e.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ on:
88
type: choice
99
required: true
1010
options:
11-
- live-preprod
12-
- live-preview
13-
- dev-preprod
14-
- dev-preview
15-
- staging-preprod
11+
- 'dev'
12+
- 'staging'
13+
- 'live'
1614
network:
1715
description: 'Target network'
1816
type: choice

packages/e2e/src/scripts/generate-dotenv.sh

+26-9
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,44 @@
22

33
set -e
44
set -x
5-
set -o
65

7-
case $2 in
6+
target="${ENVIRONMENT}-${NETWORK}"
7+
8+
case $CLUSTER in
89
any)
9-
environment="$1"
10+
environment="${target}"
1011
;;
1112
*)
12-
environment="$1.$2"
13+
environment="${target}.${CLUSTER}"
1314
;;
1415
esac
1516

17+
case $NETWORK in
18+
preprod)
19+
networkMagic=1
20+
;;
21+
preview)
22+
networkMagic=2
23+
;;
24+
sanchonet)
25+
networkMagic=4
26+
;;
27+
*)
28+
echo "${NETWORK}: Unknown network"
29+
exit 1
30+
;;
31+
esac
32+
33+
echo $environment
34+
echo $networkMagic
35+
1636
domain="${environment}.lw.iog.io"
1737
url="https://${domain}/"
1838

1939
# Construct the environment file content
2040
envFileContent="
21-
# Logger
2241
LOGGER_MIN_SEVERITY=info
2342
24-
# Key management setup - required by getWallet
25-
KEY_MANAGEMENT_PROVIDER=inMemory
26-
2743
# Providers setup - required by getWallet
2844
TEST_CLIENT_ASSET_PROVIDER=http
2945
TEST_CLIENT_ASSET_PROVIDER_PARAMS='{\"baseUrl\":\"${url}\"}'
@@ -42,7 +58,8 @@ TEST_CLIENT_UTXO_PROVIDER_PARAMS='{\"baseUrl\":\"${url}\"}'
4258
TEST_CLIENT_STAKE_POOL_PROVIDER=http
4359
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS='{\"baseUrl\":\"${url}\"}'
4460
WS_PROVIDER_URL='wss://${domain}/ws'
45-
"
61+
62+
KEY_MANAGEMENT_PROVIDER=inMemory"
4663

4764
# Write the environment file content to the specified file
4865
echo "$envFileContent" > .env

0 commit comments

Comments
 (0)