write_files_test.go 479 B

1234567891011121314
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestWriteFiles(c *C) {
  4. err := s.RunQemu("--cloud-config", "./tests/assets/test_24/cloud-config.yml")
  5. c.Assert(err, IsNil)
  6. s.CheckCall(c, "sudo cat /test | grep 'console content'")
  7. s.CheckCall(c, "sudo cat /test2 | grep 'console content'")
  8. s.CheckCall(c, "sudo system-docker exec ntp cat /test | grep 'ntp content'")
  9. s.CheckCall(c, "sudo system-docker exec syslog cat /test | grep 'syslog content'")
  10. }