mounts_test.go 573 B

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