Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ static DeprecationIssue oldIndicesCheck(IndexMetaData indexMetaData) {
} else {
return new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"Index created before 6.0",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking-changes-7.0.html",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-7.0.html" +
"#_indices_created_before_7_0",
"This index was created using version: " + createdWith);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public void testOldIndicesCheck() {
.build();
DeprecationIssue expected = new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"Index created before 6.0",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking-changes-7.0.html",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-7.0.html" +
"#_indices_created_before_7_0",
"This index was created using version: " + createdWith);
List<DeprecationIssue> issues = DeprecationChecks.filterChecks(INDEX_SETTINGS_CHECKS, c -> c.apply(indexMetaData));
assertEquals(singletonList(expected), issues);
Expand Down Expand Up @@ -73,8 +73,8 @@ public void testMultipleTypesCheckWithDefaultMapping() throws IOException {

DeprecationIssue expected = new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"Index created before 6.0",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking-changes-7.0.html",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking-changes-7.0.html" +
"#_indices_created_before_7_0",
"This index was created using version: " + createdWith);
List<DeprecationIssue> issues = DeprecationChecks.filterChecks(INDEX_SETTINGS_CHECKS, c -> c.apply(indexMetaData));
assertEquals(singletonList(expected), issues);
Expand Down