mirror of
https://github.com/rancher/os.git
synced 2025-09-05 08:42:38 +00:00
Refactor integration tests
This commit is contained in:
20
tests/docker_in_persistent_console_test.go
Normal file
20
tests/docker_in_persistent_console_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
|
||||
s.CheckCall(c, "docker ps -f status=running | grep nginx")
|
||||
}
|
Reference in New Issue
Block a user