From 4c380010a6c001cda7cbe7184eb298ec885774ce Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 8 Jan 2016 12:58:54 -0800 Subject: [PATCH] Windows CI: Turn off network API tests Signed-off-by: John Howard --- integration-cli/docker_api_network_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integration-cli/docker_api_network_test.go b/integration-cli/docker_api_network_test.go index 0552978387..b5748e1662 100644 --- a/integration-cli/docker_api_network_test.go +++ b/integration-cli/docker_api_network_test.go @@ -16,6 +16,7 @@ import ( ) func (s *DockerSuite) TestApiNetworkGetDefaults(c *check.C) { + testRequires(c, DaemonIsLinux) // By default docker daemon creates 3 networks. check if they are present defaults := []string{"bridge", "host", "none"} for _, nn := range defaults { @@ -24,6 +25,7 @@ func (s *DockerSuite) TestApiNetworkGetDefaults(c *check.C) { } func (s *DockerSuite) TestApiNetworkCreateDelete(c *check.C) { + testRequires(c, DaemonIsLinux) // Create a network name := "testnetwork" config := types.NetworkCreate{ @@ -39,6 +41,7 @@ func (s *DockerSuite) TestApiNetworkCreateDelete(c *check.C) { } func (s *DockerSuite) TestApiNetworkCreateCheckDuplicate(c *check.C) { + testRequires(c, DaemonIsLinux) name := "testcheckduplicate" configOnCheck := types.NetworkCreate{ Name: name, @@ -61,11 +64,13 @@ func (s *DockerSuite) TestApiNetworkCreateCheckDuplicate(c *check.C) { } func (s *DockerSuite) TestApiNetworkFilter(c *check.C) { + testRequires(c, DaemonIsLinux) nr := getNetworkResource(c, getNetworkIDByName(c, "bridge")) c.Assert(nr.Name, checker.Equals, "bridge") } func (s *DockerSuite) TestApiNetworkInspect(c *check.C) { + testRequires(c, DaemonIsLinux) // Inspect default bridge network nr := getNetworkResource(c, "bridge") c.Assert(nr.Name, checker.Equals, "bridge") @@ -115,6 +120,7 @@ func (s *DockerSuite) TestApiNetworkInspect(c *check.C) { } func (s *DockerSuite) TestApiNetworkConnectDisconnect(c *check.C) { + testRequires(c, DaemonIsLinux) // Create test network name := "testnetwork" config := types.NetworkCreate{ @@ -155,6 +161,7 @@ func (s *DockerSuite) TestApiNetworkConnectDisconnect(c *check.C) { } func (s *DockerSuite) TestApiNetworkIpamMultipleBridgeNetworks(c *check.C) { + testRequires(c, DaemonIsLinux) // test0 bridge network ipam0 := network.IPAM{ Driver: "default", @@ -213,6 +220,7 @@ func (s *DockerSuite) TestApiNetworkIpamMultipleBridgeNetworks(c *check.C) { } func (s *DockerSuite) TestApiCreateDeletePredefinedNetworks(c *check.C) { + testRequires(c, DaemonIsLinux) createDeletePredefinedNetwork(c, "bridge") createDeletePredefinedNetwork(c, "none") createDeletePredefinedNetwork(c, "host")