Skip to content

Commit

Permalink
Fixed: UsersIT registerOidcUser
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Nov 15, 2024
1 parent c3de7d7 commit 25cdf98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/edu/harvard/iq/dataverse/api/UsersIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,9 @@ public void testRegisterOIDCUser() {
registerOidcUserResponse.then().assertThat()
.statusCode(BAD_REQUEST.getStatusCode())
.body("message", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.invalidFields")))
.body("fieldErrors.firstName", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.firstNameFieldRequired")))
.body("fieldErrors.lastName", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.lastNameFieldRequired")))
.body("fieldErrors.emailAddress", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.emailFieldRequired")));
.body("fieldErrors.firstName", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.provideMissingClaimsEnabled.firstNameFieldRequired")))
.body("fieldErrors.lastName", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.provideMissingClaimsEnabled.lastNameFieldRequired")))
.body("fieldErrors.emailAddress", equalTo(BundleUtil.getStringFromBundle("registerOidcUserCommand.errors.provideMissingClaimsEnabled.emailAddressFieldRequired")));

// Should register user when the Bearer token is valid and the provided User JSON contains the missing claims in the IdP
registerOidcUserResponse = UtilIT.registerOidcUser(
Expand Down

0 comments on commit 25cdf98

Please sign in to comment.