mirror of
https://github.com/rancher/os.git
synced 2025-06-23 21:47:03 +00:00
12 lines
300 B
Go
12 lines
300 B
Go
|
package integration
|
||
|
|
||
|
import . "gopkg.in/check.v1"
|
||
|
|
||
|
func (s *QemuSuite) TestDhcpHostname(c *C) {
|
||
|
err := s.RunQemu("--cloud-config", "./tests/assets/test_12/cloud-config.yml")
|
||
|
c.Assert(err, IsNil)
|
||
|
|
||
|
s.CheckCall(c, "hostname | grep rancher-dev")
|
||
|
s.CheckCall(c, "cat /etc/hosts | grep rancher-dev")
|
||
|
}
|