Test: Remove broken yml test feature (#31255)
The `requires_replica` yaml test feature hasn't worked for years. This is what happens if you try to use it: ``` > Throwable #1: java.lang.NullPointerException > at __randomizedtesting.SeedInfo.seed([E6602FB306244B12:6E341069A8D826EA]:0) > at org.elasticsearch.test.rest.yaml.Features.areAllSupported(Features.java:58) > at org.elasticsearch.test.rest.yaml.section.SkipSection.skip(SkipSection.java:144) > at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:321) ``` None of our tests use it.
This commit is contained in:
parent
24163d10b7
commit
77bb93557e
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.test.rest.yaml;
|
package org.elasticsearch.test.rest.yaml;
|
||||||
|
|
||||||
import org.elasticsearch.test.ESIntegTestCase;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -56,9 +54,6 @@ public final class Features {
|
||||||
*/
|
*/
|
||||||
public static boolean areAllSupported(List<String> features) {
|
public static boolean areAllSupported(List<String> features) {
|
||||||
for (String feature : features) {
|
for (String feature : features) {
|
||||||
if ("requires_replica".equals(feature) && ESIntegTestCase.cluster().numDataNodes() >= 2) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!SUPPORTED.contains(feature)) {
|
if (!SUPPORTED.contains(feature)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue