Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,16 @@ def cleanup_flights(

# A non-existing flight is considered successfully deleted
if query.status_code in [200, 404]:

if (
resp.flight_plan_status != FlightPlanStatus.Closed
or query.status_code == 404
):
scenario.record_note(
f"Deletion of {flight_id}",
f"Deletion of flight {flight_id} returned a status of '{resp.flight_plan_status}' ({FlightPlanStatus.Closed} wanted), with a {query.status_code} status code (200 wanted)",
)

removed.append(flight_id)
else:
check.record_failed(
Expand Down
Loading