bad_state_test.go 460 B

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