File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/test/java/hudson/security/docker Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 11package hudson .security .docker ;
22
3+ import hudson .Functions ;
34import hudson .model .User ;
45import hudson .security .LDAPEmbeddedTest ;
56import hudson .security .LDAPSecurityRealm ;
2324import static org .hamcrest .core .StringContains .containsString ;
2425import static org .junit .Assert .assertEquals ;
2526import 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
3134public 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 ();
Original file line number Diff line number Diff line change 11package hudson .security .docker ;
22
3+ import hudson .Functions ;
34import hudson .security .LDAPSecurityRealm ;
45import hudson .tasks .MailAddressResolver ;
56import hudson .util .Secret ;
1415import static org .hamcrest .core .StringContains .containsString ;
1516import static org .junit .Assert .assertEquals ;
1617import 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 */
2124public 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
You can’t perform that action at this time.
0 commit comments