1+ {
2+ "testCases" : [
3+ {
4+ "documentation" : " For region us-east-1 with FIPS enabled and DualStack enabled" ,
5+ "expect" : {
6+ "endpoint" : {
7+ "url" : " https://admin.wickr-fips.us-east-1.api.aws"
8+ }
9+ },
10+ "params" : {
11+ "Region" : " us-east-1" ,
12+ "UseFIPS" : true ,
13+ "UseDualStack" : true
14+ }
15+ },
16+ {
17+ "documentation" : " For region us-east-1 with FIPS enabled and DualStack disabled" ,
18+ "expect" : {
19+ "endpoint" : {
20+ "url" : " https://admin.wickr-fips.us-east-1.amazonaws.com"
21+ }
22+ },
23+ "params" : {
24+ "Region" : " us-east-1" ,
25+ "UseFIPS" : true ,
26+ "UseDualStack" : false
27+ }
28+ },
29+ {
30+ "documentation" : " For region us-east-1 with FIPS disabled and DualStack enabled" ,
31+ "expect" : {
32+ "endpoint" : {
33+ "url" : " https://admin.wickr.us-east-1.api.aws"
34+ }
35+ },
36+ "params" : {
37+ "Region" : " us-east-1" ,
38+ "UseFIPS" : false ,
39+ "UseDualStack" : true
40+ }
41+ },
42+ {
43+ "documentation" : " For region us-east-1 with FIPS disabled and DualStack disabled" ,
44+ "expect" : {
45+ "endpoint" : {
46+ "url" : " https://admin.wickr.us-east-1.amazonaws.com"
47+ }
48+ },
49+ "params" : {
50+ "Region" : " us-east-1" ,
51+ "UseFIPS" : false ,
52+ "UseDualStack" : false
53+ }
54+ },
55+ {
56+ "documentation" : " For region cn-north-1 with FIPS enabled and DualStack enabled" ,
57+ "expect" : {
58+ "endpoint" : {
59+ "url" : " https://admin.wickr-fips.cn-north-1.api.amazonwebservices.com.cn"
60+ }
61+ },
62+ "params" : {
63+ "Region" : " cn-north-1" ,
64+ "UseFIPS" : true ,
65+ "UseDualStack" : true
66+ }
67+ },
68+ {
69+ "documentation" : " For region cn-north-1 with FIPS enabled and DualStack disabled" ,
70+ "expect" : {
71+ "endpoint" : {
72+ "url" : " https://admin.wickr-fips.cn-north-1.amazonaws.com.cn"
73+ }
74+ },
75+ "params" : {
76+ "Region" : " cn-north-1" ,
77+ "UseFIPS" : true ,
78+ "UseDualStack" : false
79+ }
80+ },
81+ {
82+ "documentation" : " For region cn-north-1 with FIPS disabled and DualStack enabled" ,
83+ "expect" : {
84+ "endpoint" : {
85+ "url" : " https://admin.wickr.cn-north-1.api.amazonwebservices.com.cn"
86+ }
87+ },
88+ "params" : {
89+ "Region" : " cn-north-1" ,
90+ "UseFIPS" : false ,
91+ "UseDualStack" : true
92+ }
93+ },
94+ {
95+ "documentation" : " For region cn-north-1 with FIPS disabled and DualStack disabled" ,
96+ "expect" : {
97+ "endpoint" : {
98+ "url" : " https://admin.wickr.cn-north-1.amazonaws.com.cn"
99+ }
100+ },
101+ "params" : {
102+ "Region" : " cn-north-1" ,
103+ "UseFIPS" : false ,
104+ "UseDualStack" : false
105+ }
106+ },
107+ {
108+ "documentation" : " For region us-gov-east-1 with FIPS enabled and DualStack enabled" ,
109+ "expect" : {
110+ "endpoint" : {
111+ "url" : " https://admin.wickr-fips.us-gov-east-1.api.aws"
112+ }
113+ },
114+ "params" : {
115+ "Region" : " us-gov-east-1" ,
116+ "UseFIPS" : true ,
117+ "UseDualStack" : true
118+ }
119+ },
120+ {
121+ "documentation" : " For region us-gov-east-1 with FIPS enabled and DualStack disabled" ,
122+ "expect" : {
123+ "endpoint" : {
124+ "url" : " https://admin.wickr-fips.us-gov-east-1.amazonaws.com"
125+ }
126+ },
127+ "params" : {
128+ "Region" : " us-gov-east-1" ,
129+ "UseFIPS" : true ,
130+ "UseDualStack" : false
131+ }
132+ },
133+ {
134+ "documentation" : " For region us-gov-east-1 with FIPS disabled and DualStack enabled" ,
135+ "expect" : {
136+ "endpoint" : {
137+ "url" : " https://admin.wickr.us-gov-east-1.api.aws"
138+ }
139+ },
140+ "params" : {
141+ "Region" : " us-gov-east-1" ,
142+ "UseFIPS" : false ,
143+ "UseDualStack" : true
144+ }
145+ },
146+ {
147+ "documentation" : " For region us-gov-east-1 with FIPS disabled and DualStack disabled" ,
148+ "expect" : {
149+ "endpoint" : {
150+ "url" : " https://admin.wickr.us-gov-east-1.amazonaws.com"
151+ }
152+ },
153+ "params" : {
154+ "Region" : " us-gov-east-1" ,
155+ "UseFIPS" : false ,
156+ "UseDualStack" : false
157+ }
158+ },
159+ {
160+ "documentation" : " For region us-iso-east-1 with FIPS enabled and DualStack disabled" ,
161+ "expect" : {
162+ "endpoint" : {
163+ "url" : " https://admin.wickr-fips.us-iso-east-1.c2s.ic.gov"
164+ }
165+ },
166+ "params" : {
167+ "Region" : " us-iso-east-1" ,
168+ "UseFIPS" : true ,
169+ "UseDualStack" : false
170+ }
171+ },
172+ {
173+ "documentation" : " For region us-iso-east-1 with FIPS disabled and DualStack disabled" ,
174+ "expect" : {
175+ "endpoint" : {
176+ "url" : " https://admin.wickr.us-iso-east-1.c2s.ic.gov"
177+ }
178+ },
179+ "params" : {
180+ "Region" : " us-iso-east-1" ,
181+ "UseFIPS" : false ,
182+ "UseDualStack" : false
183+ }
184+ },
185+ {
186+ "documentation" : " For region us-isob-east-1 with FIPS enabled and DualStack disabled" ,
187+ "expect" : {
188+ "endpoint" : {
189+ "url" : " https://admin.wickr-fips.us-isob-east-1.sc2s.sgov.gov"
190+ }
191+ },
192+ "params" : {
193+ "Region" : " us-isob-east-1" ,
194+ "UseFIPS" : true ,
195+ "UseDualStack" : false
196+ }
197+ },
198+ {
199+ "documentation" : " For region us-isob-east-1 with FIPS disabled and DualStack disabled" ,
200+ "expect" : {
201+ "endpoint" : {
202+ "url" : " https://admin.wickr.us-isob-east-1.sc2s.sgov.gov"
203+ }
204+ },
205+ "params" : {
206+ "Region" : " us-isob-east-1" ,
207+ "UseFIPS" : false ,
208+ "UseDualStack" : false
209+ }
210+ },
211+ {
212+ "documentation" : " For custom endpoint with region set and fips disabled and dualstack disabled" ,
213+ "expect" : {
214+ "endpoint" : {
215+ "url" : " https://example.com"
216+ }
217+ },
218+ "params" : {
219+ "Region" : " us-east-1" ,
220+ "UseFIPS" : false ,
221+ "UseDualStack" : false ,
222+ "Endpoint" : " https://example.com"
223+ }
224+ },
225+ {
226+ "documentation" : " For custom endpoint with region not set and fips disabled and dualstack disabled" ,
227+ "expect" : {
228+ "endpoint" : {
229+ "url" : " https://example.com"
230+ }
231+ },
232+ "params" : {
233+ "UseFIPS" : false ,
234+ "UseDualStack" : false ,
235+ "Endpoint" : " https://example.com"
236+ }
237+ },
238+ {
239+ "documentation" : " For custom endpoint with fips enabled and dualstack disabled" ,
240+ "expect" : {
241+ "error" : " Invalid Configuration: FIPS and custom endpoint are not supported"
242+ },
243+ "params" : {
244+ "Region" : " us-east-1" ,
245+ "UseFIPS" : true ,
246+ "UseDualStack" : false ,
247+ "Endpoint" : " https://example.com"
248+ }
249+ },
250+ {
251+ "documentation" : " For custom endpoint with fips disabled and dualstack enabled" ,
252+ "expect" : {
253+ "error" : " Invalid Configuration: Dualstack and custom endpoint are not supported"
254+ },
255+ "params" : {
256+ "Region" : " us-east-1" ,
257+ "UseFIPS" : false ,
258+ "UseDualStack" : true ,
259+ "Endpoint" : " https://example.com"
260+ }
261+ },
262+ {
263+ "documentation" : " Missing region" ,
264+ "expect" : {
265+ "error" : " Invalid Configuration: Missing Region"
266+ }
267+ }
268+ ],
269+ "version" : " 1.0"
270+ }
0 commit comments