import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../../types"; /** * Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices. */ export declare class TestMatrix extends pulumi.CustomResource { /** * Get an existing TestMatrix resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): TestMatrix; /** * Returns true if the given object is an instance of TestMatrix. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is TestMatrix; /** * Information about the client which invoked the test. */ readonly clientInfo: pulumi.Output; /** * Required. The devices the tests are being executed on. */ readonly environmentMatrix: pulumi.Output; /** * If true, only a single attempt at most will be made to run each execution/shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation. */ readonly failFast: pulumi.Output; /** * The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns. */ readonly flakyTestAttempts: pulumi.Output; /** * Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. */ readonly invalidMatrixDetails: pulumi.Output; /** * Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. */ readonly outcomeSummary: pulumi.Output; /** * The cloud project that owns the test matrix. */ readonly projectId: pulumi.Output; /** * Required. Where the results for the matrix are written. */ readonly resultStorage: pulumi.Output; /** * Indicates the current progress of the test matrix. */ readonly state: pulumi.Output; /** * The list of test executions that the service creates for this matrix. */ readonly testExecutions: pulumi.Output; /** * Unique id set by the service. */ readonly testMatrixId: pulumi.Output; /** * Required. How to run the test. */ readonly testSpecification: pulumi.Output; /** * The time this test matrix was initially created. */ readonly timestamp: pulumi.Output; /** * Create a TestMatrix resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: TestMatrixArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a TestMatrix resource. */ export interface TestMatrixArgs { /** * Information about the client which invoked the test. */ readonly clientInfo?: pulumi.Input; /** * Required. The devices the tests are being executed on. */ readonly environmentMatrix?: pulumi.Input; /** * If true, only a single attempt at most will be made to run each execution/shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation. */ readonly failFast?: pulumi.Input; /** * The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns. */ readonly flakyTestAttempts?: pulumi.Input; /** * Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. */ readonly invalidMatrixDetails?: pulumi.Input; /** * Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. */ readonly outcomeSummary?: pulumi.Input; /** * The cloud project that owns the test matrix. */ readonly projectId: pulumi.Input; /** * Required. Where the results for the matrix are written. */ readonly resultStorage?: pulumi.Input; /** * Indicates the current progress of the test matrix. */ readonly state?: pulumi.Input; /** * The list of test executions that the service creates for this matrix. */ readonly testExecutions?: pulumi.Input[]>; /** * Unique id set by the service. */ readonly testMatrixId: pulumi.Input; /** * Required. How to run the test. */ readonly testSpecification?: pulumi.Input; /** * The time this test matrix was initially created. */ readonly timestamp?: pulumi.Input; }