Skip to main content

Gcp/testing

@swamp/gcp/testingv2026.06.08.2· 29d agoMODELS
01README

Google Cloud testing infrastructure models

02Release Notes
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
03Models3
devicesessions.tsv2026.06.08.1

Global Arguments

ArgumentTypeDescription
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
androidDevice?objectRequired. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
expireTime?stringOptional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
name?stringOptional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
ttl?stringOptional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a deviceSessions
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a deviceSessions
ArgumentTypeDescription
identifierstringThe name of the deviceSessions
fn update(waitForReady?: boolean)
Update deviceSessions attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn sync()
Sync deviceSessions state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List deviceSessions resources
ArgumentTypeDescription
filter?stringOptional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state.
pageSize?numberOptional. The maximum number of DeviceSessions to return.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn cancel()
cancel
testenvironmentcatalog.tsv2026.06.08.1

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
fn get(identifier: string)
Get a testEnvironmentCatalog
ArgumentTypeDescription
identifierstringThe name of the testEnvironmentCatalog
fn sync()
Sync testEnvironmentCatalog state from GCP
testmatrices.tsv2026.06.08.1

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
clientInfo?objectRequired. The key of detailed client information.
environmentMatrix?objectRequired. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
failFast?booleanIf 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.
flakyTestAttempts?numberThe 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.
projectId?stringThe cloud project that owns the test matrix.
resultStorage?objectRequired. The path to a directory in GCS that will eventually contain the results for this test. The requesting user must have write access on the bucket in the supplied path.
testSpecification?objectA path to a file in Google Cloud Storage. Example: gs://build-app-1414623860166/app%40debug-unaligned.apk These paths are expected to be url encoded (percent encoding)
requestId?stringA 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.
fn create(waitForReady?: boolean)
Create a testMatrices
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a testMatrices
ArgumentTypeDescription
identifierstringThe name of the testMatrices
fn sync()
Sync testMatrices state from GCP
fn cancel()
cancel
04Previous Versions13
2026.06.07.1Jun 7, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.25.1May 25, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog

Modified 1 models

2026.05.24.1May 24, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.21.2May 21, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.21.1May 21, 2026
2026.05.19.2May 19, 2026
2026.05.19.1May 19, 2026
2026.05.18.1May 18, 2026
2026.04.23.1Apr 23, 2026
2026.04.04.1Apr 4, 2026
  • Updated: testmatrices, testenvironmentcatalog
2026.04.03.3Apr 3, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.04.03.1Apr 3, 2026
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.04.02.2Apr 2, 2026
05Stats
A
100 / 100
Downloads
0
Archive size
69.0 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels