Mute the PluginCli test case for symlinks (#58607)

It fails on windows. Tracked in #58605.
This commit is contained in:
Nik Everett 2020-06-26 11:00:17 -04:00
parent 28717d1e02
commit bfe1dc8a56
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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");