mirror of
https://github.com/rancher/os.git
synced 2025-06-26 06:51:40 +00:00
13 lines
344 B
Go
13 lines
344 B
Go
package integration
|
|
|
|
import . "gopkg.in/check.v1"
|
|
|
|
func (s *QemuSuite) TestSwap(c *C) {
|
|
err := s.RunQemu("--cloud-config", "./tests/assets/test_21/cloud-config.yml", "--second-drive")
|
|
c.Assert(err, IsNil)
|
|
|
|
s.CheckCall(c, "sudo mkswap /dev/vdb")
|
|
s.CheckCall(c, "sudo cloud-init-execute")
|
|
s.CheckCall(c, "cat /proc/swaps | grep /dev/vdb")
|
|
}
|