@@ -26,7 +26,7 @@ def make_job_request():
2626 label = ProcessTypeEnum .OPENEO ,
2727 title = "Test Job" ,
2828 service = ServiceDetails (
29- service = "dummy-service-id" , application = "dummy-application"
29+ endpoint = "dummy-service-id" , application = "dummy-application"
3030 ),
3131 parameters = {"param" : 1 },
3232 )
@@ -95,7 +95,7 @@ def test_get_processing_jobs_with_active_and_inactive_statuses(
9595 label = ProcessTypeEnum .OGC_API_PROCESS ,
9696 title = "Finished Job" ,
9797 status = ProcessingStatusEnum .FAILED ,
98- service_record = json .dumps ({"foo" : "bar" }),
98+ service = json .dumps ({"foo" : "bar" }),
9999 )
100100 mock_get_jobs .return_value = [fake_processing_job_record , inactive_job ]
101101 mock_get_job_status .return_value = ProcessingStatusEnum .RUNNING
@@ -149,15 +149,15 @@ def test_get_processing_jobs_with_finished_statuses(
149149 label = ProcessTypeEnum .OGC_API_PROCESS ,
150150 title = "Finished Job" ,
151151 status = ProcessingStatusEnum .FINISHED ,
152- service_record = json .dumps ({"foo" : "bar" }),
152+ service = json .dumps ({"foo" : "bar" }),
153153 )
154154 finished_job_result = ProcessingJobRecord (
155155 id = 3 ,
156156 platform_job_id = "platform456" ,
157157 label = ProcessTypeEnum .OGC_API_PROCESS ,
158158 title = "Finished Job" ,
159159 status = ProcessingStatusEnum .FINISHED ,
160- service_record = json .dumps ({"foo" : "bar" }),
160+ service = json .dumps ({"foo" : "bar" }),
161161 result_link = "https://foo.bar" ,
162162 )
163163 mock_get_jobs .return_value = [finished_job_no_result , finished_job_result ]
@@ -203,7 +203,7 @@ def test_get_job_result_from_platform(mock_get_platform, fake_processing_job_rec
203203def test_get_processing_job_by_user_id (mock_get_job , fake_db_session ):
204204
205205 fake_service_details = {
206- "service " : "https://openeofed.dataspace.copernicus.eu" ,
206+ "endpoint " : "https://openeofed.dataspace.copernicus.eu" ,
207207 "application" : "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/"
208208 "32ea3c9a6fa24fe063cb59164cd318cceb7209b0/openeo_udp/variabilitymap/"
209209 "variabilitymap.json" ,
@@ -219,7 +219,7 @@ def test_get_processing_job_by_user_id(mock_get_job, fake_db_session):
219219 result_link = None ,
220220 created = "2025-08-11T10:00:00" ,
221221 updated = "2025-08-11T10:00:00" ,
222- service_record = json .dumps (fake_service_details ),
222+ service = json .dumps (fake_service_details ),
223223 )
224224 mock_get_job .return_value = fake_result
225225
@@ -231,7 +231,7 @@ def test_get_processing_job_by_user_id(mock_get_job, fake_db_session):
231231 assert result .title == "Test Job"
232232 assert result .status == ProcessingStatusEnum .CREATED
233233 assert isinstance (result .service , ServiceDetails )
234- assert result .service .service == fake_service_details ["service " ]
234+ assert result .service .endpoint == fake_service_details ["endpoint " ]
235235 assert result .service .application == fake_service_details ["application" ]
236236 assert result .parameters == {"param1" : "value1" }
237237
0 commit comments