Move TestCreateNumberHostname to integration-cli

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Upstream-commit: 2c24a8a4ea7ea0571cd4e125158fa59f584d2464
Component: engine
This commit is contained in:
Brian Goff
2015-04-10 17:06:43 -04:00
parent 367b23adf0
commit a8ff8c9aa8
2 changed files with 8 additions and 12 deletions

View File

@ -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")
}