Signed-off-by: Tibor Vass <tibor@docker.com>
| ... | ... |
@@ -1081,8 +1081,8 @@ func (s *DockerSuite) TestBuildWithInaccessibleFilesInContext(c *check.C) {
|
| 1081 | 1081 |
c.Fatalf("output should've contained the string: no permission to read from but contained: %s", result.Combined())
|
| 1082 | 1082 |
} |
| 1083 | 1083 |
|
| 1084 |
- if !strings.Contains(result.Combined(), "Error checking context") {
|
|
| 1085 |
- c.Fatalf("output should've contained the string: Error checking context")
|
|
| 1084 |
+ if !strings.Contains(result.Combined(), "error checking context") {
|
|
| 1085 |
+ c.Fatalf("output should've contained the string: error checking context")
|
|
| 1086 | 1086 |
} |
| 1087 | 1087 |
} |
| 1088 | 1088 |
{
|
| ... | ... |
@@ -1119,8 +1119,8 @@ func (s *DockerSuite) TestBuildWithInaccessibleFilesInContext(c *check.C) {
|
| 1119 | 1119 |
c.Fatalf("output should've contained the string: can't access %s", result.Combined())
|
| 1120 | 1120 |
} |
| 1121 | 1121 |
|
| 1122 |
- if !strings.Contains(result.Combined(), "Error checking context") {
|
|
| 1123 |
- c.Fatalf("output should've contained the string: Error checking context\ngot:%s", result.Combined())
|
|
| 1122 |
+ if !strings.Contains(result.Combined(), "error checking context") {
|
|
| 1123 |
+ c.Fatalf("output should've contained the string: error checking context\ngot:%s", result.Combined())
|
|
| 1124 | 1124 |
} |
| 1125 | 1125 |
|
| 1126 | 1126 |
} |
| ... | ... |
@@ -2509,7 +2509,7 @@ func (s *DockerSuite) TestBuildDockerignoringBadExclusion(c *check.C) {
|
| 2509 | 2509 |
build.WithFile(".dockerignore", "!\n"),
|
| 2510 | 2510 |
)).Assert(c, icmd.Expected{
|
| 2511 | 2511 |
ExitCode: 1, |
| 2512 |
- Err: "Error checking context: 'illegal exclusion pattern: \"!\"", |
|
| 2512 |
+ Err: "error checking context: 'illegal exclusion pattern: \"!\"", |
|
| 2513 | 2513 |
}) |
| 2514 | 2514 |
} |
| 2515 | 2515 |
|
| ... | ... |
@@ -3693,7 +3693,7 @@ func (s *DockerSuite) TestBuildRenamedDockerfile(c *check.C) {
|
| 3693 | 3693 |
} |
| 3694 | 3694 |
cli.Docker(cli.Args("build", fmt.Sprintf("--file=%s", nonDockerfileFile), "-t", "test5", "."), cli.InDir(ctx.Dir)).Assert(c, icmd.Expected{
|
| 3695 | 3695 |
ExitCode: 1, |
| 3696 |
- Err: fmt.Sprintf("The Dockerfile (%s) must be within the build context (.)", nonDockerfileFile),
|
|
| 3696 |
+ Err: fmt.Sprintf("unable to prepare context: the Dockerfile (%s) must be within the build context", nonDockerfileFile),
|
|
| 3697 | 3697 |
}) |
| 3698 | 3698 |
|
| 3699 | 3699 |
cli.Docker(cli.Args("build", "-f", filepath.Join("..", "Dockerfile"), "-t", "test6", ".."), cli.InDir(filepath.Join(ctx.Dir, "files"))).Assert(c, icmd.Expected{
|
| ... | ... |
@@ -67,7 +67,7 @@ func (s *DockerSuite) TestSaveAndLoadRepoStdout(c *check.C) {
|
| 67 | 67 |
|
| 68 | 68 |
n, err := pty.Read(buf) |
| 69 | 69 |
c.Assert(err, check.IsNil) //could not read tty output |
| 70 |
- c.Assert(string(buf[:n]), checker.Contains, "Cowardly refusing", check.Commentf("help output is not being yielded"))
|
|
| 70 |
+ c.Assert(string(buf[:n]), checker.Contains, "cowardly refusing", check.Commentf("help output is not being yielded"))
|
|
| 71 | 71 |
} |
| 72 | 72 |
|
| 73 | 73 |
func (s *DockerSuite) TestSaveAndLoadWithProgressBar(c *check.C) {
|
| ... | ... |
@@ -159,7 +159,7 @@ func (s *DockerSuite) TestStartAttachMultipleContainers(c *check.C) {
|
| 159 | 159 |
// err shouldn't be nil because start will fail |
| 160 | 160 |
c.Assert(err, checker.NotNil, check.Commentf("out: %s", out))
|
| 161 | 161 |
// output does not correspond to what was expected |
| 162 |
- c.Assert(out, checker.Contains, "You cannot start and attach multiple containers at once.") |
|
| 162 |
+ c.Assert(out, checker.Contains, "you cannot start and attach multiple containers at once") |
|
| 163 | 163 |
} |
| 164 | 164 |
|
| 165 | 165 |
// confirm the state of all the containers be stopped |