alberto-bogi commented on PR #1141:
URL: https://github.com/apache/syncope/pull/1141#issuecomment-3113506979

   you mean something like this:
   
   ```
   @Test
       public void passwordManagementConsole() throws IOException {
           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("mustchangepassw...@syncope.org").build())
                       .plainAttr(new 
Attr.Builder("surname").value("mustChangePassword").build()).build();
               Response response = USER_SERVICE.create(userCR);
   
               assertNotNull(response);
               assertEquals(HttpStatus.SC_CREATED, response.getStatus());
   
               passwordManagement(CONSOLE_ADDRESS, "mustChangePassword", 
"Password123!");
           } finally {
               UserTO userTO = USER_SERVICE.read("mustChangePassword");
               USER_SERVICE.delete(userTO.getKey());
           }
       }
      
      ```


-- 
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: dev-unsubscr...@syncope.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to