Skip to content
Snippets Groups Projects
Commit 137f5784 authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

fix(UserIT): user is forbidden to change role

parent 553ae1ca
Branches solidify-authorization-3
Tags
1 merge request!43Draft: Solidify authorization 3
......@@ -96,10 +96,10 @@ class UserIT {
final ResponseEntity<String> response = restClient.post()
.uri(USER_ENDPOINT + USER_CHANGE_ROLE_ENDPOINT, TEST_USER_EXTERNAL_UID)
.headers(headers -> headers.setBearerAuth(oAuth2Token))
.body("USER")
.retrieve()
.onStatus(status -> true, (req, resp) -> {})
.toEntity(String.class);
// TODO: Fix this
assertEquals(HttpStatus.BAD_REQUEST, response.getStatusCode());
assertEquals(HttpStatus.FORBIDDEN, response.getStatusCode());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment