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:
14
tests/custom_docker_in_persistent_console_test.go
Normal file
14
tests/custom_docker_in_persistent_console_test.go
Normal 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")
|
||||
}
|
Reference in New Issue
Block a user