QA fix: TestInstanceExportWithRemove() updates configuration
authorBernardo Dal Seno <bdalseno@google.com>
Sat, 26 Jan 2013 02:38:10 +0000 (03:38 +0100)
committerBernardo Dal Seno <bdalseno@google.com>
Fri, 1 Feb 2013 10:20:11 +0000 (11:20 +0100)
When the instance is removed from the cluster by this test, it's also freed
in the QA configuration.

Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

qa/qa_instance.py

index b604d97..c01fb05 100644 (file)
@@ -1,7 +1,7 @@
 #
 #
 
-# Copyright (C) 2007, 2011, 2012 Google Inc.
+# Copyright (C) 2007, 2011, 2012, 2013 Google Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -620,6 +620,7 @@ def TestInstanceExportWithRemove(instance, node):
   """gnt-backup export --remove-instance"""
   AssertCommand(["gnt-backup", "export", "-n", node["primary"],
                  "--remove-instance", instance["name"]])
+  qa_config.ReleaseInstance(instance)
 
 
 @InstanceCheck(INST_UP, INST_UP, FIRST_ARG)