Skip to main content

Gcp/testing

@swamp/gcp/testingv2026.08.12.2· 11d agoMODELS
01README

Google Cloud testing infrastructure models

02Release Notes
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
03Models3
@swamp/gcp/testing/devicesessionsv2026.08.12.2devicesessions.ts

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.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
androidDevice?objectRequired. The requested device
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(identifier?: string, waitForReady?: boolean)
Update deviceSessions attributes
ArgumentTypeDescription
identifier?stringTarget a specific deviceSessions by name (e.g. one discovered by list)
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn sync(identifier?: string)
Sync deviceSessions state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific deviceSessions by name (e.g. one discovered by list)
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

Resources

state(infinite)— Protobuf message describing the device message, used from several RPCs.
@swamp/gcp/testing/testenvironmentcatalogv2026.08.12.2testenvironmentcatalog.ts

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.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
fn get(identifier: string)
Get a testEnvironmentCatalog
ArgumentTypeDescription
identifierstringThe name of the testEnvironmentCatalog
fn sync(identifier?: string)
Sync testEnvironmentCatalog state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific testEnvironmentCatalog by name (e.g. one discovered by list)

Resources

state(infinite)— A description of a test environment.
@swamp/gcp/testing/testmatricesv2026.08.12.2testmatrices.ts

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.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
clientInfo?objectInformation about the client which invoked the test.
environmentMatrix?objectRequired. The devices the tests are being executed on.
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. Where the results for the matrix are written.
testSpecification?objectRequired. How to run the test.
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(identifier?: string)
Sync testMatrices state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific testMatrices by name (e.g. one discovered by list)
fn cancel()
cancel

Resources

state(infinite)— TestMatrix captures all details about a test. It contains the environment con...
04Previous Versions19
2026.07.29.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.07.21.3
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.07.21.1
  • Updated: devicesessions, testmatrices
2026.07.20.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.07.19.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.07.18.2
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.07.17.2
  • Updated: devicesessions
2026.07.17.1
  • Updated: devicesessions, testmatrices

Added 3, removed 1 models

2026.06.08.2
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.06.07.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.25.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog

Modified 1 models

2026.05.24.1
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.21.2
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.05.21.1
2026.05.19.2
2026.05.19.1
2026.05.18.1
2026.04.23.1
2026.04.04.1
  • Updated: testmatrices, testenvironmentcatalog
05Stats
A
100 / 100
Downloads
0
Archive size
70.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