1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Move env build test to integration-cli

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
LK4D4
2014-05-26 23:09:33 +04:00
committed by Alexandr Morozov
parent 40630ce4b6
commit b05be686ec
2 changed files with 15 additions and 22 deletions

View File

@ -496,6 +496,21 @@ func TestBuildRelativeWorkdir(t *testing.T) {
logDone("build - relative workdir")
}
func TestBuildEnv(t *testing.T) {
checkSimpleBuild(t,
`
FROM busybox
ENV PORT 4243
RUN [ $(env | grep PORT) = 'PORT=4243' ]
`,
"testbuildimg",
"{{json .config.Env}}",
`["HOME=/","PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","PORT=4243"]`)
deleteImages("testbuildimg")
logDone("build - env")
}
// TODO: TestCaching
// TODO: TestADDCacheInvalidation