-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove CORS related code - Minor refactoring - Updating comments Removing 'dom' from tsconfig.json produces error during tsc build during github action Run Tests. - required to workaround aws/aws-sdk-js-v3#2896 Ticket: AT-7050
- Loading branch information
1 parent
1c358ed
commit 685cf46
Showing
14 changed files
with
58 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ const provisioningBodyNoPayload = { | |
targetNetwork: Network.NETWORK_1, | ||
}; | ||
|
||
export const requestContext = { identity: { sourceIp: "9.9.9.9" } }; | ||
|
||
describe("Successful provisioning operations", () => { | ||
it("should add a new portfolio", async () => { | ||
const request = { | ||
|
@@ -40,10 +42,10 @@ describe("Successful provisioning operations", () => { | |
operators, | ||
}, | ||
}, | ||
requestContext: { identity: { sourceIp: "9.9.9.9" } }, | ||
requestContext, | ||
} as any; | ||
const response = await handler(request, {} as Context, () => null); | ||
console.log(response); | ||
console.log("TROUBLESHOOTING: ", response); | ||
expect(response).toBeInstanceOf(ApiSuccessResponse); | ||
}); | ||
it("should add a funding source to existing portfolio", async () => { | ||
|
@@ -63,10 +65,9 @@ describe("Successful provisioning operations", () => { | |
], | ||
}, | ||
}, | ||
requestContext: { identity: { sourceIp: "9.9.9.9" } }, | ||
requestContext, | ||
} as any; | ||
const response = await handler(request, {} as Context, () => null); | ||
console.log(response); | ||
expect(response).toBeInstanceOf(ApiSuccessResponse); | ||
}); | ||
it("should add operators to existing portfolio", async () => { | ||
|
@@ -78,10 +79,9 @@ describe("Successful provisioning operations", () => { | |
operators: [...operators, "[email protected]"], | ||
}, | ||
}, | ||
requestContext: { identity: { sourceIp: "9.9.9.9" } }, | ||
requestContext, | ||
} as any; | ||
const response = await handler(request, {} as Context, () => null); | ||
console.log(response); | ||
expect(response).toBeInstanceOf(ApiSuccessResponse); | ||
}); | ||
}); | ||
|
@@ -96,7 +96,7 @@ describe("Failed provision operations", () => { | |
operators, | ||
}, | ||
}, | ||
requestContext: { identity: { sourceIp: "9.9.9.9" } }, | ||
requestContext, | ||
} as any; | ||
const response = await handler(request, {} as Context, () => null); | ||
expect(response).toBeInstanceOf(ValidationErrorResponse); | ||
|
@@ -110,7 +110,7 @@ describe("Failed provision operations", () => { | |
operators, | ||
}, | ||
}, | ||
requestContext: { identity: { sourceIp: "9.9.9.9" } }, | ||
requestContext, | ||
} as any; | ||
const response = await handler(request, {} as Context, () => null); | ||
const responseBody = JSON.parse(response?.body ?? ""); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters