Skip to content

Commit 5276713

Browse files
committed
Add simple query test against all UE/EU Region S3 Buckets
1 parent c88963c commit 5276713

3 files changed

Lines changed: 209 additions & 11 deletions

File tree

src/common/identity.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,29 @@ async function refreshCredsWithToken(idToken: string): Promise<CognitoIdentityCr
3838

3939
function getWsApiDomain(region: string): string {
4040
switch (region) {
41-
case "eu-west-1":
42-
return "m9fhs4t5vh.execute-api.eu-west-1.amazonaws.com";
4341
case "eu-north-1":
4442
return "ei0k349i7d.execute-api.eu-north-1.amazonaws.com";
43+
case "eu-west-2":
44+
return "ej8h1tsab5.execute-api.eu-west-2.amazonaws.com";
45+
case "eu-west-3":
46+
return "qbqvpmm3o4.execute-api.eu-west-3.amazonaws.com";
47+
case "eu-south-1":
48+
return "dy5annfn83.execute-api.eu-south-1.amazonaws.com";
49+
case "eu-central-1":
50+
return "qy8elgcxyi.execute-api.eu-central-1.amazonaws.com";
51+
case "us-east-1":
52+
return "2waxvxnpa3.execute-api.us-east-1.amazonaws.com";
53+
case "us-east-2":
54+
return "bilcgl1zpf.execute-api.us-east-2.amazonaws.com";
55+
case "us-west-1":
56+
return "lal0xyf3d2.execute-api.us-west-1.amazonaws.com";
57+
case "us-west-2":
58+
return "wkz85e6919.execute-api.us-west-2.amazonaws.com";
59+
case "ca-central-1":
60+
return "vmbg81io85.execute-api.ca-central-1.amazonaws.com";
61+
case "eu-west-1":
4562
default:
63+
// eu-west-1
4664
return "m9fhs4t5vh.execute-api.eu-west-1.amazonaws.com";
4765
}
4866
}

