Skip to content

Commit

Permalink
Match 2.x
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jan 17, 2025
1 parent 9f91927 commit 18e96f7
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class SystemIndexTests {
public static final AuthcDomain AUTHC_DOMAIN = new AuthcDomain("basic", 0).httpAuthenticatorWithChallenge("basic").backend("internal");

@ClassRule
public static final LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.DEFAULT)
public static final LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.SINGLENODE)
.anonymousAuth(false)
.authc(AUTHC_DOMAIN)
.users(USER_ADMIN)
Expand All @@ -61,10 +61,9 @@ public class SystemIndexTests {
.build();

@Before
public void wipeAllIndices() {
public void setup() {
try (TestRestClient client = cluster.getRestClient(cluster.getAdminCertificate())) {
client.delete(".system-index1");
client.delete(".system-index2");
}
}

Expand All @@ -83,7 +82,7 @@ public void adminShouldNotBeAbleToDeleteSecurityIndex() {

assertThat(response2.getStatusCode(), equalTo(RestStatus.OK.getStatus()));

// regular user can create system index
// regular use can create system index
HttpResponse response3 = client.put(".system-index1");

assertThat(response3.getStatusCode(), equalTo(RestStatus.OK.getStatus()));
Expand Down

0 comments on commit 18e96f7

Please sign in to comment.