swap_test.go 318 B

123456789101112
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestSwap(c *C) {
  4. s.RunQemu(c, "--cloud-config", "./tests/assets/test_21/cloud-config.yml", "--second-drive")
  5. s.CheckCall(c, "sudo mkswap /dev/vdb")
  6. s.CheckCall(c, "sudo cloud-init-execute")
  7. s.CheckCall(c, "cat /proc/swaps | grep /dev/vdb")
  8. }