Skip to content

Commit 1c243f7

Browse files
authored
Ensure license is ready for xpack info doc tests (#60706)
Fix another variant of missing license test failure similar to the cases fixed by #60498.
1 parent 393ce41 commit 1c243f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/src/test/java/org/elasticsearch/smoketest/DocsClientYamlTestSuiteIT.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected ClientYamlTestClient initClientYamlTestClient(
104104

105105
@Before
106106
public void waitForRequirements() throws Exception {
107-
if (isCcrTest() || isGetLicenseTest()) {
107+
if (isCcrTest() || isGetLicenseTest() || isXpackInfoTest()) {
108108
ESRestTestCase.waitForActiveLicense(adminClient());
109109
}
110110
}
@@ -180,6 +180,11 @@ protected boolean isGetLicenseTest() {
180180
return testName != null && (testName.contains("/get-license/") || testName.contains("\\get-license\\"));
181181
}
182182

183+
protected boolean isXpackInfoTest() {
184+
String testName = getTestName();
185+
return testName != null && (testName.contains("/info/") || testName.contains("\\info\\"));
186+
}
187+
183188
/**
184189
* Compares the results of running two analyzers against many random
185190
* strings. The goal is to figure out if two anlayzers are "the same" by

0 commit comments

Comments
 (0)