From ffef7a0a0a9af674a17545f5123ebbb7fa27aa5b Mon Sep 17 00:00:00 2001 From: Cameron Skinner <68246816+camerski@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:54:09 -0700 Subject: [PATCH] Change integration tests to use relative paths for repository locations (#316) --- .../indexstatemanagement/IndexStateManagementRestTestCase.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/IndexStateManagementRestTestCase.kt b/src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/IndexStateManagementRestTestCase.kt index e83462516..059d92a88 100644 --- a/src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/IndexStateManagementRestTestCase.kt +++ b/src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/IndexStateManagementRestTestCase.kt @@ -499,13 +499,12 @@ abstract class IndexStateManagementRestTestCase : IndexManagementRestTestCase() protected fun createRepository( repository: String ) { - val path = getRepoPath() val response = client() .makeRequest( "PUT", "_snapshot/$repository", emptyMap(), - StringEntity("{\"type\":\"fs\", \"settings\": {\"location\": \"$path\"}}", APPLICATION_JSON) + StringEntity("{\"type\":\"fs\", \"settings\": {\"location\": \"$repository\"}}", APPLICATION_JSON) ) assertEquals("Unable to create a new repository", RestStatus.OK, response.restStatus()) }