Skip to content

Commit 8cbfd53

Browse files
committed
Merge branch 'ci' into no-BeanBuilder
2 parents c84b209 + df8bb08 commit 8cbfd53

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/test/java/hudson/security/docker/MultiServerTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package hudson.security.docker;
22

3+
import hudson.Functions;
34
import hudson.model.User;
45
import hudson.security.LDAPEmbeddedTest;
56
import hudson.security.LDAPSecurityRealm;
@@ -23,12 +24,19 @@
2324
import static org.hamcrest.core.StringContains.containsString;
2425
import static org.junit.Assert.assertEquals;
2526
import static org.junit.Assert.assertThat;
27+
import static org.junit.Assume.assumeFalse;
28+
import org.junit.BeforeClass;
2629

2730
/**
2831
* Tests connecting to two different servers
2932
*/
3033
@LDAPTestConfiguration
3134
public class MultiServerTest {
35+
36+
@BeforeClass public static void linuxOnly() {
37+
assumeFalse("Windows CI builders now have Docker installed…but it does not support Linux images", Functions.isWindows());
38+
}
39+
3240
@Rule
3341
public DockerRule<PlanetExpressTest.PlanetExpress> docker = new DockerRule<>(PlanetExpressTest.PlanetExpress.class);
3442
public JenkinsRule j = new JenkinsRule();

src/test/java/hudson/security/docker/PlanetExpressTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package hudson.security.docker;
22

3+
import hudson.Functions;
34
import hudson.security.LDAPSecurityRealm;
45
import hudson.tasks.MailAddressResolver;
56
import hudson.util.Secret;
@@ -14,12 +15,18 @@
1415
import static org.hamcrest.core.StringContains.containsString;
1516
import static org.junit.Assert.assertEquals;
1617
import static org.junit.Assert.assertThat;
18+
import static org.junit.Assume.assumeFalse;
19+
import org.junit.BeforeClass;
1720

1821
/**
1922
* Tests the plugin when logging in to rroemhild/test-openldap
2023
*/
2124
public class PlanetExpressTest {
2225

26+
@BeforeClass public static void linuxOnly() {
27+
assumeFalse("Windows CI builders now have Docker installed…but it does not support Linux images", Functions.isWindows());
28+
}
29+
2330
@Rule
2431
public DockerRule<PlanetExpress> docker = new DockerRule<>(PlanetExpress.class);
2532
@Rule

0 commit comments

Comments
 (0)