mounts_test.go 595 B

123456789101112131415161718
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestMounts(c *C) {
  4. s.RunQemu(c, "--cloud-config", "./tests/assets/test_23/cloud-config.yml", "--second-drive")
  5. s.CheckCall(c, "cat /home/rancher/test | grep test")
  6. s.CheckCall(c, "mkdir -p /home/rancher/a /home/rancher/b /home/rancher/c")
  7. s.CheckCall(c, "sudo mkfs.ext4 /dev/vdb")
  8. s.CheckCall(c, "sudo cloud-init-execute")
  9. s.CheckCall(c, "mount | grep /home/rancher/a")
  10. s.CheckCall(c, "mount | grep /home/rancher/b")
  11. s.CheckCall(c, "mount | grep /home/rancher/c")
  12. s.CheckCall(c, "mount | grep /home/rancher/d")
  13. }