1
0
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:
Josh Curl
2016-07-20 10:42:16 -07:00
parent 128c228ff5
commit 0c7fb4f1f9
75 changed files with 545 additions and 938 deletions

View 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")
}