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

Move user 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-25 22:28:14 +04:00
committed by Alexandr Morozov
parent 3dd4c5f499
commit 360fb3d4ea
2 changed files with 16 additions and 14 deletions

View File

@ -460,6 +460,22 @@ func TestBuildMaintainer(t *testing.T) {
logDone("build - maintainer")
}
func TestBuildUser(t *testing.T) {
checkSimpleBuild(t,
`
FROM busybox
RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd
USER dockerio
RUN [ $(whoami) = 'dockerio' ]
`,
"testbuildimg",
"{{json .config.User}}",
`"dockerio"`)
deleteImages("testbuildimg")
logDone("build - user")
}
// TODO: TestCaching
// TODO: TestADDCacheInvalidation