ottoka commented on a change in pull request #741:
URL: https://github.com/apache/james-project/pull/741#discussion_r747381281



##########
File path: 
server/protocols/webadmin/webadmin-data/src/test/java/org/apache/james/webadmin/routes/UserRoutesTest.java
##########
@@ -776,6 +776,48 @@ void allowedFromHeadersShouldReturn404WhenUserIsInvalid() {
                 .body("message", is("Invalid arguments supplied in the user 
request"));
         }
 
+        @Test
+        void verifyShouldReturnOkWhenUserPasswordMatches() {
+            with()
+                .body("{\"password\":\"password\"}")
+                .put(USERNAME_WITH_DOMAIN.asString());
+
+            given()
+                .body("{\"password\":\"password\"}")
+                .when()
+                .post(USERNAME_WITH_DOMAIN.asString() + "/verify")
+                .then()
+                .statusCode(HttpStatus.NO_CONTENT_204);

Review comment:
       Oops, evil auto-formatting at work. I actually noticed this in other 
tests. Fixed in latest push.




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to