File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3939from pydantic import BaseModel
4040
4141
42- def setup_opentelemetry (app , version : str ):
42+ def setup_opentelemetry (app , version : str ) -> Resource :
4343 """Set up OpenTelemetry for ETOS API."""
4444 otel_resource = Resource .create (
4545 {
Original file line number Diff line number Diff line change 5555async def start_etos (
5656 etos : StartEtosRequest ,
5757 ctx : Annotated [otel_context .Context , Depends (context )],
58- ):
58+ ) -> dict :
5959 """Start ETOS execution on post.
6060
6161 :param etos: ETOS pydantic model.
@@ -70,7 +70,7 @@ async def start_etos(
7070
7171
7272@ETOSV0 .delete ("/etos/{suite_id}" , tags = ["etos" ], response_model = AbortEtosResponse )
73- async def abort_etos (suite_id : str , ctx : Annotated [otel_context .Context , Depends (context )]):
73+ async def abort_etos (suite_id : str , ctx : Annotated [otel_context .Context , Depends (context )]) -> dict :
7474 """Abort ETOS execution on delete.
7575
7676 :param suite_id: ETOS suite id
Original file line number Diff line number Diff line change 6060@ETOSV1ALPHA .post ("/testrun" , tags = ["etos" ], response_model = StartTestrunResponse )
6161async def start_testrun (
6262 etos : StartTestrunRequest , ctx : Annotated [otel_context .Context , Depends (context )]
63- ):
63+ ) -> dict :
6464 """Start ETOS testrun on post.
6565
6666 :param etos: ETOS pydantic model.
@@ -75,7 +75,9 @@ async def start_testrun(
7575
7676
7777@ETOSV1ALPHA .delete ("/testrun/{suite_id}" , tags = ["etos" ], response_model = AbortTestrunResponse )
78- async def abort_testrun (suite_id : str , ctx : Annotated [otel_context .Context , Depends (context )]):
78+ async def abort_testrun (
79+ suite_id : str , ctx : Annotated [otel_context .Context , Depends (context )]
80+ ) -> dict :
7981 """Abort ETOS testrun on delete.
8082
8183 :param suite_id: ETOS suite id
You can’t perform that action at this time.
0 commit comments