1
- export type TestEnvironmentPreset = 'local' | 'docker' | 'rootsid1' | 'rootsid2' ;
1
+ export type TestEnvironmentPreset = 'local' | 'docker' ;
2
2
3
3
export interface TestEnvironment {
4
4
preset : TestEnvironmentPreset ;
@@ -13,16 +13,10 @@ const WAN = 'BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha';
13
13
const WIL = 'BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM' ;
14
14
const WES = 'BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX' ;
15
15
16
- // rootsid witnesses
17
- const W1 = 'BHI7yViNOGWd1X0aKMgxLm4dUgbQDYoCFSJM2U8Hb3cx'
18
- const W2 = 'BOUZ4v-vPMP5KyZQP-d_8B30UHI4KWgXczBgWcRJnnYd'
19
- const W3 = 'BNY3LWk2BzX8wXmkXuvpYRVSdfynanwKQwD80KOG00VH'
20
-
21
-
22
16
export function resolveEnvironment (
23
17
input ?: TestEnvironmentPreset
24
18
) : TestEnvironment {
25
- const preset = input ?? process . env . TEST_ENVIRONMENT ?? 'local ' ;
19
+ const preset = input ?? process . env . TEST_ENVIRONMENT ?? 'docker ' ;
26
20
27
21
const url = 'http://127.0.0.1:3901' ;
28
22
const bootUrl = 'http://127.0.0.1:3903' ;
@@ -54,34 +48,6 @@ export function resolveEnvironment(
54
48
] ,
55
49
witnessIds : [ WAN , WIL , WES ] ,
56
50
} ;
57
- case 'rootsid1' :
58
- return {
59
- preset : preset ,
60
- // url: "http://keria--publi-7wqhypzd56ee-cc3c56cbeced4f45.elb.us-east-1.amazonaws.com/admin",
61
- // bootUrl: "http://keria--publi-7wqhypzd56ee-cc3c56cbeced4f45.elb.us-east-1.amazonaws.com:3903",
62
- url : "https://keria-dev.rootsid.cloud/admin" ,
63
- bootUrl : "https://keria-dev.rootsid.cloud" ,
64
- witnessUrls : [
65
- "https://witness-dev01.rootsid.cloud" ,
66
- "https://witness-dev02.rootsid.cloud" ,
67
- "https://witness-dev03.rootsid.cloud"
68
- ] ,
69
- witnessIds : [ WAN , WIL , WES ] ,
70
- vleiServerUrl : 'http://schemas.rootsid.cloud' ,
71
- } ;
72
- case 'rootsid2' :
73
- return {
74
- preset : preset ,
75
- url : "https://keria-demoservice.rootsid.cloud/admin" ,
76
- bootUrl : "https://keria-demoservice.rootsid.cloud" ,
77
- witnessUrls : [
78
- "https://witness-dev01.rootsid.cloud" ,
79
- "https://witness-dev02.rootsid.cloud" ,
80
- "https://witness-dev03.rootsid.cloud"
81
- ] ,
82
- witnessIds : [ WAN , WIL , WES ] ,
83
- vleiServerUrl : 'http://schemas.rootsid.cloud' ,
84
- } ;
85
51
default :
86
52
throw new Error ( `Unknown test environment preset '${ preset } '` ) ;
87
53
}
0 commit comments