Move entrypoint build test to integration-cli

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
Alexandr Morozov 2014-05-27 08:36:00 +04:00 committed by Alexandr Morozov
parent 81d1641139
commit b25a9b7138
2 changed files with 14 additions and 16 deletions

View File

@ -540,6 +540,20 @@ func TestBuildExpose(t *testing.T) {
logDone("build - expose")
}
func TestBuildEntrypoint(t *testing.T) {
checkSimpleBuild(t,
`
FROM scratch
ENTRYPOINT ["/bin/echo"]
`,
"testbuildimg",
"{{json .config.Entrypoint}}",
`["/bin/echo"]`)
deleteImages("testbuildimg")
logDone("build - entrypoint")
}
// TODO: TestCaching
// TODO: TestADDCacheInvalidation

View File

@ -414,22 +414,6 @@ func buildImage(context testContextTemplate, t *testing.T, eng *engine.Engine, u
return image, err
}
func TestBuildEntrypoint(t *testing.T) {
img, err := buildImage(testContextTemplate{`
from {IMAGE}
entrypoint ["/bin/echo"]
`,
nil, nil}, t, nil, true)
if err != nil {
t.Fatal(err)
}
if img.Config.Entrypoint[0] != "/bin/echo" {
t.Log(img.Config.Entrypoint[0])
t.Fail()
}
}
// testing #1405 - config.Cmd does not get cleaned up if
// utilizing cache
func TestBuildEntrypointRunCleanup(t *testing.T) {