From 9f3447c914b876660311e369a6e88541a3e57136 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(+) (limited to 'test_trove_upgrades.py') diff --git a/test_trove_upgrades.py b/test_trove_upgrades.py index d5cf31e..b18eb93 100644 --- a/test_trove_upgrades.py +++ b/test_trove_upgrades.py @@ -571,8 +571,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