Move TestCreateNumberHostname to integration-cli
Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 2c24a8a4ea7ea0571cd4e125158fa59f584d2464 Component: engine
This commit is contained in:
@ -305,3 +305,11 @@ func TestCreateLabelFromImage(t *testing.T) {
|
||||
|
||||
logDone("create - labels from image")
|
||||
}
|
||||
|
||||
func TestCreateHostnameWithNumber(t *testing.T) {
|
||||
out, _, _ := dockerCmd(t, "run", "-h", "web.0", "busybox", "hostname")
|
||||
if strings.TrimSpace(out) != "web.0" {
|
||||
t.Fatalf("hostname not set, expected `web.0`, got: %s", out)
|
||||
}
|
||||
logDone("create - use hostname with number")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user