Skip to content

Commit 1df3b3d

Browse files
committed
Add new supported region: us-east-2
1 parent fa3d54c commit 1df3b3d

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

src/boilingdata/boilingdata.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export class BoilingData {
179179
if (this.closedPromise) await this.closedPromise;
180180
}
181181

182+
public removeCachedAuthContext(): void {
183+
this.authcontext = undefined;
184+
}
185+
182186
public getCachedAuthContext(): { idToken: any } | undefined {
183187
return this.authcontext;
184188
}

src/tests/__snapshots__/query-cross-region.test.ts.snap

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,25 @@ Array [
6565
],
6666
]
6767
`;
68+
69+
exports[`BoilingData in all North-America and Europe AWS Regions runs query succesfully in other regions too 4`] = `
70+
Array [
71+
Array [
72+
Object {
73+
"birthdate": "3/8/1971",
74+
"cc": "6759521864920116",
75+
"comments": "1E+02",
76+
"country": "Indonesia",
77+
"email": "[email protected]",
78+
"first_name": "Amanda",
79+
"gender": "Female",
80+
"id": 1,
81+
"ip_address": "1.197.201.2",
82+
"last_name": "Jordan",
83+
"registration_dttm": "2016-02-03 07:55:29+00",
84+
"salary": 49756.53,
85+
"title": "Internal Auditor",
86+
},
87+
],
88+
]
89+
`;

src/tests/query-cross-region.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ globalCallbacks.onSocketClose = () => {
2525
const regions: BDAWSRegion[] = [
2626
"eu-west-1",
2727
"eu-north-1",
28-
// // "eu-west-2",
29-
// // "eu-west-3",
30-
// // "eu-south-1",
31-
// // "eu-central-1",
32-
// // "us-east-1",
33-
// // "us-east-2",
34-
// // "us-west-1",
28+
// "eu-west-2",
29+
// "eu-west-3",
30+
// "eu-south-1",
31+
// "eu-central-1",
32+
// "us-east-1",
33+
"us-east-2",
34+
// "us-west-1",
3535
"us-west-2",
36-
// // "ca-central-1",
36+
// "ca-central-1",
3737
];
3838

3939
describe("BD can switch the WebSocket connection endpoint dynamically", () => {
40-
it("run single query from 3 different supported regions", async () => {
40+
it("run single query from 4 different supported regions", async () => {
4141
const expected = [
4242
{
4343
DOLocationID: 1,

0 commit comments

Comments
 (0)