1
0
mirror of https://github.com/rancher/os.git synced 2025-06-22 13:07:04 +00:00
os/tests/upgrade_test.go

26 lines
490 B
Go
Raw Normal View History

2016-08-28 15:58:17 +00:00
package integration
import (
"fmt"
. "gopkg.in/check.v1"
)
func (s *QemuSuite) TestUpgrade(c *C) {
2016-10-22 03:34:30 +00:00
s.RunQemuInstalled(c)
2016-08-28 15:58:17 +00:00
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))
}