TestMatrixArgs

data class TestMatrixArgs(val clientInfo: Output<ClientInfoArgs>? = null, val environmentMatrix: Output<EnvironmentMatrixArgs>? = null, val failFast: Output<Boolean>? = null, val flakyTestAttempts: Output<Int>? = null, val project: Output<String>? = null, val requestId: Output<String>? = null, val resultStorage: Output<ResultStorageArgs>? = null, val testSpecification: Output<TestSpecificationArgs>? = null) : ConvertibleToJava<TestMatrixArgs>

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. That 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.

Constructors

Link copied to clipboard
constructor(clientInfo: Output<ClientInfoArgs>? = null, environmentMatrix: Output<EnvironmentMatrixArgs>? = null, failFast: Output<Boolean>? = null, flakyTestAttempts: Output<Int>? = null, project: Output<String>? = null, requestId: Output<String>? = null, resultStorage: Output<ResultStorageArgs>? = null, testSpecification: Output<TestSpecificationArgs>? = null)

Properties

Link copied to clipboard
val clientInfo: Output<ClientInfoArgs>? = null

Information about the client which invoked the test.

Link copied to clipboard

The devices the tests are being executed on.

Link copied to clipboard
val failFast: Output<Boolean>? = null

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.

Link copied to clipboard
val flakyTestAttempts: Output<Int>? = null

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.

Link copied to clipboard
val project: Output<String>? = null

The cloud project that owns the test matrix.

Link copied to clipboard
val requestId: Output<String>? = null

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.

Link copied to clipboard
val resultStorage: Output<ResultStorageArgs>? = null

Where the results for the matrix are written.

Link copied to clipboard

How to run the test.

Functions

Link copied to clipboard
open override fun toJava(): TestMatrixArgs