blob: 6bd5c1718750fdf641918150af3b7ffda3f903d6 [file] [log] [blame]
# Copyright 2017 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 = [
'gatekeeper',
]
def RunSteps(api):
api.gatekeeper.set_config('basic')
api.gatekeeper(
api.package_repo_resource('scripts', 'slave', 'gatekeeper.json'),
api.package_repo_resource('scripts', 'slave', 'gatekeeper_trees.json'))
def GenTests(api):
yield (
api.test('basic')
+ api.step_data(
'reading gatekeeper_trees.json',
api.gatekeeper.fake_test_data(),
)
)
yield (
api.test('keep_going')
+ api.step_data(
'reading gatekeeper_trees.json',
api.gatekeeper.fake_test_data(),
)
+ api.step_data('gatekeeper: chromium', retcode=1)
)
whitelist_data = api.gatekeeper.fake_test_json()
whitelist_data['blink']['masters'][
'https://build.chromium.org/p/chromium.webkit'] = ['foobar', 'coolbar']
yield (
api.test('whitelist_config')
+ api.step_data(
'reading gatekeeper_trees.json',
api.gatekeeper.fake_test_data(whitelist_data)
)
)
yield (
api.test('production_data')
+ api.step_data(
'reading gatekeeper_trees.json',
api.gatekeeper.production_data(),
)
)