• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2021 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto3";
6
7package chromiumos.test.api;
8
9option go_package = "go.chromium.org/chromiumos/config/go/test/api";
10
11import "chromiumos/test/lab/api/dut.proto";
12import "chromiumos/test/api/provision_state.proto";
13import "chromiumos/test/api/provision_service.proto";
14
15message ProvisionCliInput {
16  repeated DutInput dut_inputs = 1;
17}
18
19message DutInput {
20  reserved 2;
21
22  chromiumos.test.lab.api.Dut.Id id = 1;
23  // Provision state is pass through request to the provision service.
24  ProvisionState provision_state = 3;
25
26  // Docker image info used to pull DUT service.
27  DockerImage dut_service = 4;
28  // Docker image info used to pull provision service.
29  DockerImage provision_service = 5;
30
31  message DockerImage {
32    // If not specified then used default.
33    string repository_path = 1;
34    // If not specified then used 'latest'.
35    string tag = 2;
36  }
37}
38
39message ProvisionCliOutput {
40  repeated DutOutput dut_outputs = 1;
41}
42
43message DutOutput {
44  chromiumos.test.lab.api.Dut.Id id = 1;
45  // Outcome represents the result of performing provisioning on the DUT.
46  oneof outcome {
47    InstallSuccess success = 2;
48    InstallFailure failure = 3;
49  }
50}
51