Fix links in deprecation checks (elastic/x-pack-elasticsearch#2490)

Some links must have moved since we wrote the tests and released
5.6.0.

relates elastic/x-pack-elasticsearch#2488

Original commit: elastic/x-pack-elasticsearch@ebceee7f3d
This commit is contained in:
Nik Everett 2017-09-13 14:58:14 -04:00
parent 01a921a8e3
commit f15666f82e
2 changed files with 9 additions and 9 deletions

View File

@ -187,8 +187,8 @@ public class IndexDeprecationChecks {
indexMetaData.getSettings().get("index.shared_filesystem") != null) {
return new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"[index.shared_filesystem] setting should be removed",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking_60_settings_changes.html#_shadow_replicas_have_been_removed", null);
"https://www.elastic.co/guide/en/elasticsearch/reference/6.0/" +
"breaking_60_indices_changes.html#_shadow_replicas_have_been_removed", null);
}
return null;

View File

@ -142,11 +142,11 @@ public class IndexDeprecationChecksTests extends ESTestCase {
}
public void testStoreThrottleSettingsCheck() {
assertSettingsAndIssue("index.store.throttle.max_bytes_per_sec", "32",
new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"index.store.throttle settings are no longer recognized. these settings should be removed",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking_60_settings_changes.html#_store_throttling_settings",
"present settings: [index.store.throttle.max_bytes_per_sec]"));
new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"index.store.throttle settings are no longer recognized. these settings should be removed",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking_60_settings_changes.html#_store_throttling_settings",
"present settings: [index.store.throttle.max_bytes_per_sec]"));
assertSettingsAndIssue("index.store.throttle.type", "none",
new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"index.store.throttle settings are no longer recognized. these settings should be removed",
@ -159,7 +159,7 @@ public class IndexDeprecationChecksTests extends ESTestCase {
assertSettingsAndIssue("index.shared_filesystem", "true",
new DeprecationIssue(DeprecationIssue.Level.CRITICAL,
"[index.shared_filesystem] setting should be removed",
"https://www.elastic.co/guide/en/elasticsearch/reference/master/" +
"breaking_60_settings_changes.html#_shadow_replicas_have_been_removed", null));
"https://www.elastic.co/guide/en/elasticsearch/reference/6.0/" +
"breaking_60_indices_changes.html#_shadow_replicas_have_been_removed", null));
}
}