Skip to content

Commit

Permalink
deleted rest test
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnak Saxena <[email protected]>
  • Loading branch information
ronnaksaxena committed Sep 6, 2023
1 parent a9c6369 commit 495ee4d
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
}
}
}

0 comments on commit 495ee4d

Please sign in to comment.