Skip to content

Commit

Permalink
Simplify compare to avoid reodering of JSON elements
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Nov 11, 2024
1 parent ea870bd commit 05ada6b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ public void testSuperuserWasNotSet() throws IOException {
.join();

assertThat(roleList.getLeft()).isEqualTo(HttpStatus.SC_OK);
assertThat(roleList.getRight())
.contains(
"{\"super\":\"true\",\"datacenters\":\"ALL\",\"name\":\"authtest\",\"options\":\"{}\",\"login\":\"true\"}");
assertThat(roleList.getRight()).contains("\"name\":\"authtest\"");

// verify that we can login with user authtest/authtest
CqlSession session =
Expand Down

0 comments on commit 05ada6b

Please sign in to comment.