Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit ffef7a0

Browse files
authored
Change integration tests to use relative paths for repository locations (#316)
1 parent 2dbe660 commit ffef7a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/kotlin/com/amazon/opendistroforelasticsearch/indexmanagement/indexstatemanagement/IndexStateManagementRestTestCase.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,12 @@ abstract class IndexStateManagementRestTestCase : IndexManagementRestTestCase()
499499
protected fun createRepository(
500500
repository: String
501501
) {
502-
val path = getRepoPath()
503502
val response = client()
504503
.makeRequest(
505504
"PUT",
506505
"_snapshot/$repository",
507506
emptyMap(),
508-
StringEntity("{\"type\":\"fs\", \"settings\": {\"location\": \"$path\"}}", APPLICATION_JSON)
507+
StringEntity("{\"type\":\"fs\", \"settings\": {\"location\": \"$repository\"}}", APPLICATION_JSON)
509508
)
510509
assertEquals("Unable to create a new repository", RestStatus.OK, response.restStatus())
511510
}

0 commit comments

Comments
 (0)