diff --git a/apis/builds.json b/apis/builds.json index a46f94ee..1af35767 100644 --- a/apis/builds.json +++ b/apis/builds.json @@ -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", diff --git a/apis/datastore.json b/apis/datastore.json index 4f3244e6..a89088f6 100644 --- a/apis/datastore.json +++ b/apis/datastore.json @@ -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", diff --git a/apis/performance.json b/apis/performance.json index 9ee0b20f..4dde0b80 100644 --- a/apis/performance.json +++ b/apis/performance.json @@ -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", diff --git a/apis/sauce.json b/apis/sauce.json index 82e72b93..8c9d1490 100644 --- a/apis/sauce.json +++ b/apis/sauce.json @@ -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", diff --git a/apis/teamManagement.json b/apis/teamManagement.json index c5a55da0..27e5eab8 100644 --- a/apis/teamManagement.json +++ b/apis/teamManagement.json @@ -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", diff --git a/apis/testcomposer.json b/apis/testcomposer.json index fa06ce1b..94ce7f89 100644 --- a/apis/testcomposer.json +++ b/apis/testcomposer.json @@ -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", diff --git a/src/constants.js b/src/constants.js index 6e51a24c..7018eed5 100644 --- a/src/constants.js +++ b/src/constants.js @@ -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.', }; diff --git a/src/utils.js b/src/utils.js index 0fcdbc64..711fc159 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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; } diff --git a/tests/utils.test.js b/tests/utils.test.js index 435ad48e..4296d8f4 100644 --- a/tests/utils.test.js +++ b/tests/utils.test.js @@ -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',