Skip to content

Commit

Permalink
Clear AfterClass
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Nov 27, 2024
1 parent 86cf601 commit 7dd60d1
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.opensearch.indexmanagement.indexstatemanagement.resthandler

import org.junit.AfterClass
import org.opensearch.client.ResponseException
import org.opensearch.cluster.metadata.IndexMetadata
import org.opensearch.core.rest.RestStatus
Expand All @@ -19,6 +20,13 @@ import org.opensearch.rest.RestRequest.Method.DELETE
import org.opensearch.rest.RestRequest.Method.POST

class RestRemovePolicyActionIT : IndexStateManagementRestTestCase() {
companion object {
@AfterClass
@JvmStatic fun clearIndicesAfterClass() {
wipeAllIndices()
}
}

fun `test missing indices`() {
try {
client().makeRequest(POST.toString(), RestRemovePolicyAction.REMOVE_POLICY_BASE_URI)
Expand Down

0 comments on commit 7dd60d1

Please sign in to comment.