mirror of
https://github.com/rancher/os.git
synced 2025-09-13 13:39:53 +00:00
Extend write_files to run in all system services
This commit is contained in:
13
tests/write_files_test.go
Normal file
13
tests/write_files_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package integration
|
||||
|
||||
import . "gopkg.in/check.v1"
|
||||
|
||||
func (s *QemuSuite) TestWriteFiles(c *C) {
|
||||
err := s.RunQemu("--cloud-config", "./tests/assets/test_23/cloud-config.yml")
|
||||
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'")
|
||||
}
|
Reference in New Issue
Block a user