ilgrosso commented on PR #1141:
URL: https://github.com/apache/syncope/pull/1141#issuecomment-3113523973
> you mean something like this:
> [...]
More or less:
```java
@Test
public void passwordManagementConsole() throws IOException {
String key = null;
try {
UserCR userCR = new UserCR.Builder(SyncopeConstants.ROOT_REALM,
"mustChangePassword").mustChangePassword(
Boolean.TRUE).password("Password123!")
.plainAttr(new
Attr.Builder("fullname").value("mustChangePassword").build())
.plainAttr(new
Attr.Builder("userId").value("[email protected]").build())
.plainAttr(new
Attr.Builder("surname").value("mustChangePassword").build()).build();
Response response = USER_SERVICE.create(userCR);
assertEquals(HttpStatus.SC_CREATED, response.getStatus());
key = response.getHeaderString(RESTHeaders.RESOURCE_KEY);
passwordManagement(CONSOLE_ADDRESS, "mustChangePassword",
"Password123!");
} finally {
if (key != null) {
USER_SERVICE.delete(key);
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]