Skip to content

Commit

Permalink
Merge pull request opendistro-for-elasticsearch#358 from davidcui-amz…
Browse files Browse the repository at this point in the history
…n/remote-cluster-testing-fix

Remote cluster testing fix
  • Loading branch information
davidcui1225 authored Apr 16, 2021
2 parents 182979a + f9032d9 commit 1fa90d8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ abstract class PluginRestTestCase : ESRestTestCase() {
for (index in parser.list()) {
val jsonObject: Map<*, *> = index as java.util.HashMap<*, *>
val indexName: String = jsonObject["index"] as String
// .opendistro_security isn't allowed to delete from cluster
if (".opendistro_security" != indexName) {
if (!indexName.startsWith(".kibana") && !indexName.startsWith(".opendistro_security")) {
client().performRequest(Request("DELETE", "/$indexName"))
}
}
Expand Down

0 comments on commit 1fa90d8

Please sign in to comment.