Method: projects.locations.integrations.versions.testCases.upload

Uploads a test case. The content can be a previously downloaded test case. Performs the same function as testCases.create, but accepts input in a string format, which holds the complete representation of the TestCase content.

HTTP request

POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*/integrations/*/versions/*}/testCases:upload

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The test case to upload. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integrationVersion}

Request body

The request body contains data with the following structure:

JSON representation
{
  "content": string,
  "fileFormat": enum (FileFormat)
}
Fields
content

string

The textproto of the test case.

fileFormat

enum (FileFormat)

File format for upload request.

Response body

Response for testCases.upload.

If successful, the response body contains data with the following structure:

JSON representation
{
  "testCase": {
    object (TestCase)
  }
}
Fields
testCase

object (TestCase)

The uploaded TestCase

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • integrations.testCases.create

For more information, see the IAM documentation.