1
0
mirror of https://github.com/rancher/os.git synced 2025-06-25 22:41:36 +00:00
os/tests/installer_test.go
Sven Dowideit cc78ff7bd1 make the iso run also get the ssh and cloud-init so testing the installer is easier
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:40:16 +00:00

30 lines
625 B
Go

package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestInstall(c *C) {
// ./scripts/run --no-format --append "rancher.debug=true" --iso --fresh
runArgs := []string{
"--iso",
"--fresh",
"--no-format",
"--append", "rancher.debug=true",
}
s.RunQemuWith(c, runArgs...)
s.CheckCall(c, `
set -ex
sudo ros install --force --no-reboot --device /dev/vda`)
s.Stop(c)
// ./scripts/run --no-format --append "rancher.debug=true"
runArgs = []string{
"--no-format",
"--append", "rancher.debug=true",
}
s.RunQemuWith(c, runArgs...)
s.CheckCall(c, "sudo ros -v")
}