Skip to content

Commit

Permalink
Fix broken test case due to lack of OS 1.3 support
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Jul 8, 2024
1 parent 0ccec1b commit 3e4af5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public Optional<ObjectNode> create(IndexMetadata index, String indexName, String
// Assemble the request body
ObjectNode body = mapper.createObjectNode();
body.set("aliases", indexMetadata.getAliases());
body.set("mappings", indexMetadata.getMappings());
// Working around for missing OS_1_3 definition
body.set("mappings", index.rawJson().get("mappings"));
body.set("settings", settings);

// Create the index; it's fine if it already exists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private int getHashCodeOfImagesAndArgs(DockerClient dockerClient, boolean pullIf
}

private String getImageName() {
return PRELOADED_IMAGE_BASE_NAME + baseSourceVersion.prettyName;
return PRELOADED_IMAGE_BASE_NAME + baseSourceVersion.prettyName.replace(" ", "_").toLowerCase();
}

private static DockerClient createDockerClient() {
Expand Down

0 comments on commit 3e4af5e

Please sign in to comment.