File tree 2 files changed +9
-1
lines changed
qa/os/src/test/java/org/elasticsearch/packaging/test
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 46
46
import static org .hamcrest .CoreMatchers .is ;
47
47
import static org .hamcrest .CoreMatchers .not ;
48
48
import static org .hamcrest .Matchers .isEmptyString ;
49
+ import static org .junit .Assume .assumeFalse ;
49
50
import static org .junit .Assume .assumeThat ;
50
51
import static org .junit .Assume .assumeTrue ;
51
52
52
53
public class ArchiveTests extends PackagingTestCase {
53
54
54
55
@ BeforeClass
55
56
public static void filterDistros () {
57
+ // Muted on Windows see: https://github.com/elastic/elasticsearch/issues/50825
58
+ assumeFalse (System .getProperty ("os.name" ).startsWith ("Windows" ));
59
+
56
60
assumeTrue ("only archives" , distribution .isArchive ());
57
61
}
58
62
Original file line number Diff line number Diff line change 25
25
import org .elasticsearch .packaging .util .Platforms ;
26
26
import org .elasticsearch .packaging .util .ServerUtils ;
27
27
import org .elasticsearch .packaging .util .Shell ;
28
+ import org .junit .Assume ;
28
29
import org .junit .Before ;
29
30
import org .junit .BeforeClass ;
30
31
@@ -48,6 +49,9 @@ public class CertGenCliTests extends PackagingTestCase {
48
49
49
50
@ Before
50
51
public void filterDistros () {
52
+ // Muted on Windows see: https://github.com/elastic/elasticsearch/issues/50825
53
+ Assume .assumeFalse (System .getProperty ("os.name" ).startsWith ("Windows" ));
54
+
51
55
assumeTrue ("only default distro" , distribution .flavor == Distribution .Flavor .DEFAULT );
52
56
assumeTrue ("no docker" , distribution .packaging != Distribution .Packaging .DOCKER );
53
57
}
@@ -100,7 +104,7 @@ public void test31ExtractCerts() throws Exception {
100
104
public void test40RunWithCert () throws Exception {
101
105
// windows 2012 r2 has powershell 4.0, which lacks Expand-Archive
102
106
assumeFalse (Platforms .OS_NAME .equals ("Windows Server 2012 R2" ));
103
-
107
+
104
108
append (installation .config ("elasticsearch.yml" ), String .join ("\n " ,
105
109
"node.name: mynode" ,
106
110
"xpack.security.transport.ssl.key: " + escapePath (installation .config ("certs/mynode/mynode.key" )),
You can’t perform that action at this time.
0 commit comments