New plugin type - Hook

- Added Hook Base class
- Added HookExecuter

implements spec: hook_section

Change-Id: Ib72247c412ba06ec107b2635c79ce109bef83f16
This commit is contained in:
Anton Studenov 2016-09-16 12:29:25 +03:00
parent d3c972191e
commit 611db08eac
2 changed files with 12 additions and 0 deletions

View File

@ -181,6 +181,14 @@ class _ServiceType(utils.ImmutableMixin, utils.EnumMixin):
return self.__names[service_type]
class _HookStatus(utils.ImmutableMixin, utils.EnumMixin):
"""Hook result statuses."""
UNKNOWN = "n/a"
SUCCESS = "success"
FAILED = "failed"
VALIDATION_FAILED = "validation_failed"
TaskStatus = _TaskStatus()
DeployStatus = _DeployStatus()
EndpointPermission = _EndpointPermission()
@ -189,3 +197,4 @@ Service = _Service()
EndpointType = _EndpointType()
TempestTestsAPI = _TempestTestsAPI()
TempestTestsSets = _TempestTestsSets()
HookStatus = _HookStatus()

View File

@ -1713,6 +1713,9 @@ class FakeTimer(rally_utils.Timer):
def timestamp(self):
return 0
def finish_timestamp(self):
return 3
@context.configure(name="fake", order=1)
class FakeContext(context.Context):