Skip to content

Commit a902878

Browse files
committed
Mute ArchiveTests on windows
see #116299
1 parent 8f24e8e commit a902878

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

qa/packaging/src/test/java/org/elasticsearch/packaging/test/ArchiveTests.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.elasticsearch.packaging.util.ServerUtils;
2020
import org.elasticsearch.packaging.util.Shell;
2121
import org.elasticsearch.packaging.util.Shell.Result;
22+
import org.junit.Assume;
2223
import org.junit.BeforeClass;
2324

2425
import java.nio.file.Files;
@@ -112,6 +113,10 @@ public void test32SpecialCharactersInJdkPath() throws Exception {
112113
}
113114

114115
public void test40AutoconfigurationNotTriggeredWhenNodeIsMeantToJoinExistingCluster() throws Exception {
116+
Assume.assumeFalse(
117+
"https://github.com/elastic/elasticsearch/issues/116299",
118+
distribution.platform == Distribution.Platform.WINDOWS
119+
);
115120
// auto-config requires that the archive owner and the process user be the same,
116121
Platforms.onWindows(() -> sh.chown(installation.config, installation.getOwner()));
117122
FileUtils.assertPathsDoNotExist(installation.data);
@@ -124,8 +129,11 @@ public void test40AutoconfigurationNotTriggeredWhenNodeIsMeantToJoinExistingClus
124129
FileUtils.rm(installation.data);
125130
}
126131

127-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/116299")
128132
public void test41AutoconfigurationNotTriggeredWhenNodeCannotContainData() throws Exception {
133+
Assume.assumeFalse(
134+
"https://github.com/elastic/elasticsearch/issues/116299",
135+
distribution.platform == Distribution.Platform.WINDOWS
136+
);
129137
// auto-config requires that the archive owner and the process user be the same
130138
Platforms.onWindows(() -> sh.chown(installation.config, installation.getOwner()));
131139
ServerUtils.addSettingToExistingConfiguration(installation, "node.roles", "[\"voting_only\", \"master\"]");
@@ -138,6 +146,10 @@ public void test41AutoconfigurationNotTriggeredWhenNodeCannotContainData() throw
138146
}
139147

140148
public void test42AutoconfigurationNotTriggeredWhenNodeCannotBecomeMaster() throws Exception {
149+
Assume.assumeFalse(
150+
"https://github.com/elastic/elasticsearch/issues/116299",
151+
distribution.platform == Distribution.Platform.WINDOWS
152+
);
141153
// auto-config requires that the archive owner and the process user be the same
142154
Platforms.onWindows(() -> sh.chown(installation.config, installation.getOwner()));
143155
ServerUtils.addSettingToExistingConfiguration(installation, "node.roles", "[\"ingest\"]");

0 commit comments

Comments
 (0)