src/tests/__snapshots__/query.test.ts.snap

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,186 @@ Array [
4040
]
4141
`;
4242

43+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 3`] = `
44+
Array [
45+
Object {
46+
"birthdate": "3/8/1971",
47+
"cc": "6759521864920116",
48+
"comments": "1E+02",
49+
"country": "Indonesia",
50+
"email": "ajordan0@com.com",
51+
"first_name": "Amanda",
52+
"gender": "Female",
53+
"id": 1,
54+
"ip_address": "1.197.201.2",
55+
"last_name": "Jordan",
56+
"registration_dttm": 1454486129000,
57+
"salary": 49756.53,
58+
"title": "Internal Auditor",
59+
},
60+
]
61+
`;
62+
63+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 4`] = `
64+
Array [
65+
Object {
66+
"birthdate": "3/8/1971",
67+
"cc": "6759521864920116",
68+
"comments": "1E+02",
69+
"country": "Indonesia",
70+
"email": "ajordan0@com.com",
71+
"first_name": "Amanda",
72+
"gender": "Female",
73+
"id": 1,
74+
"ip_address": "1.197.201.2",
75+
"last_name": "Jordan",
76+
"registration_dttm": 1454486129000,
77+
"salary": 49756.53,
78+
"title": "Internal Auditor",
79+
},
80+
]
81+
`;
82+
83+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 5`] = `
84+
Array [
85+
Object {
86+
"birthdate": "3/8/1971",
87+
"cc": "6759521864920116",
88+
"comments": "1E+02",
89+
"country": "Indonesia",
90+
"email": "ajordan0@com.com",
91+
"first_name": "Amanda",
92+
"gender": "Female",
93+
"id": 1,
94+
"ip_address": "1.197.201.2",
95+
"last_name": "Jordan",
96+
"registration_dttm": 1454486129000,
97+
"salary": 49756.53,
98+
"title": "Internal Auditor",
99+
},
100+
]
101+
`;
102+
103+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 6`] = `
104+
Array [
105+
Object {
106+
"birthdate": "3/8/1971",
107+
"cc": "6759521864920116",
108+
"comments": "1E+02",
109+
"country": "Indonesia",
110+
"email": "ajordan0@com.com",
111+
"first_name": "Amanda",
112+
"gender": "Female",
113+
"id": 1,
114+
"ip_address": "1.197.201.2",
115+
"last_name": "Jordan",
116+
"registration_dttm": 1454486129000,
117+
"salary": 49756.53,
118+
"title": "Internal Auditor",
119+
},
120+
]
121+
`;
122+
123+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 7`] = `
124+
Array [
125+
Object {
126+
"birthdate": "3/8/1971",
127+
"cc": "6759521864920116",
128+
"comments": "1E+02",
129+
"country": "Indonesia",
130+
"email": "ajordan0@com.com",
131+
"first_name": "Amanda",
132+
"gender": "Female",
133+
"id": 1,
134+
"ip_address": "1.197.201.2",
135+
"last_name": "Jordan",
136+
"registration_dttm": 1454486129000,
137+
"salary": 49756.53,
138+
"title": "Internal Auditor",
139+
},
140+
]
141+
`;
142+
143+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 8`] = `
144+
Array [
145+
Object {
146+
"birthdate": "3/8/1971",
147+
"cc": "6759521864920116",
148+
"comments": "1E+02",
149+
"country": "Indonesia",
150+
"email": "ajordan0@com.com",
151+
"first_name": "Amanda",
152+
"gender": "Female",
153+
"id": 1,
154+
"ip_address": "1.197.201.2",
155+
"last_name": "Jordan",
156+
"registration_dttm": 1454486129000,
157+
"salary": 49756.53,
158+
"title": "Internal Auditor",
159+
},
160+
]
161+
`;
162+
163+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 9`] = `
164+
Array [
165+
Object {
166+
"birthdate": "3/8/1971",
167+
"cc": "6759521864920116",
168+
"comments": "1E+02",
169+
"country": "Indonesia",
170+
"email": "ajordan0@com.com",
171+
"first_name": "Amanda",
172+
"gender": "Female",
173+
"id": 1,
174+
"ip_address": "1.197.201.2",
175+
"last_name": "Jordan",
176+
"registration_dttm": 1454486129000,
177+
"salary": 49756.53,
178+
"title": "Internal Auditor",
179+
},
180+
]
181+
`;
182+
183+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 10`] = `
184+
Array [
185+
Object {
186+
"birthdate": "3/8/1971",
187+
"cc": "6759521864920116",
188+
"comments": "1E+02",
189+
"country": "Indonesia",
190+
"email": "ajordan0@com.com",
191+
"first_name": "Amanda",
192+
"gender": "Female",
193+
"id": 1,
194+
"ip_address": "1.197.201.2",
195+
"last_name": "Jordan",
196+
"registration_dttm": 1454486129000,
197+
"salary": 49756.53,
198+
"title": "Internal Auditor",
199+
},
200+
]
201+
`;
202+
203+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 11`] = `
204+
Array [
205+
Object {
206+
"birthdate": "3/8/1971",
207+
"cc": "6759521864920116",
208+
"comments": "1E+02",
209+
"country": "Indonesia",
210+
"email": "ajordan0@com.com",
211+
"first_name": "Amanda",
212+
"gender": "Female",
213+
"id": 1,
214+
"ip_address": "1.197.201.2",
215+
"last_name": "Jordan",
216+
"registration_dttm": 1454486129000,
217+
"salary": 49756.53,
218+
"title": "Internal Auditor",
219+
},
220+
]
221+
`;
222+
43223
exports[`boilingdata with DuckDB run all meta queries 1`] = `
44224
Array [
45225
Array [],

src/tests/query.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ describe("BoilingData in all North-America and Europe AWS Regions", () => {
191191
const regions: BDAWSRegion[] = [
192192
"eu-north-1",
193193
"eu-west-1",
194-
// "eu-west-2",
195-
// "eu-west-3",
196-
// "eu-south-1",
197-
// "eu-central-1",
198-
// "us-east-1",
199-
// "us-east-2",
200-
// "us-west-1",
201-
// "us-west-2",
202-
// "ca-central-1",
194+
"eu-west-2",
195+
"eu-west-3",
196+
"eu-south-1",
197+
"eu-central-1",
198+
"us-east-1",
199+
"us-east-2",
200+
"us-west-1",
201+
"us-west-2",
202+
"ca-central-1",
203203
];
204204
it("runs query succesfully in other regions too", async () => {
205205
await Promise.all(

0 commit comments

Comments
 (0)