1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 16:21:07 +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,14 @@
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestCustomDockerInPersistentConsole(c *C) {
err := s.RunQemu("--cloud-config", "./tests/assets/test_05/cloud-config.yml")
c.Assert(err, IsNil)
s.CheckCall(c, "curl", "-Lfo", "./docker", DockerUrl)
s.CheckCall(c, "chmod", "+x", "/home/rancher/docker")
s.CheckCall(c, "sudo", "ln", "-sf", "/home/rancher/docker", "/usr/bin/docker")
s.CheckCall(c, "sudo", "system-docker", "restart", "docker")
s.CheckCall(c, "sudo", "system-docker", "version")
}