1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows CI: Turn off network API tests

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2016-01-08 12:58:54 -08:00
parent 719526d87c
commit 4c380010a6

View file

@ -16,6 +16,7 @@ import (
) )
func (s *DockerSuite) TestApiNetworkGetDefaults(c *check.C) { func (s *DockerSuite) TestApiNetworkGetDefaults(c *check.C) {
testRequires(c, DaemonIsLinux)
// By default docker daemon creates 3 networks. check if they are present // By default docker daemon creates 3 networks. check if they are present
defaults := []string{"bridge", "host", "none"} defaults := []string{"bridge", "host", "none"}
for _, nn := range defaults { for _, nn := range defaults {
@ -24,6 +25,7 @@ func (s *DockerSuite) TestApiNetworkGetDefaults(c *check.C) {
} }
func (s *DockerSuite) TestApiNetworkCreateDelete(c *check.C) { func (s *DockerSuite) TestApiNetworkCreateDelete(c *check.C) {
testRequires(c, DaemonIsLinux)
// Create a network // Create a network
name := "testnetwork" name := "testnetwork"
config := types.NetworkCreate{ config := types.NetworkCreate{
@ -39,6 +41,7 @@ func (s *DockerSuite) TestApiNetworkCreateDelete(c *check.C) {
} }
func (s *DockerSuite) TestApiNetworkCreateCheckDuplicate(c *check.C) { func (s *DockerSuite) TestApiNetworkCreateCheckDuplicate(c *check.C) {
testRequires(c, DaemonIsLinux)
name := "testcheckduplicate" name := "testcheckduplicate"
configOnCheck := types.NetworkCreate{ configOnCheck := types.NetworkCreate{
Name: name, Name: name,
@ -61,11 +64,13 @@ func (s *DockerSuite) TestApiNetworkCreateCheckDuplicate(c *check.C) {
} }
func (s *DockerSuite) TestApiNetworkFilter(c *check.C) { func (s *DockerSuite) TestApiNetworkFilter(c *check.C) {
testRequires(c, DaemonIsLinux)
nr := getNetworkResource(c, getNetworkIDByName(c, "bridge")) nr := getNetworkResource(c, getNetworkIDByName(c, "bridge"))
c.Assert(nr.Name, checker.Equals, "bridge") c.Assert(nr.Name, checker.Equals, "bridge")
} }
func (s *DockerSuite) TestApiNetworkInspect(c *check.C) { func (s *DockerSuite) TestApiNetworkInspect(c *check.C) {
testRequires(c, DaemonIsLinux)
// Inspect default bridge network // Inspect default bridge network
nr := getNetworkResource(c, "bridge") nr := getNetworkResource(c, "bridge")
c.Assert(nr.Name, checker.Equals, "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) { func (s *DockerSuite) TestApiNetworkConnectDisconnect(c *check.C) {
testRequires(c, DaemonIsLinux)
// Create test network // Create test network
name := "testnetwork" name := "testnetwork"
config := types.NetworkCreate{ config := types.NetworkCreate{
@ -155,6 +161,7 @@ func (s *DockerSuite) TestApiNetworkConnectDisconnect(c *check.C) {
} }
func (s *DockerSuite) TestApiNetworkIpamMultipleBridgeNetworks(c *check.C) { func (s *DockerSuite) TestApiNetworkIpamMultipleBridgeNetworks(c *check.C) {
testRequires(c, DaemonIsLinux)
// test0 bridge network // test0 bridge network
ipam0 := network.IPAM{ ipam0 := network.IPAM{
Driver: "default", Driver: "default",
@ -213,6 +220,7 @@ func (s *DockerSuite) TestApiNetworkIpamMultipleBridgeNetworks(c *check.C) {
} }
func (s *DockerSuite) TestApiCreateDeletePredefinedNetworks(c *check.C) { func (s *DockerSuite) TestApiCreateDeletePredefinedNetworks(c *check.C) {
testRequires(c, DaemonIsLinux)
createDeletePredefinedNetwork(c, "bridge") createDeletePredefinedNetwork(c, "bridge")
createDeletePredefinedNetwork(c, "none") createDeletePredefinedNetwork(c, "none")
createDeletePredefinedNetwork(c, "host") createDeletePredefinedNetwork(c, "host")