mirror of
https://github.com/moby/moby.git
synced 2025-07-29 07:21:35 +03:00
Move expose build test to integration-cli
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
This commit is contained in:
@ -525,6 +525,21 @@ func TestBuildCmd(t *testing.T) {
|
||||
logDone("build - cmd")
|
||||
}
|
||||
|
||||
func TestBuildExpose(t *testing.T) {
|
||||
checkSimpleBuild(t,
|
||||
`
|
||||
FROM scratch
|
||||
EXPOSE 4243
|
||||
`,
|
||||
|
||||
"testbuildimg",
|
||||
"{{json .config.ExposedPorts}}",
|
||||
`{"4243/tcp":{}}`)
|
||||
|
||||
deleteImages("testbuildimg")
|
||||
logDone("build - expose")
|
||||
}
|
||||
|
||||
// TODO: TestCaching
|
||||
|
||||
// TODO: TestADDCacheInvalidation
|
||||
|
Reference in New Issue
Block a user