|
@@ -6156,7 +6156,7 @@ func (s *DockerSuite) TestBuildCopyFromPreviousFromWindows(c *check.C) {
|
|
|
func (s *DockerSuite) TestBuildCopyFromForbidWindowsSystemPaths(c *check.C) {
|
|
|
testRequires(c, DaemonIsWindows)
|
|
|
dockerfile := `
|
|
|
- FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
+ FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
COPY --from=0 %s c:\\oscopy
|
|
|
`
|
|
@@ -6173,7 +6173,7 @@ func (s *DockerSuite) TestBuildCopyFromForbidWindowsSystemPaths(c *check.C) {
|
|
|
func (s *DockerSuite) TestBuildCopyFromForbidWindowsRelativePaths(c *check.C) {
|
|
|
testRequires(c, DaemonIsWindows)
|
|
|
dockerfile := `
|
|
|
- FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
+ FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
COPY --from=0 %s c:\\oscopy
|
|
|
`
|
|
@@ -6192,7 +6192,7 @@ func (s *DockerSuite) TestBuildCopyFromWindowsIsCaseInsensitive(c *check.C) {
|
|
|
testRequires(c, DaemonIsWindows)
|
|
|
dockerfile := `
|
|
|
FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
- COPY foo /
|
|
|
+ COPY foo /
|
|
|
FROM ` + testEnv.MinimalBaseImage() + `
|
|
|
COPY --from=0 c:\\fOo c:\\copied
|
|
|
RUN type c:\\copied
|
|
@@ -6351,23 +6351,23 @@ func (s *DockerSuite) TestBuildLineErrorOnBuild(c *check.C) {
|
|
|
}
|
|
|
|
|
|
// FIXME(vdemeester) should be a unit test
|
|
|
-func (s *DockerSuite) TestBuildLineErrorUknownInstruction(c *check.C) {
|
|
|
+func (s *DockerSuite) TestBuildLineErrorUnknownInstruction(c *check.C) {
|
|
|
name := "test_build_line_error_unknown_instruction"
|
|
|
- buildImage(name, build.WithDockerfile(`FROM busybox
|
|
|
+ cli.Docker(cli.Build(name), build.WithDockerfile(`FROM busybox
|
|
|
RUN echo hello world
|
|
|
NOINSTRUCTION echo ba
|
|
|
RUN echo hello
|
|
|
ERROR
|
|
|
`)).Assert(c, icmd.Expected{
|
|
|
ExitCode: 1,
|
|
|
- Err: "Dockerfile parse error line 3: Unknown instruction: NOINSTRUCTION",
|
|
|
+ Err: "Dockerfile parse error line 3: unknown instruction: NOINSTRUCTION",
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// FIXME(vdemeester) should be a unit test
|
|
|
func (s *DockerSuite) TestBuildLineErrorWithEmptyLines(c *check.C) {
|
|
|
name := "test_build_line_error_with_empty_lines"
|
|
|
- buildImage(name, build.WithDockerfile(`
|
|
|
+ cli.Docker(cli.Build(name), build.WithDockerfile(`
|
|
|
FROM busybox
|
|
|
|
|
|
RUN echo hello world
|
|
@@ -6377,21 +6377,21 @@ func (s *DockerSuite) TestBuildLineErrorWithEmptyLines(c *check.C) {
|
|
|
CMD ["/bin/init"]
|
|
|
`)).Assert(c, icmd.Expected{
|
|
|
ExitCode: 1,
|
|
|
- Err: "Dockerfile parse error line 6: Unknown instruction: NOINSTRUCTION",
|
|
|
+ Err: "Dockerfile parse error line 6: unknown instruction: NOINSTRUCTION",
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// FIXME(vdemeester) should be a unit test
|
|
|
func (s *DockerSuite) TestBuildLineErrorWithComments(c *check.C) {
|
|
|
name := "test_build_line_error_with_comments"
|
|
|
- buildImage(name, build.WithDockerfile(`FROM busybox
|
|
|
+ cli.Docker(cli.Build(name), build.WithDockerfile(`FROM busybox
|
|
|
# This will print hello world
|
|
|
# and then ba
|
|
|
RUN echo hello world
|
|
|
NOINSTRUCTION echo ba
|
|
|
`)).Assert(c, icmd.Expected{
|
|
|
ExitCode: 1,
|
|
|
- Err: "Dockerfile parse error line 5: Unknown instruction: NOINSTRUCTION",
|
|
|
+ Err: "Dockerfile parse error line 5: unknown instruction: NOINSTRUCTION",
|
|
|
})
|
|
|
}
|
|
|
|