-
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 #258 from nulib/deploy/staging
Deploy API token update (with affiliation) to prod
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 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 |
---|---|---|
|
@@ -29,7 +29,11 @@ describe("auth callback", function () { | |
.get("/directory-search/res/netid/bas/uid123") | ||
.reply(200, { | ||
results: [ | ||
{ displayName: ["Some User"], mail: "[email protected]" }, | ||
{ | ||
displayName: ["Some User"], | ||
mail: "[email protected]", | ||
eduPersonPrimaryAffiliation: "staff", | ||
}, | ||
], | ||
}); | ||
|
||
|
@@ -48,6 +52,7 @@ describe("auth callback", function () { | |
expect(apiToken.token.sub).to.eq("uid123"); | ||
expect(apiToken.token.name).to.eq("Some User"); | ||
expect(apiToken.token.email).to.eq("[email protected]"); | ||
expect(apiToken.token.primaryAffiliation).to.eq("staff"); | ||
expect(apiToken.isLoggedIn()).to.be.true; | ||
}); | ||
|
||
|
@@ -77,6 +82,7 @@ describe("auth callback", function () { | |
expect(apiToken.token.sub).to.eq("uid123"); | ||
expect(apiToken.token.name).to.eq("uid123"); | ||
expect(apiToken.token.email).to.eq("[email protected]"); | ||
expect(apiToken.token.primaryAffiliation).to.be.undefined; | ||
expect(apiToken.isLoggedIn()).to.be.true; | ||
}); | ||
|
||
|