Delete project after stopping Inspector 31/39431/1
authorCarlos Goncalves <carlos.goncalves@neclab.eu>
Wed, 16 Aug 2017 13:32:56 +0000 (15:32 +0200)
committerCarlos Goncalves <carlos.goncalves@neclab.eu>
Wed, 16 Aug 2017 13:39:19 +0000 (15:39 +0200)
At cleanup phase, the sample Inspector fails to re-enable the state of
the compute services. Such happens because the novaclient instance it's
using is bound to the 'doctor' project, which has just been deleted at
user.delete(). Thus, it is necessary to postpone the deletion of the
project after stopping the inspector.

Change-Id: I8cd5885cdfd3671a6c28342bdee65eac64dafaa8
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
tests/main.py

index b360f12..db2fafd 100644 (file)
@@ -90,8 +90,8 @@ class DoctorTest(object):
         self.instance.delete()
         self.network.delete()
         self.image.delete()
-        self.user.delete()
         self.inspector.stop()
+        self.user.delete()
         self.monitor.stop()
         self.consumer.stop()
         self.installer.cleanup()