dhcp_hostname_test.go 300 B

123456789101112
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestDhcpHostname(c *C) {
  4. err := s.RunQemu("--cloud-config", "./tests/assets/test_12/cloud-config.yml")
  5. c.Assert(err, IsNil)
  6. s.CheckCall(c, "hostname | grep rancher-dev")
  7. s.CheckCall(c, "cat /etc/hosts | grep rancher-dev")
  8. }