From 4639f15e6db2f1480b41f6fbfd11d70312d4e421 Mon Sep 17 00:00:00 2001 From: Tomi Juvonen Date: Thu, 8 Mar 2018 07:13:36 +0200 Subject: Add maintenance test code -Add sample admin_tool -Add sample app_manager -Modify sample inspector JIRA: DOCTOR-106 Change-Id: I52cffecaa88452ce5e7cc6487534c88fcfd378ad Signed-off-by: Tomi Juvonen --- doctor_tests/main.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'doctor_tests/main.py') diff --git a/doctor_tests/main.py b/doctor_tests/main.py index 2a8abda7..438d8324 100644 --- a/doctor_tests/main.py +++ b/doctor_tests/main.py @@ -100,11 +100,20 @@ class DoctorTest(object): return try: LOG.info('doctor maintenance test starting.......') - - maintenance = Maintenance(self.conf, LOG) + trasport_url = self.installer.get_transport_url() + maintenance = Maintenance(trasport_url, self.conf, LOG) maintenance.setup_maintenance(self.user) - # TODO (tojuvone) actual test + # wait for aodh alarms are updated in caches for event evaluator, + # sleep time should be larger than event_alarm_cache_ttl + # (default 60) + LOG.info('wait aodh for 120s.......') + time.sleep(120) + + session_id = maintenance.start_maintenance() + maintenance.wait_maintenance_complete(session_id) + + LOG.info('doctor maintenance complete.......') except Exception as e: LOG.error('doctor maintenance test failed, Exception=%s' % e) -- cgit 1.2.3-korg