| # Copyright 2024 The Fuchsia 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 = [ |
| "fuchsia/buildbucket_util", |
| "fuchsia/roller_configurator", |
| ] |
| |
| |
| def RunSteps(api): |
| api.roller_configurator.validate() |
| api.roller_configurator.resolve(".") |
| |
| api.roller_configurator.validate("/fuchsia") |
| api.roller_configurator.resolve(".", "/fuchsia") |
| |
| |
| def GenTests(api): |
| yield api.buildbucket_util.test( |
| "basic", project="fuchsia", git_repo="https://fuchsia.googlesource.com/fuchsia" |
| ) |
| |
| yield api.buildbucket_util.test( |
| "error", |
| project="fuchsia", |
| git_repo="https://fuchsia.googlesource.com/fuchsia", |
| status="FAILURE", |
| ) + api.step_data("validate", retcode=1) |