diff --git a/python/pyproject.toml b/python/pyproject.toml index a445ed3..36eb219 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -40,7 +40,13 @@ Homepage = "https://github.com/eiffel-community/etos-api" Repository = "https://github.com/eiffel-community/etos-api" [project.optional-dependencies] -testing = ["pytest", "pytest-cov"] +testing = [ + "pytest", + "pytest-cov", + "tox", + "pytest-asyncio", + "httpx" +] [tool.build_sphinx] source_dir = "docs" diff --git a/python/src/etos_api/routers/v0/router.py b/python/src/etos_api/routers/v0/router.py index 53ed8f0..b80c62e 100644 --- a/python/src/etos_api/routers/v0/router.py +++ b/python/src/etos_api/routers/v0/router.py @@ -105,6 +105,7 @@ async def _start(etos: StartEtosRequest, span: Span) -> dict: # pylint:disable= span.set_attribute("etos.id", tercc.meta.event_id) LOGGER.info("Validating test suite.") + span.set_attribute("etos.test_suite.uri", etos.test_suite_url) await validate_suite(etos.test_suite_url) LOGGER.info("Test suite validated.") diff --git a/python/src/etos_api/routers/v1alpha/router.py b/python/src/etos_api/routers/v1alpha/router.py index 2570f5e..9c33607 100644 --- a/python/src/etos_api/routers/v1alpha/router.py +++ b/python/src/etos_api/routers/v1alpha/router.py @@ -117,6 +117,7 @@ async def _create_testrun(etos: StartTestrunRequest, span: Span) -> dict: span.set_attribute("etos.id", testrun_id) LOGGER.info("Download test suite.") + span.set_attribute("etos.test_suite.uri", etos.test_suite_url) test_suite = await download_suite(etos.test_suite_url) LOGGER.info("Test suite downloaded.")