From 74033b689d2f7a2e78b1f11bef6a43feec396c1f Mon Sep 17 00:00:00 2001 From: Kshitij Tandon Date: Tue, 29 Oct 2024 18:02:21 +0530 Subject: [PATCH] Resolving issues with compile and ktlint Signed-off-by: Kshitij Tandon --- .../org/opensearch/indexmanagement/rollup/RollupRestTestCase.kt | 2 +- .../indexmanagement/rollup/interceptor/RollupInterceptorIT.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/rollup/RollupRestTestCase.kt b/src/test/kotlin/org/opensearch/indexmanagement/rollup/RollupRestTestCase.kt index b894b3cc3..57dc65904 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/rollup/RollupRestTestCase.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/rollup/RollupRestTestCase.kt @@ -276,7 +276,7 @@ abstract class RollupRestTestCase : IndexManagementRestTestCase() { val res = client().makeRequest( "PUT", "_cluster/settings", emptyMap(), - StringEntity(request, ContentType.APPLICATION_JSON), + StringEntity(request, APPLICATION_JSON), ) assertEquals("Request failed", RestStatus.OK, res.restStatus()) } diff --git a/src/test/kotlin/org/opensearch/indexmanagement/rollup/interceptor/RollupInterceptorIT.kt b/src/test/kotlin/org/opensearch/indexmanagement/rollup/interceptor/RollupInterceptorIT.kt index ffaca1ff8..7d74bbf42 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/rollup/interceptor/RollupInterceptorIT.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/rollup/interceptor/RollupInterceptorIT.kt @@ -1043,7 +1043,7 @@ class RollupInterceptorIT : RollupRestTestCase() { "max_passenger_count": { "max": { "field": "passenger_count" } } } } - """.trimIndent() + """.trimIndent() // Search 1 non-rollup index and 1 rollup updateSearchRawRollupClusterSetting(false) val searchResult1 = client().makeRequest("POST", "/$sourceIndex2,$targetIndex2/_search", emptyMap(), StringEntity(req, ContentType.APPLICATION_JSON))