summaryrefslogtreecommitdiff
path: root/integration-cli/docker_api_images_test.go
diff options
context:
space:
mode:
authorVincent Demeester <vincent@sbr.pm>2018-03-27 18:13:47 +0200
committerVincent Demeester <vincent@sbr.pm>2018-03-29 09:10:39 +0200
commite55d6fc8573580f6eea009cd7f1034aa912128ef (patch)
tree9a189948fa698bc07c6f8f203b1e84e281c48edd /integration-cli/docker_api_images_test.go
parentf12574891cb2ea69809f2425a0d5658a320293fe (diff)
downloaddocker-e55d6fc8573580f6eea009cd7f1034aa912128ef.tar.gz
Skip some tests in certain condition to run with e2e image
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat (limited to 'integration-cli/docker_api_images_test.go')
-rw-r--r--integration-cli/docker_api_images_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/integration-cli/docker_api_images_test.go b/integration-cli/docker_api_images_test.go
index 7c6c235354..5e47858da6 100644
--- a/integration-cli/docker_api_images_test.go
+++ b/integration-cli/docker_api_images_test.go
@@ -115,7 +115,14 @@ func (s *DockerSuite) TestAPIImagesHistory(c *check.C) {
c.Assert(err, checker.IsNil)
c.Assert(historydata, checker.Not(checker.HasLen), 0)
- c.Assert(historydata[0].Tags[0], checker.Equals, "test-api-images-history:latest")
+ var found bool
+ for _, tag := range historydata[0].Tags {
+ if tag == "test-api-images-history:latest" {
+ found = true
+ break
+ }
+ }
+ c.Assert(found, checker.True)
}
func (s *DockerSuite) TestAPIImagesImportBadSrc(c *check.C) {