summaryrefslogtreecommitdiff
path: root/integration-cli/docker_api_build_test.go
diff options
context:
space:
mode:
authorAnda Xu <anda.xu@docker.com>2018-05-04 14:15:00 -0700
committerAnda Xu <anda.xu@docker.com>2018-05-15 16:05:04 -0700
commite440831802a500b28ecf16c2627a294dc31dfeb9 (patch)
treec707d2be932227f5e26509485fda84fedc44da2d /integration-cli/docker_api_build_test.go
parent85a8252c47538ac90c30090574b6e9f1795bb6b7 (diff)
downloaddocker-e440831802a500b28ecf16c2627a294dc31dfeb9.tar.gz
fix and skip some tests based on API version
Signed-off-by: Anda Xu <anda.xu@docker.com> Co-authored-by: Anda Xu <anda.xu@docker.com> Co-authored-by: Tibor Vass <tibor@docker.com>
Diffstat (limited to 'integration-cli/docker_api_build_test.go')
-rw-r--r--integration-cli/docker_api_build_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integration-cli/docker_api_build_test.go b/integration-cli/docker_api_build_test.go
index e2c4780274..594185f14d 100644
--- a/integration-cli/docker_api_build_test.go
+++ b/integration-cli/docker_api_build_test.go
@@ -406,7 +406,8 @@ func (s *DockerSuite) TestBuildAddRemoteNoDecompress(c *check.C) {
}
func (s *DockerSuite) TestBuildChownOnCopy(c *check.C) {
- testRequires(c, DaemonIsLinux)
+ // new feature added in 1.31 - https://github.com/moby/moby/pull/34263
+ testRequires(c, DaemonIsLinux, MinimumAPIVersion("1.31"))
dockerfile := `FROM busybox
RUN echo 'test1:x:1001:1001::/bin:/bin/false' >> /etc/passwd
RUN echo 'test1:x:1001:' >> /etc/group