2016-08-15 02:17:24 +00:00
|
|
|
package integration
|
|
|
|
|
|
|
|
import . "gopkg.in/check.v1"
|
|
|
|
|
|
|
|
func (s *QemuSuite) TestWriteFiles(c *C) {
|
2016-08-15 20:01:40 +00:00
|
|
|
err := s.RunQemu("--cloud-config", "./tests/assets/test_24/cloud-config.yml")
|
2016-08-15 02:17:24 +00:00
|
|
|
c.Assert(err, IsNil)
|
|
|
|
|
|
|
|
s.CheckCall(c, "sudo cat /test | grep 'console content'")
|
|
|
|
s.CheckCall(c, "sudo cat /test2 | grep 'console content'")
|
|
|
|
s.CheckCall(c, "sudo system-docker exec ntp cat /test | grep 'ntp content'")
|
|
|
|
s.CheckCall(c, "sudo system-docker exec syslog cat /test | grep 'syslog content'")
|
|
|
|
}
|