File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -250,10 +250,10 @@ def run(
250
250
Optional. Whether to execute this method synchronously. If False, this method will unblock and it will be executed in a concurrent Future.
251
251
"""
252
252
if service_account :
253
- self ._gca_resource .pipeline_spec . service_account = service_account
253
+ self ._gca_resource .service_account = service_account
254
254
255
255
if network :
256
- self ._gca_resource .pipeline_spec . network = network
256
+ self ._gca_resource .network = network
257
257
258
258
_LOGGER .log_create_with_lro (self .__class__ )
259
259
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ def mock_pipeline_service_create():
84
84
name = _TEST_PIPELINE_JOB_NAME ,
85
85
state = gca_pipeline_state_v1beta1 .PipelineState .PIPELINE_STATE_SUCCEEDED ,
86
86
create_time = _TEST_PIPELINE_CREATE_TIME ,
87
+ service_account = _TEST_SERVICE_ACCOUNT ,
88
+ network = _TEST_NETWORK ,
87
89
)
88
90
yield mock_create_pipeline_job
89
91
@@ -93,6 +95,8 @@ def make_pipeline_job(state):
93
95
name = _TEST_PIPELINE_JOB_NAME ,
94
96
state = state ,
95
97
create_time = _TEST_PIPELINE_CREATE_TIME ,
98
+ service_account = _TEST_SERVICE_ACCOUNT ,
99
+ network = _TEST_NETWORK ,
96
100
)
97
101
98
102
@@ -239,6 +243,8 @@ def test_run_call_pipeline_service_create(
239
243
"root" : _TEST_PIPELINE_JOB_SPEC ["pipelineSpec" ]["root" ],
240
244
},
241
245
runtime_config = runtime_config ,
246
+ service_account = _TEST_SERVICE_ACCOUNT ,
247
+ network = _TEST_NETWORK ,
242
248
)
243
249
244
250
mock_pipeline_service_create .assert_called_once_with (
You can’t perform that action at this time.
0 commit comments