From 495ee4d0c2f05590b116535bd76c7d52dd116d49 Mon Sep 17 00:00:00 2001 From: Ronnak Saxena Date: Wed, 6 Sep 2023 17:57:52 +0000 Subject: [PATCH] deleted rest test Signed-off-by: Ronnak Saxena --- .../rollup/resthandler/RestDeleteRollupActionIT.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/rollup/resthandler/RestDeleteRollupActionIT.kt b/src/test/kotlin/org/opensearch/indexmanagement/rollup/resthandler/RestDeleteRollupActionIT.kt index 43fc6dca5..3f5dc42d8 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/rollup/resthandler/RestDeleteRollupActionIT.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/rollup/resthandler/RestDeleteRollupActionIT.kt @@ -6,7 +6,6 @@ package org.opensearch.indexmanagement.rollup.resthandler import org.opensearch.client.ResponseException -import org.opensearch.indexmanagement.IndexManagementPlugin.Companion.INDEX_MANAGEMENT_INDEX import org.opensearch.indexmanagement.IndexManagementPlugin.Companion.ROLLUP_JOBS_BASE_URI import org.opensearch.indexmanagement.makeRequest import org.opensearch.indexmanagement.rollup.RollupRestTestCase @@ -37,15 +36,4 @@ class RestDeleteRollupActionIT : RollupRestTestCase() { assertEquals(RestStatus.NOT_FOUND, e.response.restStatus()) } } - - @Throws(Exception::class) - fun `test deleting a rollup that doesn't exist and config index doesnt exist`() { - try { - deleteIndex(INDEX_MANAGEMENT_INDEX) - client().makeRequest("DELETE", "$ROLLUP_JOBS_BASE_URI/foobarbaz") - fail("expected 404 ResponseException") - } catch (e: ResponseException) { - assertEquals(RestStatus.NOT_FOUND, e.response.restStatus()) - } - } }