blob: b50ed1c11e346b99843a61f472057fbd371f47b1 [file] [log] [blame]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'recipe_engine/context',
'recipe_engine/path',
'recipe_engine/raw_io',
'recipe_engine/step',
'kubectl',
]
def RunSteps(api):
api.kubectl._ensure()
version = api.kubectl.version
if version:
api.step('log version', cmd=None).presentation.step_text = version
def GenTests(api):
yield api.test('example')
yield api.test('override version') + api.override_step_data(
'retrieve kubectl version', api.raw_io.stream_output('Foo: bar'))