Skip to content

Commit 4def369

Browse files
authored
Test: match the \ilm/ and \slm/ test name too (#51811) (#51919)
We only drop ilm/slm policies on teardown only if the running docs tests are ilm/slm related. This updates the test name pattern to match the ilm/slm related tests when running on windows (eg.`reference\ilm/update-lifecycle-policy/line_29`). (cherry picked from commit 4bb5bbd) Signed-off-by: Andrei Dan <[email protected]>
1 parent b4480bb commit 4def369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ protected boolean preserveTemplatesUponCompletion() {
143143

144144
protected boolean isSLMTest() {
145145
String testName = getTestName();
146-
return testName != null && (testName.contains("/slm/") || testName.contains("\\slm\\") ||
146+
return testName != null && (testName.contains("/slm/") || testName.contains("\\slm\\") || (testName.contains("\\slm/")) ||
147147
// TODO: Remove after backport of https://github.com/elastic/elasticsearch/pull/48705 which moves SLM docs to correct folder
148-
testName.contains("/ilm/") || testName.contains("\\ilm\\"));
148+
testName.contains("/ilm/") || testName.contains("\\ilm\\") || testName.contains("\\ilm/"));
149149
}
150150

151151
protected boolean isILMTest() {
152152
String testName = getTestName();
153-
return testName != null && (testName.contains("/ilm/") || testName.contains("\\ilm\\"));
153+
return testName != null && (testName.contains("/ilm/") || testName.contains("\\ilm\\") || testName.contains("\\ilm/"));
154154
}
155155

156156
protected boolean isMachineLearningTest() {

0 commit comments

Comments
 (0)