Skip to content

Commit 048b2c7

Browse files
westeezygregjopa
andauthored
ci: use sandbox urls (#162)
Co-authored-by: Greg Jopa <[email protected]>
1 parent 088c9c9 commit 048b2c7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

test/client/domains.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ describe(`domains test`, () => {
106106
window.__ENV__ = ENV.LOCAL;
107107
const result = getPayPalLoggerDomain();
108108

109-
if (result !== "https://mock://msmaster.qa.paypal.com") {
109+
if (result !== "https://mock://sandbox.paypal.com") {
110110
throw new Error(
111-
`should get the logger domain "https://mock://msmaster.qa.paypal.com", but got: ${result}`
111+
`should get the logger domain "https://mock://sandbox.paypal.com", but got: ${result}`
112112
);
113113
}
114114
});
@@ -125,7 +125,7 @@ describe(`domains test`, () => {
125125
);
126126
}
127127
}
128-
window.__STAGE_HOST__ = "mock://msmaster.qa.paypal.com";
128+
window.__STAGE_HOST__ = "mock://sandbox.paypal.com";
129129
});
130130

131131
it("getAuthAPIUrl should return a valid authentication string URL", () => {

test/client/global.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525

2626
describe(`globals cases`, () => {
2727
afterEach(() => {
28-
window.__STAGE_HOST__ = "mock://msmaster.qa.paypal.com";
28+
window.__STAGE_HOST__ = "mock://sandbox.paypal.com";
2929
delete window.__PROTOCOL__;
3030
delete window.__SERVICE_STAGE_HOST__;
3131
delete window.__COMPONENTS__;
@@ -91,7 +91,7 @@ describe(`globals cases`, () => {
9191
});
9292

9393
it("should successfully get the default stage host", () => {
94-
const expectedResult = "mock://msmaster.qa.paypal.com";
94+
const expectedResult = "mock://sandbox.paypal.com";
9595
const result = getDefaultStageHost();
9696

9797
if (expectedResult !== result) {
@@ -181,7 +181,7 @@ describe(`globals cases`, () => {
181181
});
182182

183183
it("should successfully get the default service stage host", () => {
184-
window.__SERVICE_STAGE_HOST__ = "mock://msmaster.qa.paypal.com";
184+
window.__SERVICE_STAGE_HOST__ = "mock://sandbox.paypal.com";
185185
const result = getDefaultServiceStageHost();
186186

187187
if (__SERVICE_STAGE_HOST__ !== result) {
@@ -198,7 +198,7 @@ describe(`globals cases`, () => {
198198
});
199199

200200
it("should get the API stage from the default service stage host", () => {
201-
window.__SERVICE_STAGE_HOST__ = "mock://msmaster.qa.paypal.com";
201+
window.__SERVICE_STAGE_HOST__ = "mock://sandbox.paypal.com";
202202
const result = getDefaultAPIStageHost();
203203

204204
if (window.__SERVICE_STAGE_HOST__ !== result) {

test/globals.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type TestGlobals = {|
77

88
export const sdkClientTestGlobals: TestGlobals = {
99
__PORT__: 8000,
10-
__STAGE_HOST__: "msmaster.qa.paypal.com",
10+
__STAGE_HOST__: "sandbox.paypal.com",
1111
__HOST__: "test.paypal.com",
1212
__HOSTNAME__: "test.paypal.com",
1313
__SDK_HOST__: "test.paypal.com",
@@ -17,7 +17,7 @@ export const sdkClientTestGlobals: TestGlobals = {
1717
__CORRELATION_ID__: "abc123",
1818
__NAMESPACE__: "paypaltest",
1919
__PAYPAL_DOMAIN__: "mock://www.paypal.com",
20-
__PAYPAL_API_DOMAIN__: "mock://msmaster.qa.paypal.com",
20+
__PAYPAL_API_DOMAIN__: "mock://sandbox.paypal.com",
2121
__COMPONENTS__: ["buttons"],
2222
__DISABLE_SET_COOKIE__: true,
2323
};

0 commit comments

Comments
 (0)