Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaTestTaskConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#assertionsArray<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_configGoogle::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

#taskString

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

Returns:

  • (String)


11221
11222
11223
# File 'lib/google/apis/integrations_v1/classes.rb', line 11221

def task
  @task
end

#task_configGoogle::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_numberString

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

Returns:

  • (String)


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