Skip to content

Commit

Permalink
Drop APAC (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol authored Sep 1, 2023
1 parent 4c933f3 commit 61976d2
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 30 deletions.
8 changes: 1 addition & 7 deletions apis/builds.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": [
"us-west-1",
"us-east-1",
"eu-central-1",
"apac-southeast-1",
"staging"
]
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
2 changes: 1 addition & 1 deletion apis/datastore.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
"enum": ["us-west-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
2 changes: 1 addition & 1 deletion apis/performance.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
"enum": ["us-west-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
8 changes: 1 addition & 7 deletions apis/sauce.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": [
"us-west-1",
"us-east-1",
"eu-central-1",
"apac-southeast-1",
"staging"
]
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
8 changes: 1 addition & 7 deletions apis/teamManagement.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": [
"us-west-1",
"us-east-1",
"eu-central-1",
"apac-southeast-1",
"staging"
]
"enum": ["us-west-1", "us-east-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
2 changes: 1 addition & 1 deletion apis/testcomposer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"region": {
"default": "us-west-1",
"description": "region of datacenter",
"enum": ["us-west-1", "eu-central-1", "apac-southeast-1", "staging"]
"enum": ["us-west-1", "eu-central-1", "staging"]
},
"tld": {
"default": "com",
Expand Down
2 changes: 0 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ export const DEFAULT_OPTIONS = {
export const ASSET_REGION_MAPPING = {
us: '',
eu: 'eu-central-1.',
apac: 'apac-southeast-1',
'us-west-1': '',
'us-east-1': 'us-east-1.',
'eu-central-1': 'eu-central-1.',
'apac-southeast-1': 'apac-southeast-1',
staging: 'staging.',
};

Expand Down
1 change: 0 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export function getRegionSubDomain(options = {}) {

if (options.region === 'us') region = 'us-west-1';
if (options.region === 'eu') region = 'eu-central-1';
if (options.region === 'apac') region = 'apac-southeast-1';
if (options.headless) region = 'us-east-1';
return region;
}
Expand Down
3 changes: 0 additions & 3 deletions tests/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ test('getAPIHost', () => {
expect(
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {region: 'us-east-1'})
).toBe('https://api.us-east-1.saucelabs.com/rest');
expect(
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {region: 'apac'})
).toBe('https://api.apac-southeast-1.saucelabs.com/rest');
expect(
getAPIHost(sauceAPI.servers, sauceAPI.basePath, {
region: 'us-west-1',
Expand Down

0 comments on commit 61976d2

Please sign in to comment.