blob: 35535cd038216f7fab8c689ef184ba15b4a23551 [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."""
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')
)