diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-02-13 11:36:19 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-02-13 11:36:19 +0000 |
commit | a5c6b0638654cebe226aa1442fb3f73dac718108 (patch) | |
tree | 10e3eac7de660b2239f421c190853c639b08fecb | |
parent | 43960c5e6c530a338818576070694a4be0a7a7c1 (diff) | |
download | system-tests-pedroalvarez/rollback-upgrade.tar.gz |
Add rollback testpedroalvarez/rollback-upgrade
-rw-r--r-- | test_trove_upgrades.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test_trove_upgrades.py b/test_trove_upgrades.py index 61af7c9..a3d0882 100644 --- a/test_trove_upgrades.py +++ b/test_trove_upgrades.py @@ -563,8 +563,21 @@ class TestUpgrades(BaseTestSuite): self.wait_for_machine_to_boot(instance) new_lighttpd_output = remote_runcmd(test_url, ['lighttpd', '-v']) + + try: + remote_runcmd(test_url, + ['snapshot-mgr', 'set-default', 'factory']) + remote_runcmd(test_url, ['reboot']) + except cliapp.AppException: + # Same hack as above. + pass + + self.wait_for_machine_to_boot(instance) + rollback_lighttpd_output = remote_runcmd(test_url, ['lighttpd', '-v']) + print "OLD Lighttpd outout: %s" % old_lighttpd_output print "NEW Lighttpd outout: %s" % new_lighttpd_output + print "RBK Lighttpd output: %s" % rollback_lighttpd_output # We have a machine! # Initial tests to run: |