diff --git a/qa/os/src/test/java/org/elasticsearch/packaging/test/PackagingTestCase.java b/qa/os/src/test/java/org/elasticsearch/packaging/test/PackagingTestCase.java index 765ced40b57..b887f440bd6 100644 --- a/qa/os/src/test/java/org/elasticsearch/packaging/test/PackagingTestCase.java +++ b/qa/os/src/test/java/org/elasticsearch/packaging/test/PackagingTestCase.java @@ -22,6 +22,7 @@ package org.elasticsearch.packaging.test; import com.carrotsearch.randomizedtesting.JUnit3MethodProvider; import com.carrotsearch.randomizedtesting.RandomizedRunner; import com.carrotsearch.randomizedtesting.annotations.TestCaseOrdering; +import com.carrotsearch.randomizedtesting.annotations.TestGroup; import com.carrotsearch.randomizedtesting.annotations.TestMethodProviders; import com.carrotsearch.randomizedtesting.annotations.Timeout; import org.apache.logging.log4j.LogManager; @@ -50,6 +51,10 @@ import org.junit.runner.Description; import org.junit.runner.RunWith; import java.io.IOException; +import java.lang.annotation.Documented; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -78,6 +83,18 @@ import static org.junit.Assume.assumeTrue; @TestCaseOrdering(TestCaseOrdering.AlphabeticOrder.class) public abstract class PackagingTestCase extends Assert { + /** + * Annotation for tests which exhibit a known issue and are temporarily disabled. + */ + @Documented + @Inherited + @Retention(RetentionPolicy.RUNTIME) + @TestGroup(enabled = false, sysProperty = "tests.awaitsfix") + @interface AwaitsFix { + /** Point to JIRA entry. */ + String bugUrl(); + } + protected final Logger logger = LogManager.getLogger(getClass()); // the distribution being tested diff --git a/qa/os/src/test/java/org/elasticsearch/packaging/test/PluginCliTests.java b/qa/os/src/test/java/org/elasticsearch/packaging/test/PluginCliTests.java index 61bdce1b4ba..00170111a2e 100644 --- a/qa/os/src/test/java/org/elasticsearch/packaging/test/PluginCliTests.java +++ b/qa/os/src/test/java/org/elasticsearch/packaging/test/PluginCliTests.java @@ -69,6 +69,7 @@ public class PluginCliTests extends PackagingTestCase { install(); } + @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/58605") public void test20SymlinkPluginsDir() throws Exception { Path pluginsDir = installation.plugins; Path stashedPluginsDir = createTempDir("stashed-plugins");