Skip to content

DRAFT: Add support for the OCSP/CRL refresh wrapper REST API #403

DRAFT: Add support for the OCSP/CRL refresh wrapper REST API

DRAFT: Add support for the OCSP/CRL refresh wrapper REST API #403

Triggered via pull request February 7, 2024 21:08
@ramborambo
synchronize #84
ocsp_api
Status Failure
Total duration 5m 18s
Artifacts

build.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

51 errors and 2 warnings
test_auth.test_valid_user_mtls: .mypy_cache/3.11/tests/test_auth.data.json#L24
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_auth.test_valid_user_jwt: .mypy_cache/3.11/tests/test_auth.data.json#L24
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_auth.test_valid_admin_mtls: .mypy_cache/3.11/tests/test_auth.data.json#L24
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_auth.test_valid_admin_jwt: .mypy_cache/3.11/tests/test_auth.data.json#L24
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_cfssl.test_get_crl: .mypy_cache/3.11/tests/test_cfssl.data.json#L33
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_cfssl.test_crl_route: .mypy_cache/3.11/tests/test_cfssl.data.json#L33
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_db.test_enrollments_crud: .mypy_cache/3.11/tests/test_db.data.json#L168
rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)
test_db.test_person_with_cert: .mypy_cache/3.11/tests/test_db.data.json#L327
rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)
test_db.test_person_with_cert_duplicatename: .mypy_cache/3.11/tests/test_db.data.json#L368
rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)
test_db.test_pfx_parse: .mypy_cache/3.11/tests/test_db.data.json#L385
rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)
test_enrollment.test_enroll_verif_code[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_enroll_show_verif_code[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_enroll_show_verifcode_bad_code[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_post_init[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_promote_demote[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_lock[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_accept[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_accept_no_such_user[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_invitecode_create[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_invitecode_dectivate[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_invitecode_activate[tilauspalvelu_jwt_admin_client0]: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_show_verifcode_no_permission: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_have_i_been_accepted_yes: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_have_i_been_accepted_no: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_status_koira: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_status_not_found: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_list_as_adm: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_list_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_init_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_promote_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_lock_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_accept_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_create_as_usr: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_invite_code: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_enrollment.test_enroll_with_invite_code: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_healthcheck.test_get_healthcheck[app_client0]: .mypy_cache/3.11/tests/test_healthcheck.data.json#L21
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_tokens.test_get_code: .mypy_cache/3.11/tests/test_tokens.data.json#L15
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_tokens.test_use_code: .mypy_cache/3.11/tests/test_tokens.data.json#L15
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_tokens.test_use_code_twice: .mypy_cache/3.11/tests/test_tokens.data.json#L15
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_caroutes.test_have_mtlscert: .mypy_cache/3.11/tests/tlstests/test_caroutes.data.json#L1
failed on setup with "file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/test_caroutes.py, line 22 @pytest.mark.asyncio async def test_have_mtlscert(mtlsfiles: Tuple[Path, Path]) -> None: """Test that we got the files""" certpath, privkeypath = mtlsfiles assert certpath.exists() assert privkeypath.exists() file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/conftest.py, line 51 @pytest_asyncio.fixture(scope="module") async def mtlsfiles(csrfile: Path) -> Tuple[Path, Path]: """Return cert, key and ca cert paths, this will sign the CSR again every time due to fixture scoping issues""" privkeypath = csrfile.parent.parent / "private" / "mtlsclient.key" assert privkeypath.exists() certpath = csrfile.parent / "mtlsclient.pem" certpem = (await sign_csr(csrfile.read_text())).replace("\\n", "\n") LOGGER.debug("certpem={}".format(certpem)) certpath.write_text(certpem) return certpath, privkeypath E fixture 'tests/test_auth.py::<event_loop>' not found > available fixtures: _session_event_loop, anyio_backend, anyio_backend_name, anyio_backend_options, app_client, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, csrfile, datadir, docker_cleanup, docker_compose_command, docker_compose_file, docker_compose_project_name, docker_ip, docker_services, docker_setup, doctest_namespace, event_loop, event_loop_policy, issuer_cl, keypair, kraftwerk_jwt_client, monkeypatch, monkeysession, mtls_client, mtlsclient, mtlsfiles, nice_tmpdir_mod, nice_tmpdir_ses, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, rm_jwt_client, session_env_config, test_user_secrets, tests/tlstests/__init__.py::<event_loop>, tests/tlstests/test_caroutes.py::<event_loop>, tilauspalvelu_jwt_admin_client, tilauspalvelu_jwt_client, tilauspalvelu_jwt_user_client, tilauspalvelu_jwt_user_koira_client, tilauspalvelu_jwt_without_proper_user_client, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unauth_client, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory, verifier > use 'pytest --fixtures [testpath]' for help on them. /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/conftest.py:51"
test_caroutes.test_sign: .mypy_cache/3.11/tests/tlstests/test_caroutes.data.json#L34
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_caroutes.test_sign_twice: .mypy_cache/3.11/tests/tlstests/test_caroutes.data.json#L52
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_caroutes.test_sign_revoke_mtls: .mypy_cache/3.11/tests/tlstests/test_caroutes.data.json#L1
ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)
test_productapi.test_hello: .mypy_cache/3.11/tests/tlstests/test_productapi.data.json#L1
failed on setup with "file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/test_productapi.py, line 21 @pytest.mark.asyncio async def test_hello(mtlsclient: aiohttp.ClientSession) -> None: """Quick and dirty test of the mTLS client and server""" url = switchme_to_singleton_call.kraftwerk_manifest_dict["products"]["fake"]["api"] async with mtlsclient as client: LOGGER.debug("GETting {}".format(url)) resp = await client.get(url) resp.raise_for_status() body = await resp.text() assert "Hello" in body file /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/conftest.py, line 51 @pytest_asyncio.fixture(scope="module") async def mtlsfiles(csrfile: Path) -> Tuple[Path, Path]: """Return cert, key and ca cert paths, this will sign the CSR again every time due to fixture scoping issues""" privkeypath = csrfile.parent.parent / "private" / "mtlsclient.key" assert privkeypath.exists() certpath = csrfile.parent / "mtlsclient.pem" certpem = (await sign_csr(csrfile.read_text())).replace("\\n", "\n") LOGGER.debug("certpem={}".format(certpem)) certpath.write_text(certpem) return certpath, privkeypath E fixture 'tests/test_auth.py::<event_loop>' not found > available fixtures: _session_event_loop, anyio_backend, anyio_backend_name, anyio_backend_options, app_client, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, csrfile, datadir, docker_cleanup, docker_compose_command, docker_compose_file, docker_compose_project_name, docker_ip, docker_services, docker_setup, doctest_namespace, event_loop, event_loop_policy, issuer_cl, keypair, kraftwerk_jwt_client, monkeypatch, monkeysession, mtls_client, mtlsclient, mtlsfiles, nice_tmpdir_mod, nice_tmpdir_ses, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, rm_jwt_client, session_env_config, src/rasenmaeher_api/web/api/enrollment/__init__.py::<event_loop>, test_user_secrets, tests/tlstests/test_productapi.py::<event_loop>, tilauspalvelu_jwt_admin_client, tilauspalvelu_jwt_client, tilauspalvelu_jwt_user_client, tilauspalvelu_jwt_user_koira_client, tilauspalvelu_jwt_without_proper_user_client, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unauth_client, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory, verifier > use 'pytest --fixtures [testpath]' for help on them. /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/tlstests/conftest.py:51"
test_fixtures.test_check_auth_admin: .mypy_cache/3.11/tests/usersapis/test_fixtures.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_fixtures.test_check_auth_user: .mypy_cache/3.11/tests/usersapis/test_fixtures.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_fragments.test_admin_fragment: .mypy_cache/3.11/tests/usersapis/test_fragments.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_fragments.test_user_fragment: .mypy_cache/3.11/tests/usersapis/test_fragments.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_people.test_admin_people_list: .mypy_cache/3.11/tests/usersapis/test_people.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test_people.test_product_people_list: .mypy_cache/3.11/tests/usersapis/test_people.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError: unhandled errors in a TaskGroup (2 sub-exceptions)"
test (3.11)
Process completed with exit code 1.
devel_shell
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.