1
0
mirror of https://github.com/rancher/os.git synced 2025-06-29 08:16:49 +00:00
os/tests/docker_in_persistent_console_test.go
2016-07-26 15:40:35 -07:00

21 lines
391 B
Go

package integration
import (
"fmt"
. "gopkg.in/check.v1"
)
func (s *QemuSuite) TestRebootWithContainerRunning(c *C) {
err := s.RunQemu("--cloud-config", "./tests/assets/test_03/cloud-config.yml")
c.Assert(err, IsNil)
s.CheckCall(c, fmt.Sprintf(`
set -e -x
docker run -d --restart=always %s`, NginxImage))
s.Reboot(c)
s.CheckCall(c, "docker ps -f status=running | grep nginx")
}