Skip to content

Commit

Permalink
ci: use sandbox urls (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Jopa <534034+gregjopa@users.noreply.github.com>
  • Loading branch information
westeezy and gregjopa committed Jul 19, 2023
1 parent 088c9c9 commit 048b2c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/client/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}
});
Expand All @@ -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", () => {
Expand Down
8 changes: 4 additions & 4 deletions test/client/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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__;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
};

0 comments on commit 048b2c7

Please sign in to comment.