Refactor Job manager routes #1194
Triggered via pull request
September 16, 2024 15:20
Status
Failure
Total duration
9m 44s
Artifacts
–
main.yml
on: pull_request
shellcheck
3s
pytest-integration
9m 32s
client-generation
3m 9s
Matrix: pytest
Annotations
20 errors
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L431
test_get_job_status_in_bulk
AssertionError: {'detail': [{'input': 'status', 'loc': ['path', 'job_id'], 'msg': 'Input should be a valid integer, unable to parse string as an integer', 'type': 'int_parsing'}]}
assert 422 == 200
+ where 422 = <Response [422 Unprocessable Entity]>.status_code
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L686
test_set_job_status_bulk
AssertionError: assert None == 'Checking'
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L741
test_delete_job_valid_job_id
AssertionError: {'detail': 'Job 1 not found'}
assert <HTTPStatus.NOT_FOUND: 404> == 200
+ where <HTTPStatus.NOT_FOUND: 404> = <Response [404 Not Found]>.status_code
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L752
test_delete_job_invalid_job_id
AssertionError: Job 999999996 has been successfully removed
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L766
test_delete_bulk_jobs_valid_job_ids
AssertionError: {'detail': 'Job 1 not found'}
assert <HTTPStatus.NOT_FOUND: 404> == 200
+ where <HTTPStatus.NOT_FOUND: 404> = <Response [404 Not Found]>.status_code
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L779
test_delete_bulk_jobs_invalid_job_ids
AssertionError: [999999997, 999999998, 999999999]
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L799
test_delete_bulk_jobs_mix_of_valid_and_invalid_job_ids
AssertionError: [1, 2, 3, 999999997, 999999998, 999999999]
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L821
test_kill_job_valid_job_id
AssertionError: {'detail': 'Not Found'}
assert 404 == 200
+ where 404 = <Response [404 Not Found]>.status_code
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L835
test_kill_job_invalid_job_id
AssertionError: assert {'detail': 'Not Found'} == {'detail': 'J...96 not found'}
Differing items:
{'detail': 'Not Found'} != {'detail': 'Job 999999996 not found'}
Full diff:
{
- 'detail': 'Job 999999996 not found',
+ 'detail': 'Not Found',
}
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L845
test_kill_bulk_jobs_valid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == 200
+ where 405 = <Response [405 Method Not Allowed]>.status_code
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L431
test_get_job_status_in_bulk
AssertionError: {'detail': [{'input': 'status', 'loc': ['path', 'job_id'], 'msg': 'Input should be a valid integer, unable to parse string as an integer', 'type': 'int_parsing'}]}
assert 422 == 200
+ where 422 = <Response [422 Unprocessable Entity]>.status_code
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L686
test_set_job_status_bulk
AssertionError: assert None == 'Checking'
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L741
test_delete_job_valid_job_id
AssertionError: {'detail': 'Job 1 not found'}
assert <HTTPStatus.NOT_FOUND: 404> == 200
+ where <HTTPStatus.NOT_FOUND: 404> = <Response [404 Not Found]>.status_code
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L752
test_delete_job_invalid_job_id
AssertionError: Job 999999996 has been successfully removed
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L766
test_delete_bulk_jobs_valid_job_ids
AssertionError: {'detail': 'Job 1 not found'}
assert <HTTPStatus.NOT_FOUND: 404> == 200
+ where <HTTPStatus.NOT_FOUND: 404> = <Response [404 Not Found]>.status_code
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L779
test_delete_bulk_jobs_invalid_job_ids
AssertionError: [999999997, 999999998, 999999999]
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L799
test_delete_bulk_jobs_mix_of_valid_and_invalid_job_ids
AssertionError: [1, 2, 3, 999999997, 999999998, 999999999]
assert 200 == <HTTPStatus.NOT_FOUND: 404>
+ where 200 = <Response [200 OK]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L821
test_kill_job_valid_job_id
AssertionError: {'detail': 'Not Found'}
assert 404 == 200
+ where 404 = <Response [404 Not Found]>.status_code
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L835
test_kill_job_invalid_job_id
AssertionError: assert {'detail': 'Not Found'} == {'detail': 'J...96 not found'}
Differing items:
{'detail': 'Not Found'} != {'detail': 'Job 999999996 not found'}
Full diff:
{
- 'detail': 'Job 999999996 not found',
+ 'detail': 'Not Found',
}
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L845
test_kill_bulk_jobs_valid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == 200
+ where 405 = <Response [405 Method Not Allowed]>.status_code
|