bad_state_test.go 512 B

12345678910111213141516
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestBadState(c *C) {
  4. err := s.RunQemu("--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE")
  5. c.Assert(err, IsNil)
  6. s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
  7. }
  8. func (s *QemuSuite) TestBadStateWithWait(c *C) {
  9. err := s.RunQemu("--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE", "--append", "rancher.state.wait")
  10. c.Assert(err, IsNil)
  11. s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
  12. }