Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Oct 10, 2023
1 parent fbe5591 commit 35a221f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public void spFlowRedirect() throws IOException {
.contentType(ContentType.JSON)
.get("/myconext/api/sp/oidc/redirect")
.getHeader("Location");
assertEquals("http://localhost:3001/personal", location);
assertEquals("http://localhost:3001/personal?institution=mock.idp", location);

User user = userRepository.findOneUserByEmail("[email protected]");
assertEquals(3, user.getLinkedAccounts().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void spOidcLinkMobile() throws IOException {
.contentType(ContentType.JSON)
.get("/myconext/api/mobile/oidc/redirect")
.getHeader("Location");
assertEquals(location, "http://localhost:3000/client/mobile/account-linked");
assertEquals("http://localhost:3000/client/mobile/account-linked?institution=mock.idp", location);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public void institutionalDomainNames() {
.get("/myconext/api/idp/email/domain/institutional")
.then()
.statusCode(HttpStatus.OK.value())
.body("size()", is(2));
.body("size()", is(5));
}

@Test
Expand Down

0 comments on commit 35a221f

Please sign in to comment.