-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from nulib/deploy/staging
Deploy to production
- Loading branch information
Showing
3 changed files
with
26 additions
and
27 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
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 |
---|---|---|
|
@@ -20,13 +20,13 @@ describe("auth callback", function () { | |
.render(); | ||
|
||
nock(process.env.NUSSO_BASE_URL) | ||
.get("/validateWebSSOToken") | ||
.get("/agentless-websso/validateWebSSOToken") | ||
.reply(200, { netid: "uid123" }); | ||
}); | ||
|
||
it("redeems the NUSSO token", async () => { | ||
nock(process.env.NUSSO_BASE_URL) | ||
.get("/validate-with-directory-search-response") | ||
.get("/directory-search/res/netid/bas/uid123") | ||
.reply(200, { | ||
results: [ | ||
{ displayName: ["Some User"], mail: "[email protected]" }, | ||
|
@@ -53,7 +53,7 @@ describe("auth callback", function () { | |
|
||
it("fills in the blanks if the directory search result is incomplete", async () => { | ||
nock(process.env.NUSSO_BASE_URL) | ||
.get("/validate-with-directory-search-response") | ||
.get("/directory-search/res/netid/bas/uid123") | ||
.reply(200, { | ||
results: [{ displayName: [], mail: "" }], | ||
}); | ||
|
@@ -82,7 +82,7 @@ describe("auth callback", function () { | |
|
||
it("assembles a user object from the netID if directory search fails", async () => { | ||
nock(process.env.NUSSO_BASE_URL) | ||
.get("/validate-with-directory-search-response") | ||
.get("/directory-search/res/netid/bas/uid123") | ||
.reply(500, { | ||
fault: { | ||
faultstring: | ||
|