boot2docker_autoformat_test.go 1015 B

123456789101112131415161718192021222324252627
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. // NOTE: the boot2docker magic string/tar file is also used by Docker-machine
  4. func (s *QemuSuite) TestBoot2DockerState(c *C) {
  5. s.RunQemu(c, "--fresh", "--b2d")
  6. s.CheckCall(c, "blkid | grep B2D_STATE")
  7. // And once I make run create a tar file, check that its untarred in the docker user's home dir
  8. // And confirm if it should add to the dir, or replace, i can't remember
  9. }
  10. func (s *QemuSuite) TestIsoBoot2DockerState(c *C) {
  11. s.RunQemu(c, "--fresh", "--b2d", "--iso")
  12. s.CheckCall(c, "blkid | grep B2D_STATE")
  13. s.CheckCall(c, "sudo ros config get rancher.state.dev | grep LABEL=B2D_STATE")
  14. s.CheckCall(c, "sudo ros config get rancher.state.autoformat | grep vda")
  15. // And once I make run create a tar file, check that its untarred in the docker user's home dir
  16. // And confirm if it should add to the dir, or replace, i can't remember
  17. }
  18. func (s *QemuSuite) TestRancherOSState(c *C) {
  19. s.RunQemu(c, "--fresh")
  20. s.CheckCall(c, "blkid | grep RANCHER_STATE")
  21. }