mirrored from https://chromium.googlesource.com/infra/luci/recipes-py
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfull.py
33 lines (26 loc) · 1.1 KB
/
full.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2024 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.
from PB.go.chromium.org.luci.cv.api.config.v2 import config as cv_config_pb2
from PB.go.chromium.org.luci.milo.proto.projectconfig import project as milo_pb2
DEPS = [
"recipe_engine/luci_config",
"recipe_engine/buildbucket",
"recipe_engine/path",
]
PROPERTIES = {}
def RunSteps(api):
assert api.luci_config.commit_queue(local_dir=api.path.start_dir)
assert api.luci_config.buildbucket()
assert api.luci_config.milo()
assert api.luci_config.scheduler()
assert api.luci_config.scheduler() # To test cache.
def GenTests(api):
yield (api.test("basic") + api.buildbucket.try_build(project="project") +
api.luci_config.mock_local_config("project", "commit-queue.cfg",
cv_config_pb2.Config()) +
api.luci_config.mock_config(
"project",
"luci-milo.cfg",
milo_pb2.Project(consoles=[milo_pb2.Console(id="global_ci")]),
))