blob: 81cac4d958efd661b1768a328b13f0bb01073138 [file] [log] [blame]
# Copyright 2019 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""This file is a recipe demonstrating reading/mocking scheduler host."""
PYTHON_VERSION_COMPATIBILITY = 'PY2+3'
DEPS = [
'scheduler',
'step',
]
def RunSteps(api):
step_res = api.step(name='host', cmd=None)
step_res.presentation.logs['host'] = [api.scheduler.host]
def GenTests(api):
yield (
api.test('unset')
)
yield (
api.test('set') +
api.scheduler(hostname='scheduler.example.com')
)