Skip to content

Commit

Permalink
Remove the unused example
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Oct 27, 2023
1 parent 35fa44c commit e270d77
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/test/java/org/opensearch/security/IntegrationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1074,16 +1074,4 @@ public void testMonitorHealth() throws Exception {
RestHelper rh = nonSslRestHelper();
Assert.assertEquals(HttpStatus.SC_OK, rh.executeGetRequest("_cat/health", encodeBasicHeader("picard", "picard")).getStatusCode());
}

// TODO: SOMETHING LIKE THIS
@Test
public void testServiceAccountClusterPermissions() throws Exception {

setup();

RestHelper rh = nonSslRestHelper();
HttpResponse response = rh.executeGetRequest("_cat/health", encodeBasicHeader("bug.99", "nagilum"));
System.out.println("The service account cluster perm response is: " + response.toString());
Assert.assertEquals(HttpStatus.SC_FORBIDDEN, response.getStatusCode());
}
}

0 comments on commit e270d77

Please sign in to comment.