1
0
mirror of https://github.com/rancher/os.git synced 2025-06-26 15:01:34 +00:00
os/tests/upgrade_test.go
Sven Dowideit 4f1418d3ba disable the old upgrade test - it can't work as things are
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-16 13:04:58 +10:00

30 lines
807 B
Go

package integration
import (
"fmt"
. "gopkg.in/check.v1"
)
// DisabledTestUpgrade, The new go based installer code breaks downgrading from itself to a previous version
// because 0.8.0 now uses syslinx and a set of syslinux.cfg files, whereas before that , we used grub and
// assumed that there was only one kernel&initrd
// see installer_test.go for more tests
func (s *QemuSuite) DisabledTestUpgrade(c *C) {
s.RunQemuInstalled(c)
s.CheckCall(c, `
set -ex
sudo ros os upgrade -i rancher/os:v0.5.0 --force --no-reboot`)
s.Reboot(c)
s.CheckCall(c, "sudo ros -v | grep v0.5.0")
s.LoadInstallerImage(c)
s.CheckCall(c, fmt.Sprintf("sudo ros os upgrade -i rancher/os:%s%s --force --no-reboot", Version, Suffix))
s.Reboot(c)
s.CheckCall(c, fmt.Sprintf("sudo ros -v | grep %s", Version))
}