cloud_config_hostname_test.go 309 B

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