Ensure license is ready for xpack info doc tests (#60706) (#60708)

Fix another variant of missing license test failure similar to the cases fixed by #60498.
This commit is contained in:
Yang Wang 2020-08-05 16:36:43 +10:00 committed by GitHub
parent 5885f6ae66
commit 1329c982c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class DocsClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
@Before
public void waitForRequirements() throws Exception {
if (isCcrTest() || isGetLicenseTest()) {
if (isCcrTest() || isGetLicenseTest() || isXpackInfoTest()) {
ESRestTestCase.waitForActiveLicense(adminClient());
}
}
@ -180,6 +180,11 @@ public class DocsClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
return testName != null && (testName.contains("/get-license/") || testName.contains("\\get-license\\"));
}
protected boolean isXpackInfoTest() {
String testName = getTestName();
return testName != null && (testName.contains("/info/") || testName.contains("\\info\\"));
}
/**
* Compares the results of running two analyzers against many random
* strings. The goal is to figure out if two anlayzers are "the same" by