@@ -205,6 +205,7 @@ def _get_custom_job_proto_with_enable_web_access(state=None, name=None, version=
205
205
custom_job_proto .web_access_uris = _TEST_WEB_ACCESS_URIS
206
206
return custom_job_proto
207
207
208
+
208
209
def _get_custom_job_proto_with_scheduling (state = None , name = None , version = "v1" ):
209
210
custom_job_proto = copy .deepcopy (_TEST_BASE_CUSTOM_JOB_PROTO )
210
211
custom_job_proto .name = name
@@ -215,6 +216,7 @@ def _get_custom_job_proto_with_scheduling(state=None, name=None, version="v1"):
215
216
custom_job_proto .web_access_uris = _TEST_WEB_ACCESS_URIS
216
217
return custom_job_proto
217
218
219
+
218
220
def local_copy_method (path ):
219
221
shutil .copy (path , "." )
220
222
return pathlib .Path (path ).name
@@ -600,6 +602,7 @@ def make_training_pipeline_with_scheduling(state):
600
602
name = _TEST_PIPELINE_RESOURCE_NAME ,
601
603
state = state ,
602
604
training_task_inputs = {
605
+ # "enable_web_access": _TEST_ENABLE_WEB_ACCESS,
603
606
"timeout" : f"{ _TEST_TIMEOUT } s" ,
604
607
"restart_job_on_worker_restart" : _TEST_RESTART_JOB_ON_WORKER_RESTART ,
605
608
},
@@ -1537,8 +1540,6 @@ def test_run_call_pipeline_service_create_with_scheduling(self, sync, caplog):
1537
1540
if not sync :
1538
1541
job .wait ()
1539
1542
1540
- print (caplog .text )
1541
- assert "workerpool0-0" in caplog .text
1542
1543
assert job ._gca_resource == make_training_pipeline_with_scheduling (
1543
1544
gca_pipeline_state .PipelineState .PIPELINE_STATE_SUCCEEDED
1544
1545
)
@@ -2985,8 +2986,6 @@ def test_run_call_pipeline_service_create_with_scheduling(self, sync, caplog):
2985
2986
if not sync :
2986
2987
job .wait ()
2987
2988
2988
- print (caplog .text )
2989
- assert "workerpool0-0" in caplog .text
2990
2989
assert job ._gca_resource == make_training_pipeline_with_enable_web_access (
2991
2990
gca_pipeline_state .PipelineState .PIPELINE_STATE_SUCCEEDED
2992
2991
)
@@ -4706,8 +4705,6 @@ def test_run_call_pipeline_service_create_with_scheduling(self, sync, caplog):
4706
4705
if not sync :
4707
4706
job .wait ()
4708
4707
4709
- print (caplog .text )
4710
- assert "workerpool0-0" in caplog .text
4711
4708
assert job ._gca_resource == make_training_pipeline_with_enable_web_access (
4712
4709
gca_pipeline_state .PipelineState .PIPELINE_STATE_SUCCEEDED
4713
4710
)
0 commit comments