Application Integration API . projects . locations . products . integrations . versions . testCases

Instance Methods

close()

Close httplib2 connections.

list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)

Lists all the test cases that satisfy the filters.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, readMask=None, x__xgafv=None)
Lists all the test cases that satisfy the filters.

Args:
  parent: string, Required. The parent resource where this TestCase was created. (required)
  filter: string, Optional. Standard filter field. Filtering as supported in https://developers.google.com/authorized-buyers/apis/guides/list-filters.
  orderBy: string, Optional. The results would be returned in order specified here. Currently supported sort keys are: Descending sort order for "last_modified_time", "created_time". Ascending sort order for "name".
  pageSize: integer, Optional. The maximum number of test cases to return. The service may return fewer than this value. If unspecified, at most 100 test cases will be returned.
  pageToken: string, Optional. A page token, received from a previous `ListTestCases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTestCases` must match the call that provided the page token.
  readMask: string, Optional. The mask which specifies fields that need to be returned in the TestCases's response.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for ListTestCases
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  "testCases": [ # The test cases corresponding to the specified filter
    { # Defines the functional test case for Application Integration. Next available id: 15
      "createTime": "A String", # Auto-generated.
      "creatorEmail": "A String", # Optional. The creator's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
      "databasePersistencePolicy": "A String", # Optional. Various policies for how to persist the test execution info including execution info, execution export info, execution metadata index and execution param index..
      "description": "A String", # Optional. Description of the test case.
      "displayName": "A String", # Required. The display name of test case.
      "lastModifierEmail": "A String", # The last modifer's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
      "lockHolderEmail": "A String", # Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
      "name": "A String", # Output only. Auto-generated primary key.
      "testInputParameters": [ # Optional. Parameters that are expected to be passed to the test case when the test case is triggered. This gives the user the ability to provide default values. This should include all the output variables of the trigger as input variables.
        { # Integration Parameter is defined in the integration config and are used to provide information about data types of the expected parameters and provide any default values if needed. They can also be used to add custom attributes. These are static in nature and should not be used for dynamic event definition.
          "containsLargeData": True or False, # Indicates whether this variable contains large data and need to be uploaded to Cloud Storage.
          "dataType": "A String", # Type of the parameter.
          "defaultValue": { # The type of the parameter. # Default values for the defined keys. Each value can either be string, int, double or any proto message or a serialized object.
            "booleanArray": { # This message only contains a field of boolean array. # Boolean Array.
              "booleanValues": [ # Boolean array.
                True or False,
              ],
            },
            "booleanValue": True or False, # Boolean.
            "doubleArray": { # This message only contains a field of double number array. # Double Number Array.
              "doubleValues": [ # Double number array.
                3.14,
              ],
            },
            "doubleValue": 3.14, # Double Number.
            "intArray": { # This message only contains a field of integer array. # Integer Array.
              "intValues": [ # Integer array.
                "A String",
              ],
            },
            "intValue": "A String", # Integer.
            "jsonValue": "A String", # Json.
            "stringArray": { # This message only contains a field of string array. # String Array.
              "stringValues": [ # String array.
                "A String",
              ],
            },
            "stringValue": "A String", # String.
          },
          "displayName": "A String", # The name (without prefix) to be displayed in the UI for this parameter. E.g. if the key is "foo.bar.myName", then the name would be "myName".
          "inputOutputType": "A String", # Specifies the input/output type for the parameter.
          "isTransient": True or False, # Whether this parameter is a transient parameter.
          "jsonSchema": "A String", # This schema will be used to validate runtime JSON-typed values of this parameter.
          "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
          "masked": True or False, # True if this parameter should be masked in the logs
          "producer": "A String", # The identifier of the node (TaskConfig/TriggerConfig) this parameter was produced by, if it is a transient param or a copy of an input param.
          "searchable": True or False, # Searchable in the execution log or not.
        },
      ],
      "testTaskConfigs": [ # Optional. However, the test case doesn't mock or assert anything without test_task_configs.
        { # The task mock configuration details and assertions for functional tests. Next available id: 5
          "assertions": [ # Optional. List of conditions or expressions which should be evaluated to true unless there is a bug/problem in the integration. These are evaluated one the task execution is completed as per the mock strategy in test case
            { # An assertion which will check for a condition over task execution status or an expression for task output variables Next available id: 5
              "assertionStrategy": "A String", # The type of assertion to perform.
              "condition": "A String", # Optional. Standard filter expression for ASSERT_CONDITION to succeed
              "parameter": { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4 # Optional. Key-value pair for ASSERT_EQUALS, ASSERT_NOT_EQUALS, ASSERT_CONTAINS to succeed
                "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
                "masked": True or False, # True if this parameter should be masked in the logs
                "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
                  "booleanArray": { # This message only contains a field of boolean array. # Boolean Array.
                    "booleanValues": [ # Boolean array.
                      True or False,
                    ],
                  },
                  "booleanValue": True or False, # Boolean.
                  "doubleArray": { # This message only contains a field of double number array. # Double Number Array.
                    "doubleValues": [ # Double number array.
                      3.14,
                    ],
                  },
                  "doubleValue": 3.14, # Double Number.
                  "intArray": { # This message only contains a field of integer array. # Integer Array.
                    "intValues": [ # Integer array.
                      "A String",
                    ],
                  },
                  "intValue": "A String", # Integer.
                  "jsonValue": "A String", # Json.
                  "stringArray": { # This message only contains a field of string array. # String Array.
                    "stringValues": [ # String array.
                      "A String",
                    ],
                  },
                  "stringValue": "A String", # String.
                },
              },
              "retryCount": 42, # Number of times given task should be retried in case of ASSERT_FAILED_EXECUTION
            },
          ],
          "mockConfig": { # The configuration for mocking of a task during test execution Next available id: 4 # Optional. Defines how to mock the given task during test execution
            "failedExecutions": "A String", # Optional. Number of times the given task should fail for failure mock strategy
            "mockStrategy": "A String", # Mockstrategy defines how the particular task should be mocked during test execution
            "parameters": [ # Optional. List of key-value pairs for specific mock strategy
              { # This message is used for processing and persisting (when applicable) key value pair parameters for each event in the event bus. Next available id: 4
                "key": "A String", # Key is used to retrieve the corresponding parameter value. This should be unique for a given fired event. These parameters must be predefined in the integration definition.
                "masked": True or False, # True if this parameter should be masked in the logs
                "value": { # The type of the parameter. # Values for the defined keys. Each value can either be string, int, double or any proto message.
                  "booleanArray": { # This message only contains a field of boolean array. # Boolean Array.
                    "booleanValues": [ # Boolean array.
                      True or False,
                    ],
                  },
                  "booleanValue": True or False, # Boolean.
                  "doubleArray": { # This message only contains a field of double number array. # Double Number Array.
                    "doubleValues": [ # Double number array.
                      3.14,
                    ],
                  },
                  "doubleValue": 3.14, # Double Number.
                  "intArray": { # This message only contains a field of integer array. # Integer Array.
                    "intValues": [ # Integer array.
                      "A String",
                    ],
                  },
                  "intValue": "A String", # Integer.
                  "jsonValue": "A String", # Json.
                  "stringArray": { # This message only contains a field of string array. # String Array.
                    "stringValues": [ # String array.
                      "A String",
                    ],
                  },
                  "stringValue": "A String", # String.
                },
              },
            ],
          },
          "task": "A String", # Required. This defines in the test case, the task name in integration which will be mocked by this test task config
          "taskNumber": "A String", # Required. This defines in the test case, the task in integration which will be mocked by this test task config
        },
      ],
      "triggerId": "A String", # Required. This defines the trigger ID in workflow which is considered to be executed as starting point of the test case
      "updateTime": "A String", # Auto-generated.
      "workflowId": "A String", # ID of the workflow with which this test case is associated Deprecated. Please read the workflow_id from name or parent.
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.