diff --git a/myconext-server/src/test/java/myconext/api/AccountLinkerControllerTest.java b/myconext-server/src/test/java/myconext/api/AccountLinkerControllerTest.java index ba22d37b..f9a83089 100644 --- a/myconext-server/src/test/java/myconext/api/AccountLinkerControllerTest.java +++ b/myconext-server/src/test/java/myconext/api/AccountLinkerControllerTest.java @@ -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("jdoe@example.com"); assertEquals(3, user.getLinkedAccounts().size()); diff --git a/myconext-server/src/test/java/myconext/api/AccountLinkerMobileControllerTest.java b/myconext-server/src/test/java/myconext/api/AccountLinkerMobileControllerTest.java index 0ef07cc0..e659e84c 100644 --- a/myconext-server/src/test/java/myconext/api/AccountLinkerMobileControllerTest.java +++ b/myconext-server/src/test/java/myconext/api/AccountLinkerMobileControllerTest.java @@ -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 diff --git a/myconext-server/src/test/java/myconext/api/UserControllerTest.java b/myconext-server/src/test/java/myconext/api/UserControllerTest.java index 7d5ba83c..452c9af2 100644 --- a/myconext-server/src/test/java/myconext/api/UserControllerTest.java +++ b/myconext-server/src/test/java/myconext/api/UserControllerTest.java @@ -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