import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * 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. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. 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. * Auto-naming is currently not supported for this resource. * Note - this resource's API doesn't support deletion. When deleted, the resource will persist * on Google Cloud even though it will be deleted from Pulumi state. */ 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; /** * 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; readonly project: pulumi.Output; /** * A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended. */ readonly requestId: pulumi.Output; /** * 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; /** * 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. */ clientInfo?: pulumi.Input; /** * The devices the tests are being executed on. */ 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. */ 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. */ flakyTestAttempts?: pulumi.Input; /** * The cloud project that owns the test matrix. */ project?: pulumi.Input; /** * A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended. */ requestId?: pulumi.Input; /** * Where the results for the matrix are written. */ resultStorage: pulumi.Input; /** * How to run the test. */ testSpecification: pulumi.Input; }