mirror of
https://github.com/rancher/os.git
synced 2025-06-24 22:11:33 +00:00
16 lines
512 B
Go
16 lines
512 B
Go
|
package integration
|
||
|
|
||
|
import . "gopkg.in/check.v1"
|
||
|
|
||
|
func (s *QemuSuite) TestBadState(c *C) {
|
||
|
err := s.RunQemu("--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE")
|
||
|
c.Assert(err, IsNil)
|
||
|
s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
|
||
|
}
|
||
|
|
||
|
func (s *QemuSuite) TestBadStateWithWait(c *C) {
|
||
|
err := s.RunQemu("--no-format", "--append", "rancher.state.dev=LABEL=BAD_STATE", "--append", "rancher.state.wait")
|
||
|
c.Assert(err, IsNil)
|
||
|
s.CheckCall(c, "mount | grep /var/lib/docker | grep rootfs")
|
||
|
}
|