From a076c21e0c04ba8165bff30a7abb0745d7b71270 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Thu, 8 Feb 2018 00:21:29 +0000 Subject: [PATCH] Remove integration-cli/docker_cli_create_unix_test.go Signed-off-by: Yong Tang Upstream-commit: 8331a1a5cf1f7f751fdb011cb9e1aa4b0642c1e5 Component: engine --- .../docker_cli_create_unix_test.go | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 components/engine/integration-cli/docker_cli_create_unix_test.go diff --git a/components/engine/integration-cli/docker_cli_create_unix_test.go b/components/engine/integration-cli/docker_cli_create_unix_test.go deleted file mode 100644 index 1b0bb4a3dc..0000000000 --- a/components/engine/integration-cli/docker_cli_create_unix_test.go +++ /dev/null @@ -1,43 +0,0 @@ -// +build !windows - -package main - -import ( - "strings" - - "github.com/go-check/check" -) - -// Test case for #30166 (target was not validated) -func (s *DockerSuite) TestCreateTmpfsMountsTarget(c *check.C) { - testRequires(c, DaemonIsLinux) - type testCase struct { - target string - expectedError string - } - cases := []testCase{ - { - target: ".", - expectedError: "mount path must be absolute", - }, - { - target: "foo", - expectedError: "mount path must be absolute", - }, - { - target: "/", - expectedError: "destination can't be '/'", - }, - { - target: "//", - expectedError: "destination can't be '/'", - }, - } - for _, x := range cases { - out, _, _ := dockerCmdWithError("create", "--tmpfs", x.target, "busybox", "sh") - if x.expectedError != "" && !strings.Contains(out, x.expectedError) { - c.Fatalf("mounting tmpfs over %q should fail with %q, but got %q", - x.target, x.expectedError, out) - } - } -}