Skip to content

Commit 18e96f7

Browse files
committed
Match 2.x
Signed-off-by: Craig Perkins <[email protected]>
1 parent 9f91927 commit 18e96f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/integrationTest/java/org/opensearch/security/systemindex/SystemIndexTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class SystemIndexTests {
4545
public static final AuthcDomain AUTHC_DOMAIN = new AuthcDomain("basic", 0).httpAuthenticatorWithChallenge("basic").backend("internal");
4646

4747
@ClassRule
48-
public static final LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.DEFAULT)
48+
public static final LocalCluster cluster = new LocalCluster.Builder().clusterManager(ClusterManager.SINGLENODE)
4949
.anonymousAuth(false)
5050
.authc(AUTHC_DOMAIN)
5151
.users(USER_ADMIN)
@@ -61,10 +61,9 @@ public class SystemIndexTests {
6161
.build();
6262

6363
@Before
64-
public void wipeAllIndices() {
64+
public void setup() {
6565
try (TestRestClient client = cluster.getRestClient(cluster.getAdminCertificate())) {
6666
client.delete(".system-index1");
67-
client.delete(".system-index2");
6867
}
6968
}
7069

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

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

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

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

0 commit comments

Comments
 (0)