Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestTaskConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestTaskConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb
Overview
The task mock configuration details and assertions for functional tests. Next available id: 6
Instance Attribute Summary collapse
-
#assertions ⇒ Array<Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAssertion>
Optional.
-
#mock_config ⇒ Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaMockConfig
The configuration for mocking of a task during test execution Next available id: 4 Corresponds to the JSON property
mockConfig
. -
#task ⇒ String
Required.
-
#task_config ⇒ Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTaskConfig
The task configuration details.
-
#task_number ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTestTaskConfig
constructor
A new instance of GoogleCloudIntegrationsV1alphaTestTaskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaTestTaskConfig
Returns a new instance of GoogleCloudIntegrationsV1alphaTestTaskConfig.
11235 11236 11237 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assertions ⇒ Array<Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaAssertion>
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
Corresponds to the JSON property assertions
11209 11210 11211 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11209 def assertions @assertions end |
#mock_config ⇒ Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaMockConfig
The configuration for mocking of a task during test execution Next available
id: 4
Corresponds to the JSON property mockConfig
11215 11216 11217 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11215 def mock_config @mock_config end |
#task ⇒ String
Required. This defines in the test case, the task name in integration which
will be mocked by this test task config
Corresponds to the JSON property task
11221 11222 11223 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11221 def task @task end |
#task_config ⇒ Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTaskConfig
The task configuration details. This is not the implementation of Task. There
might be multiple TaskConfigs for the same Task.
Corresponds to the JSON property taskConfig
11227 11228 11229 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11227 def task_config @task_config end |
#task_number ⇒ String
Required. This defines in the test case, the task in integration which will be
mocked by this test task config
Corresponds to the JSON property taskNumber
11233 11234 11235 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11233 def task_number @task_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11240 11241 11242 11243 11244 11245 11246 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 11240 def update!(**args) @assertions = args[:assertions] if args.key?(:assertions) @mock_config = args[:mock_config] if args.key?(:mock_config) @task = args[:task] if args.key?(:task) @task_config = args[:task_config] if args.key?(:task_config) @task_number = args[:task_number] if args.key?(:task_number) end |