File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/integrationTest/java/org/opensearch/security/systemindex Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class SystemIndexTests {
45
45
public static final AuthcDomain AUTHC_DOMAIN = new AuthcDomain ("basic" , 0 ).httpAuthenticatorWithChallenge ("basic" ).backend ("internal" );
46
46
47
47
@ 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 )
49
49
.anonymousAuth (false )
50
50
.authc (AUTHC_DOMAIN )
51
51
.users (USER_ADMIN )
@@ -61,10 +61,9 @@ public class SystemIndexTests {
61
61
.build ();
62
62
63
63
@ Before
64
- public void wipeAllIndices () {
64
+ public void setup () {
65
65
try (TestRestClient client = cluster .getRestClient (cluster .getAdminCertificate ())) {
66
66
client .delete (".system-index1" );
67
- client .delete (".system-index2" );
68
67
}
69
68
}
70
69
@@ -83,7 +82,7 @@ public void adminShouldNotBeAbleToDeleteSecurityIndex() {
83
82
84
83
assertThat (response2 .getStatusCode (), equalTo (RestStatus .OK .getStatus ()));
85
84
86
- // regular user can create system index
85
+ // regular use can create system index
87
86
HttpResponse response3 = client .put (".system-index1" );
88
87
89
88
assertThat (response3 .getStatusCode (), equalTo (RestStatus .OK .getStatus ()));
You can’t perform that action at this time.
0 commit comments