Browse code

Remove TestContainerAPICreateWithHostName

TestNISDomainname in the integration suite covers this

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/04/20 01:55:14
Showing 1 changed files
... ...
@@ -623,29 +623,6 @@ func (s *DockerSuite) TestContainerAPICreateMultipleNetworksConfig(c *check.C) {
623 623
 	c.Assert(msg, checker.Contains, "net3")
624 624
 }
625 625
 
626
-func (s *DockerSuite) TestContainerAPICreateWithHostName(c *check.C) {
627
-	domainName := "test-domain"
628
-	hostName := "test-hostname"
629
-	config := containertypes.Config{
630
-		Image:      "busybox",
631
-		Hostname:   hostName,
632
-		Domainname: domainName,
633
-	}
634
-
635
-	cli, err := client.NewClientWithOpts(client.FromEnv)
636
-	assert.NilError(c, err)
637
-	defer cli.Close()
638
-
639
-	container, err := cli.ContainerCreate(context.Background(), &config, &containertypes.HostConfig{}, &networktypes.NetworkingConfig{}, "")
640
-	assert.NilError(c, err)
641
-
642
-	containerJSON, err := cli.ContainerInspect(context.Background(), container.ID)
643
-	assert.NilError(c, err)
644
-
645
-	c.Assert(containerJSON.Config.Hostname, checker.Equals, hostName, check.Commentf("Mismatched Hostname"))
646
-	c.Assert(containerJSON.Config.Domainname, checker.Equals, domainName, check.Commentf("Mismatched Domainname"))
647
-}
648
-
649 626
 func (s *DockerSuite) TestContainerAPICreateBridgeNetworkMode(c *check.C) {
650 627
 	// Windows does not support bridge
651 628
 	testRequires(c, DaemonIsLinux)