From 048b2c73ced4477cd37f45efb035722e54fbc6c0 Mon Sep 17 00:00:00 2001 From: Westin Wrzesinski Date: Wed, 19 Jul 2023 11:53:14 -0500 Subject: [PATCH] ci: use sandbox urls (#162) Co-authored-by: Greg Jopa <534034+gregjopa@users.noreply.github.com> --- test/client/domains.js | 6 +++--- test/client/global.js | 8 ++++---- test/globals.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/client/domains.js b/test/client/domains.js index 355d6254..d13c338d 100644 --- a/test/client/domains.js +++ b/test/client/domains.js @@ -106,9 +106,9 @@ describe(`domains test`, () => { window.__ENV__ = ENV.LOCAL; const result = getPayPalLoggerDomain(); - if (result !== "https://mock://msmaster.qa.paypal.com") { + if (result !== "https://mock://sandbox.paypal.com") { throw new Error( - `should get the logger domain "https://mock://msmaster.qa.paypal.com", but got: ${result}` + `should get the logger domain "https://mock://sandbox.paypal.com", but got: ${result}` ); } }); @@ -125,7 +125,7 @@ describe(`domains test`, () => { ); } } - window.__STAGE_HOST__ = "mock://msmaster.qa.paypal.com"; + window.__STAGE_HOST__ = "mock://sandbox.paypal.com"; }); it("getAuthAPIUrl should return a valid authentication string URL", () => { diff --git a/test/client/global.js b/test/client/global.js index 7c4c857a..cfa6aa5d 100644 --- a/test/client/global.js +++ b/test/client/global.js @@ -25,7 +25,7 @@ import { describe(`globals cases`, () => { afterEach(() => { - window.__STAGE_HOST__ = "mock://msmaster.qa.paypal.com"; + window.__STAGE_HOST__ = "mock://sandbox.paypal.com"; delete window.__PROTOCOL__; delete window.__SERVICE_STAGE_HOST__; delete window.__COMPONENTS__; @@ -91,7 +91,7 @@ describe(`globals cases`, () => { }); it("should successfully get the default stage host", () => { - const expectedResult = "mock://msmaster.qa.paypal.com"; + const expectedResult = "mock://sandbox.paypal.com"; const result = getDefaultStageHost(); if (expectedResult !== result) { @@ -181,7 +181,7 @@ describe(`globals cases`, () => { }); it("should successfully get the default service stage host", () => { - window.__SERVICE_STAGE_HOST__ = "mock://msmaster.qa.paypal.com"; + window.__SERVICE_STAGE_HOST__ = "mock://sandbox.paypal.com"; const result = getDefaultServiceStageHost(); if (__SERVICE_STAGE_HOST__ !== result) { @@ -198,7 +198,7 @@ describe(`globals cases`, () => { }); it("should get the API stage from the default service stage host", () => { - window.__SERVICE_STAGE_HOST__ = "mock://msmaster.qa.paypal.com"; + window.__SERVICE_STAGE_HOST__ = "mock://sandbox.paypal.com"; const result = getDefaultAPIStageHost(); if (window.__SERVICE_STAGE_HOST__ !== result) { diff --git a/test/globals.js b/test/globals.js index 6dfb22e5..653168bb 100644 --- a/test/globals.js +++ b/test/globals.js @@ -7,7 +7,7 @@ type TestGlobals = {| export const sdkClientTestGlobals: TestGlobals = { __PORT__: 8000, - __STAGE_HOST__: "msmaster.qa.paypal.com", + __STAGE_HOST__: "sandbox.paypal.com", __HOST__: "test.paypal.com", __HOSTNAME__: "test.paypal.com", __SDK_HOST__: "test.paypal.com", @@ -17,7 +17,7 @@ export const sdkClientTestGlobals: TestGlobals = { __CORRELATION_ID__: "abc123", __NAMESPACE__: "paypaltest", __PAYPAL_DOMAIN__: "mock://www.paypal.com", - __PAYPAL_API_DOMAIN__: "mock://msmaster.qa.paypal.com", + __PAYPAL_API_DOMAIN__: "mock://sandbox.paypal.com", __COMPONENTS__: ["buttons"], __DISABLE_SET_COOKIE__: true, };