Skip to content

Commit

Permalink
Fix QueryUserIT
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jun 12, 2024
1 parent e3f33d2 commit 77d2dcd
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,7 @@ public void testSort() throws IOException {
assertQueryError(400, "{\"sort\":[\"" + invalidFieldName + "\"]}");

final String invalidSortName = randomFrom("email", "full_name");
assertQueryError(
READ_USERS_USER_AUTH_HEADER,
400,
String.format("{\"sort\":[\"%s\"]}", invalidSortName),
String.format("sorting is not supported for field [%s] in User query", invalidSortName)
);
assertQueryError(READ_USERS_USER_AUTH_HEADER, 400, String.format("{\"sort\":[\"%s\"]}", invalidSortName));
}

private String getReservedUsernameAndAssertExists() throws IOException {
Expand Down

0 comments on commit 77d2dcd

Please sign in to comment.