fix multinode tempest test failure

fix all five tempest tests:
watcher_tempest_plugin.tests.api.admin.test_service.
TestShowListService.test_show_service

watcher_tempest_plugin.tests.api.admin.test_service.
TestShowListService.test_show_service_with_links

tearDownClass (watcher_tempest_plugin.tests.api.admin.
test_action_plan.TestCreateDeleteExecuteActionPlan)

watcher_tempest_plugin.tests.scenario.test_execute_basic_optim
.TestExecuteBasicStrategy.test_execute_basic_action_plan

watcher_tempest_plugin.tests.scenario.test_execute_workload_balancing
.TestExecuteWorkloadBalancingStrategy
.test_execute_workload_stabilization

Change-Id: I4d8945cf2dedea3fa32029d6c07d24a411c1f2e4
Closes-Bug: #1695225
This commit is contained in:
licanwei
2017-06-05 11:40:05 +08:00
parent b4b3856f14
commit 65c63a9351
5 changed files with 46 additions and 17 deletions

View File

@@ -124,7 +124,8 @@ class TestShowListActionPlan(base.BaseInfraOptimTest):
)
_, action_plans = cls.client.list_action_plans(
audit_uuid=cls.audit['uuid'])
cls.action_plan = action_plans['action_plans'][0]
if len(action_plans['action_plans']) > 0:
cls.action_plan = action_plans['action_plans'][0]
@decorators.attr(type='smoke')
def test_show_action_plan(self):