Merge "New plugin type - Hook"

This commit is contained in:
Jenkins 2016-09-16 19:20:37 +00:00 committed by Gerrit Code Review
commit ea43123c2d
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):