summaryrefslogtreecommitdiffstats
path: root/tests/main.py
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-05-16 15:46:04 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-07-07 14:34:23 +0800
commit7e0ab6e2149df22455e58eb363eb291a985514de (patch)
treeaf1ec5147e88240aba6eb8edbb590ed451074edf /tests/main.py
parent183dee7dc0d1c5086ad5d919b7eba955d1d011e9 (diff)
add create alarm
JIRA: DOCTOR-93 Change-Id: I316608c9627ff38e55154257b798244de3f221c5 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/main.py')
-rw-r--r--tests/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/main.py b/tests/main.py
index 540a9244..45683d1e 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -10,6 +10,7 @@ import os
from os.path import isfile, join
import sys
+from alarm import Alarm
import config
from image import Image
from instance import Instance
@@ -28,6 +29,7 @@ class DoctorTest(object):
self.user = User(self.conf, LOG)
self.network = Network(self.conf, LOG)
self.instance = Instance(self.conf, LOG)
+ self.alarm = Alarm(self.conf, LOG)
def setup(self):
# prepare the cloud env
@@ -44,6 +46,9 @@ class DoctorTest(object):
self.instance.create()
self.instance.wait_for_vm_launch()
+ # creating alarm...
+ self.alarm.create()
+
def run(self):
"""run doctor test"""
try:
@@ -62,6 +67,7 @@ class DoctorTest(object):
self.cleanup()
def cleanup(self):
+ self.alarm.delete()
self.instance.delete()
self.network.delete()
self.image.delete()