Skip to content

Commit

Permalink
Merge pull request moby#19605 from Microsoft/jjh/docker_api_images_test
Browse files Browse the repository at this point in the history
Windows CI: Porting for docker_api_images_test.go
  • Loading branch information
Arnaud Porterie committed Jan 27, 2016
2 parents 70c5e96 + 80b0570 commit 864cca2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions integration-cli/docker_api_images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
)

func (s *DockerSuite) TestApiImagesFilter(c *check.C) {
testRequires(c, DaemonIsLinux)
name := "utest:tag1"
name2 := "utest/docker:tag2"
name3 := "utest:5000/docker:tag3"
Expand Down Expand Up @@ -49,9 +48,10 @@ func (s *DockerSuite) TestApiImagesFilter(c *check.C) {
}

func (s *DockerSuite) TestApiImagesSaveAndLoad(c *check.C) {
// TODO Windows to Windows CI: Investigate further why this test fails.
testRequires(c, Network)
testRequires(c, DaemonIsLinux)
out, err := buildImage("saveandload", "FROM hello-world\nENV FOO bar", false)
out, err := buildImage("saveandload", "FROM busybox\nENV FOO bar", false)
c.Assert(err, checker.IsNil)
id := strings.TrimSpace(out)

Expand All @@ -72,10 +72,11 @@ func (s *DockerSuite) TestApiImagesSaveAndLoad(c *check.C) {
}

func (s *DockerSuite) TestApiImagesDelete(c *check.C) {
testRequires(c, Network)
testRequires(c, DaemonIsLinux)
if daemonPlatform != "windows" {
testRequires(c, Network)
}
name := "test-api-images-delete"
out, err := buildImage(name, "FROM hello-world\nENV FOO bar", false)
out, err := buildImage(name, "FROM busybox\nENV FOO bar", false)
c.Assert(err, checker.IsNil)
id := strings.TrimSpace(out)

Expand All @@ -95,10 +96,11 @@ func (s *DockerSuite) TestApiImagesDelete(c *check.C) {
}

func (s *DockerSuite) TestApiImagesHistory(c *check.C) {
testRequires(c, Network)
testRequires(c, DaemonIsLinux)
if daemonPlatform != "windows" {
testRequires(c, Network)
}
name := "test-api-images-history"
out, err := buildImage(name, "FROM hello-world\nENV FOO bar", false)
out, err := buildImage(name, "FROM busybox\nENV FOO bar", false)
c.Assert(err, checker.IsNil)

id := strings.TrimSpace(out)
Expand Down

0 comments on commit 864cca2

Please sign in to comment.