Skip to content

Commit

Permalink
Add checking when no PICS were informed
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute committed Oct 21, 2024
1 parent 3b45cbb commit d1bc003
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/api/api_v1/endpoints/test_run_executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def start_test_run_execution(
status_code=HTTPStatus.NOT_FOUND, detail="Test Run Execution not found"
)

if len(test_run_execution.project.pics.clusters) == 0:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="No PICS were informed"
)

test_runner = TestRunner()

try:
Expand Down

0 comments on commit d1bc003

Please sign in to comment.