summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-02-13 11:36:19 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-02-13 18:30:03 +0000
commit9f3447c914b876660311e369a6e88541a3e57136 (patch)
tree9c642c890cc6d59fa7d8d51db16efa9d3c9eda1c
parent5f23cd9a5605d39d540a6e4e1083ef71f9a67fc2 (diff)
downloadsystem-tests-9f3447c914b876660311e369a6e88541a3e57136.tar.gz
Add rollback test
-rw-r--r--test_trove_upgrades.py13
1 files changed, 13 insertions, 0 deletions
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: