|
78 | 78 | "root": { |
79 | 79 | "dag": {"tasks": {}}, |
80 | 80 | "inputDefinitions": { |
81 | | - "parameterValues": { |
| 81 | + "parameters": { |
82 | 82 | "string_param": {"parameterType": "STRING"}, |
83 | 83 | "bool_param": {"parameterType": "BOOLEAN"}, |
84 | 84 | "double_param": {"parameterType": "NUMBER_DOUBLE"}, |
|
98 | 98 | "pipelineSpec": _TEST_PIPELINE_SPEC_LEGACY, |
99 | 99 | } |
100 | 100 | _TEST_PIPELINE_JOB = { |
101 | | - "runtimeConfig": { |
102 | | - "parameterValues": { |
103 | | - "string_param": "lorem ipsum", |
104 | | - "bool_param": True, |
105 | | - "double_param": 12.34, |
106 | | - "int_param": 5678, |
107 | | - "list_int_param": [123, 456, 789], |
108 | | - "list_string_param": ["lorem", "ipsum"], |
109 | | - "struct_param": {"key1": 12345, "key2": 67890}, |
110 | | - }, |
111 | | - }, |
| 101 | + "runtimeConfig": {"parameterValues": _TEST_PIPELINE_PARAMETER_VALUES}, |
112 | 102 | "pipelineSpec": _TEST_PIPELINE_SPEC, |
113 | 103 | } |
114 | 104 |
|
@@ -282,15 +272,7 @@ def test_run_call_pipeline_service_create( |
282 | 272 |
|
283 | 273 | expected_runtime_config_dict = { |
284 | 274 | "gcsOutputDirectory": _TEST_GCS_BUCKET_NAME, |
285 | | - "parameterValues": { |
286 | | - "bool_param": {"boolValue": True}, |
287 | | - "double_param": {"numberValue": 12.34}, |
288 | | - "int_param": {"numberValue": 5678}, |
289 | | - "list_int_param": {"listValue": [123, 456, 789]}, |
290 | | - "list_string_param": {"listValue": ["lorem", "ipsum"]}, |
291 | | - "struct_param": {"structValue": {"key1": 12345, "key2": 67890}}, |
292 | | - "string_param": {"stringValue": "hello world"}, |
293 | | - }, |
| 275 | + "parameterValues": _TEST_PIPELINE_PARAMETER_VALUES, |
294 | 276 | } |
295 | 277 | runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb |
296 | 278 | json_format.ParseDict(expected_runtime_config_dict, runtime_config) |
@@ -425,15 +407,7 @@ def test_submit_call_pipeline_service_pipeline_job_create( |
425 | 407 |
|
426 | 408 | expected_runtime_config_dict = { |
427 | 409 | "gcsOutputDirectory": _TEST_GCS_BUCKET_NAME, |
428 | | - "parameterValues": { |
429 | | - "bool_param": {"boolValue": True}, |
430 | | - "double_param": {"numberValue": 12.34}, |
431 | | - "int_param": {"numberValue": 5678}, |
432 | | - "list_int_param": {"listValue": [123, 456, 789]}, |
433 | | - "list_string_param": {"listValue": ["lorem", "ipsum"]}, |
434 | | - "struct_param": {"structValue": {"key1": 12345, "key2": 67890}}, |
435 | | - "string_param": {"stringValue": "hello world"}, |
436 | | - }, |
| 410 | + "parameterValues": _TEST_PIPELINE_PARAMETER_VALUES, |
437 | 411 | } |
438 | 412 | runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb |
439 | 413 | json_format.ParseDict(expected_runtime_config_dict, runtime_config) |
|
0 commit comments