123456789101112131415161718192021222324252627 |
- package integration
- import (
- "fmt"
- . "gopkg.in/check.v1"
- )
- func (s *QemuSuite) TestUpgrade(c *C) {
- err := s.RunQemuInstalled()
- c.Assert(err, IsNil)
- 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))
- }
|