Skip to content

Commit 61976d2

Browse files
authored
Drop APAC (#198)
1 parent 4c933f3 commit 61976d2

File tree

9 files changed

+6
-30
lines changed

9 files changed

+6
-30
lines changed

apis/builds.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313
"region": {
1414
"default": "us-west-1",
1515
"description": "region of datacenter",
16-
"enum": [
17-
"us-west-1",
18-
"us-east-1",
19-
"eu-central-1",
20-
"apac-southeast-1",
21-
"staging"
22-
]
16+
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
2317
},
2418
"tld": {
2519
"default": "com",

apis/datastore.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"region": {
2424
"default": "us-west-1",
2525
"description": "region of datacenter",
26-
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
26+
"enum": ["us-west-1", "eu-central-1", "staging"]
2727
},
2828
"tld": {
2929
"default": "com",

apis/performance.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"region": {
1414
"default": "us-west-1",
1515
"description": "region of datacenter",
16-
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
16+
"enum": ["us-west-1", "eu-central-1", "staging"]
1717
},
1818
"tld": {
1919
"default": "com",

apis/sauce.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@
2424
"region": {
2525
"default": "us-west-1",
2626
"description": "region of datacenter",
27-
"enum": [
28-
"us-west-1",
29-
"us-east-1",
30-
"eu-central-1",
31-
"apac-southeast-1",
32-
"staging"
33-
]
27+
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
3428
},
3529
"tld": {
3630
"default": "com",

apis/teamManagement.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313
"region": {
1414
"default": "us-west-1",
1515
"description": "region of datacenter",
16-
"enum": [
17-
"us-west-1",
18-
"us-east-1",
19-
"eu-central-1",
20-
"apac-southeast-1",
21-
"staging"
22-
]
16+
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
2317
},
2418
"tld": {
2519
"default": "com",

apis/testcomposer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"region": {
2424
"default": "us-west-1",
2525
"description": "region of datacenter",
26-
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
26+
"enum": ["us-west-1", "eu-central-1", "staging"]
2727
},
2828
"tld": {
2929
"default": "com",

src/constants.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ export const DEFAULT_OPTIONS = {
9595
export const ASSET_REGION_MAPPING = {
9696
us: '',
9797
eu: 'eu-central-1.',
98-
apac: 'apac-southeast-1',
9998
'us-west-1': '',
10099
'us-east-1': 'us-east-1.',
101100
'eu-central-1': 'eu-central-1.',
102-
'apac-southeast-1': 'apac-southeast-1',
103101
staging: 'staging.',
104102
};
105103

src/utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export function getRegionSubDomain(options = {}) {
3737

3838
if (options.region === 'us') region = 'us-west-1';
3939
if (options.region === 'eu') region = 'eu-central-1';
40-
if (options.region === 'apac') region = 'apac-southeast-1';
4140
if (options.headless) region = 'us-east-1';
4241
return region;
4342
}

tests/utils.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ test('getAPIHost', () => {
4242
expect(
4343
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {region: 'us-east-1'})
4444
).toBe('https://api.us-east-1.saucelabs.com/rest');
45-
expect(
46-
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {region: 'apac'})
47-
).toBe('https://api.apac-southeast-1.saucelabs.com/rest');
4845
expect(
4946
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {
5047
region: 'us-west-1',

0 commit comments

Comments
 (0)