From a5c6b0638654cebe226aa1442fb3f73dac718108 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 13 Feb 2014 11:36:19 +0000 Subject: Add rollback test --- test_trove_upgrades.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: -- cgit v1.2.1