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

Commit

Permalink
Change integration tests to use relative paths for repository locatio…
Browse files Browse the repository at this point in the history
…ns (#316)
  • Loading branch information
camerski authored Oct 22, 2020
1 parent 2dbe660 commit ffef7a0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit ffef7a0

Please sign in to comment.