Added Tempest API tests for /scoring_engines

In this changeset, I added tempest tests for the scoring engine
endpoint.

Change-Id: I7f36250eb9df437b518d20fd4f2e1feb223f3c82
This commit is contained in:
Vincent Françoise
2016-09-16 15:51:09 +02:00
committed by Atul Pandey
parent ff81f237a7
commit 090d5d1f1e
3 changed files with 92 additions and 1 deletions

View File

@@ -280,6 +280,27 @@ class InfraOptimClientJSON(base.BaseInfraOptimClient):
"""
return self._show_request('/strategies', strategy)
# ### SCORING ENGINE ### #
@base.handle_errors
def list_scoring_engines(self, **kwargs):
"""List all existing scoring_engines"""
return self._list_request('/scoring_engines', **kwargs)
@base.handle_errors
def list_scoring_engines_detail(self, **kwargs):
"""Lists details of all existing scoring_engines"""
return self._list_request('/scoring_engines/detail', **kwargs)
@base.handle_errors
def show_scoring_engine(self, scoring_engine):
"""Gets a specific scoring_engine
:param scoring_engine: UUID or Name of the scoring_engine
:return: Serialized scoring_engine as a dictionary
"""
return self._show_request('/scoring_engines', scoring_engine)
# ### SERVICES ### #
@base.handle_errors