Skip to content

Commit 21b0f11

Browse files
authored
OAProc: fix/update statusInfo responses (#2197) (#2198)
1 parent 14a73e5 commit 21b0f11

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pygeoapi/api/processes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def execute_process(api: API, request: APIRequest,
526526
if execution_mode == RequestedProcessExecutionMode.respond_async:
527527
LOGGER.debug('Asynchronous mode detected, returning statusInfo')
528528
response2 = {
529-
'id': job_id,
529+
'jobID': job_id,
530530
'type': 'process',
531531
'status': status.value
532532
}

tests/api/test_processes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def test_execute_process(config, api_):
329329
assert 'Location' in rsp_headers
330330
assert code == HTTPStatus.CREATED
331331
assert isinstance(response, dict)
332-
assert 'id' in response
332+
assert 'jobID' in response
333333
assert 'type' in response
334334
assert 'status' in response
335335
assert response['type'] == 'process'

0 commit comments

Comments
 (0)