Refactor Job manager routes #1200
Triggered via pull request
September 16, 2024 19:49
Status
Failure
Total duration
9m 32s
Artifacts
–
main.yml
on: pull_request
shellcheck
4s
pytest-integration
9m 22s
client-generation
3m 30s
Matrix: pytest
Annotations
20 errors
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
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L862
test_kill_bulk_jobs_invalid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == <HTTPStatus.NOT_FOUND: 404>
+ where 405 = <Response [405 Method Not Allowed]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
Unit test - ./diracx-routers:
diracx-routers/tests/test_job_manager.py#L882
test_kill_bulk_jobs_mix_of_valid_and_invalid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == <HTTPStatus.NOT_FOUND: 404>
+ where 405 = <Response [405 Method Not Allowed]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
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
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L862
test_kill_bulk_jobs_invalid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == <HTTPStatus.NOT_FOUND: 404>
+ where 405 = <Response [405 Method Not Allowed]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|
pytest-integration:
diracx-routers/tests/test_job_manager.py#L882
test_kill_bulk_jobs_mix_of_valid_and_invalid_job_ids
AssertionError: {'detail': 'Method Not Allowed'}
assert 405 == <HTTPStatus.NOT_FOUND: 404>
+ where 405 = <Response [405 Method Not Allowed]>.status_code
+ and <HTTPStatus.NOT_FOUND: 404> = HTTPStatus.NOT_FOUND
|