From 29dc50deee6009053069e3aec6fa75eeffb4086e Mon Sep 17 00:00:00 2001
From: licanwei
Date: Mon, 3 Sep 2018 11:32:45 +0800
Subject: [PATCH] Add applier tests in test_service.py
Change-Id: Ided43d6a208c1deb7087a5ad903136d0f82301f1
---
watcher_tempest_plugin/tests/api/admin/test_service.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/watcher_tempest_plugin/tests/api/admin/test_service.py b/watcher_tempest_plugin/tests/api/admin/test_service.py
index 948d8b1..12d296c 100644
--- a/watcher_tempest_plugin/tests/api/admin/test_service.py
+++ b/watcher_tempest_plugin/tests/api/admin/test_service.py
@@ -43,7 +43,8 @@ class TestShowListService(base.BaseInfraOptimTest):
services = body['services']
self.assertIn(self.DECISION_ENGINE,
[i['name'] for i in body['services']])
-
+ self.assertIn(self.APPLIER,
+ [i['name'] for i in body['services']])
service_id = filter(lambda x: self.DECISION_ENGINE == x['name'],
services)[0]['id']
_, service = self.client.show_service(service_id)
@@ -60,7 +61,8 @@ class TestShowListService(base.BaseInfraOptimTest):
services = body['services']
self.assertIn(self.DECISION_ENGINE,
[i['name'] for i in body['services']])
-
+ self.assertIn(self.APPLIER,
+ [i['name'] for i in body['services']])
service_id = filter(lambda x: self.DECISION_ENGINE == x['name'],
services)[0]['id']
_, service = self.client.show_service(service_id)
@@ -77,7 +79,8 @@ class TestShowListService(base.BaseInfraOptimTest):
services = body['services']
self.assertIn(self.DECISION_ENGINE,
[i['name'] for i in body['services']])
-
+ self.assertIn(self.APPLIER,
+ [i['name'] for i in body['services']])
for service in services:
self.assertTrue(
all(val is not None for key, val in service.items()