Skip to content

Commit 22adffa

Browse files
committed
chore: test run
Signed-off-by: Kevin Shan <[email protected]>
1 parent 04f7cb1 commit 22adffa

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

packages/amplify-codegen-e2e-tests/src/cleanup-e2e-resources.ts

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ import { deleteS3Bucket, sleep } from '@aws-amplify/amplify-codegen-e2e-core';
3030
// const AWS_REGIONS_TO_RUN_TESTS = AWS_REGIONS_TO_RUN_TESTS_METADATA.map(region => region.name);
3131

3232
const AWS_REGIONS_TO_RUN_TESTS = [
33-
'us-east-1',
34-
'us-east-2',
35-
'us-west-1',
36-
'us-west-2',
37-
'eu-north-1',
38-
'eu-south-1',
39-
'eu-west-1',
40-
'eu-west-2',
41-
'eu-west-3',
42-
'eu-central-1',
4333
'ap-northeast-1',
4434
'ap-northeast-2',
4535
'ap-northeast-3',
36+
'ap-south-1',
4637
'ap-southeast-1',
4738
'ap-southeast-2',
48-
'ap-south-1',
4939
'ca-central-1',
40+
'eu-central-1',
41+
'eu-north-1',
42+
'eu-south-1',
43+
'eu-west-1',
44+
'eu-west-2',
45+
'eu-west-3',
5046
'me-south-1',
5147
'sa-east-1',
48+
'us-east-1',
49+
'us-east-2',
50+
'us-west-1',
51+
'us-west-2',
5252
];
5353

5454
type TestRegion = {
@@ -280,11 +280,6 @@ const isRegionEnabled = async (accountInfo: AWSAccountInfo, region: string): Pro
280280
const optStatus = await account.getRegionOptStatus({ RegionName: region }).promise();
281281

282282
return optStatus.RegionOptStatus === 'ENABLED' || optStatus.RegionOptStatus === 'ENABLED_BY_DEFAULT';
283-
284-
285-
// const response = await account.listRegions().promise();
286-
// const enabledRegions = response.Regions.map(r => (r.RegionOptStatus === 'ENABLED' ? r.RegionName : null)).filter(Boolean);
287-
// return enabledRegions.includes(region);
288283
};
289284

290285
const getStacks = async (account: AWSAccountInfo, region: string): Promise<StackInfo[]> => {

0 commit comments

Comments
 (0)