Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use public stage endpoints #152

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions e2e/e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- To run the test you'll need two OpenWhisk namespaces. Please set the credentials for those in the following env
variables in an .env file:
- `TEST_NAMESPACE_1, TEST_AUTH_1, TEST_NAMESPACE_2, TEST_AUTH_2`
- Make sure to use namespaces that are prefixed with `development-*` for non-prod environments

Copy the `.env.example` to your own `.env` in this folder.

Expand Down
8 changes: 6 additions & 2 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ const { isInternalToAdobeRuntime } = require('./utils')
// (see ADOBE_STATE_STORE_REGIONS first element default)
const {
ADOBE_STATE_STORE_ENDPOINT_PROD = 'storage-state-amer.app-builder.adp.adobe.io',
ADOBE_STATE_STORE_ENDPOINT_STAGE = 'storage-state-amer.stg.app-builder.corp.adp.adobe.io',
ADOBE_STATE_STORE_ENDPOINT_PROD_INTERNAL = 'storage-state-amer.app-builder.int.adp.adobe.io',
ADOBE_STATE_STORE_ENDPOINT_STAGE_INTERNAL = 'storage-state-amer.stg.app-builder.int.adp.adobe.io',

// we always use the stage public endpoint, as Runtime Prod doesn't have access to State Stage internal
// see https://jira.corp.adobe.com/browse/ACNA-2699
ADOBE_STATE_STORE_ENDPOINT_STAGE = 'storage-state-amer.stg.app-builder.adp.adobe.io',
ADOBE_STATE_STORE_ENDPOINT_STAGE_INTERNAL = 'storage-state-amer.stg.app-builder.adp.adobe.io',

API_VERSION = 'v1beta1',
ADOBE_STATE_STORE_REGIONS = [ // first region is the default region
'amer',
Expand Down