mirror of
https://github.com/rancher/os.git
synced 2025-06-29 08:16:49 +00:00
21 lines
391 B
Go
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")
|
|
}
|