Skip to content

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

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

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

Triggered via pull request February 12, 2024 20:48
@ramborambo
synchronize #84
ocsp_api
Status Failure
Total duration 12m 11s
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#L126
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_db.test_person_crud: .mypy_cache/3.11/tests/test_db.data.json#L70
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_db.test_enrollments_crud: .mypy_cache/3.11/tests/test_db.data.json#L132
RuntimeError: Task <Task pending name='Task-710' coro=<test_enrollments_crud() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:132> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_enrollmentpools_crud: .mypy_cache/3.11/tests/test_db.data.json#L178
RuntimeError: Task <Task pending name='Task-711' coro=<test_enrollmentpools_crud() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:178> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_enrollmentpools_list: .mypy_cache/3.11/tests/test_db.data.json#L221
RuntimeError: Task <Task pending name='Task-712' coro=<test_enrollmentpools_list() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:221> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_enrollments_list: .mypy_cache/3.11/tests/test_db.data.json#L254
RuntimeError: Task <Task pending name='Task-713' coro=<test_enrollments_list() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:254> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_seentokens_crud: .mypy_cache/3.11/tests/test_db.data.json#L282
RuntimeError: Task <Task pending name='Task-714' coro=<test_seentokens_crud() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:282> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_logincodes_crud: .mypy_cache/3.11/tests/test_db.data.json#L304
RuntimeError: Task <Task pending name='Task-715' coro=<test_logincodes_crud() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:304> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_person_with_cert: .mypy_cache/3.11/tests/test_db.data.json#L327
RuntimeError: Task <Task pending name='Task-716' coro=<test_person_with_cert() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:327> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_person_with_cert_cfsslfail: .mypy_cache/3.11/tests/test_db.data.json#L354
RuntimeError: Task <Task pending name='Task-717' coro=<test_person_with_cert_cfsslfail() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:354> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_person_with_cert_duplicatename: .mypy_cache/3.11/tests/test_db.data.json#L368
RuntimeError: Task <Task pending name='Task-718' coro=<test_person_with_cert_duplicatename() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:368> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_db.test_pfx_parse: .mypy_cache/3.11/tests/test_db.data.json#L385
RuntimeError: Task <Task pending name='Task-719' coro=<test_pfx_parse() running at /home/runner/work/python-rasenmaeher-api/python-rasenmaeher-api/tests/test_db.py:385> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/asyncio/base_events.py:180]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(22, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
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"
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"
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"
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"
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"
test_enrollment.test_show_verifcode_sub_is_bonkers: .mypy_cache/3.11/tests/test_enrollment.data.json#L123
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
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"
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"
test_enrollment.test_status_koira: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError"
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"
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"
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"
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"
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"
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"
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"
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"
test_enrollment.test_invite_code: .mypy_cache/3.11/tests/test_enrollment.data.json#L1
failed on setup with "rasenmaeher_api.db.errors.BackendError"
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"
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(scope="session") 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, announce_server, 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, taskmaster_closer, 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_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(scope="session") 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, announce_server, 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>, taskmaster_closer, 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#L11
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_fixtures.test_check_auth_user: .mypy_cache/3.11/tests/usersapis/test_fixtures.data.json#L21
asyncpg.exceptions._base.InterfaceError: cannot perform operation: another operation is in progress
test_fragments.test_admin_fragment: .mypy_cache/3.11/tests/usersapis/test_fragments.data.json#L16
RuntimeError: Task <Task pending name='Task-1890' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_fragments.test_user_fragment: .mypy_cache/3.11/tests/usersapis/test_fragments.data.json#L34
RuntimeError: Task <Task pending name='Task-1895' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_people.test_admin_people_list: .mypy_cache/3.11/tests/usersapis/test_people.data.json#L18
RuntimeError: Task <Task pending name='Task-1900' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(21, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_people.test_product_people_list: .mypy_cache/3.11/tests/usersapis/test_people.data.json#L31
RuntimeError: Task <Task pending name='Task-1910' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(20, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_pools.test_list_pools: .mypy_cache/3.11/tests/usersapis/test_pools.data.json#L22
failed on setup with "RuntimeError: Task <Task pending name='Task-1915' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(10, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop"
test_pools.test_list_pools_by_owner: .mypy_cache/3.11/tests/usersapis/test_pools.data.json#L54
RuntimeError: Task <Task pending name='Task-1920' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(20, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
test_pools.test_list_pools_wrong_owner: .mypy_cache/3.11/tests/usersapis/test_pools.data.json#L70
RuntimeError: Task <Task pending name='Task-1925' coro=<FastAPI.__call__() running at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/fastapi/applications.py:1054> cb=[_callback(<bound method... _getters[1]>>)() at /home/runner/.cache/pypoetry/virtualenvs/rasenmaeher-api-jxRxA5GG-py3.11/lib/python3.11/site-packages/async_asgi_testclient/utils.py:99]> got Future <Future pending cb=[BaseSelectorEventLoop._sock_write_done(20, handle=<Handle BaseS....0.1', 5542))>)()]> attached to a different loop
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/.