Skip to content

Commit

Permalink
Fix residual errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Nov 5, 2023
1 parent d8a4d25 commit 5d8fa77
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion monitoring/mock_uss/f3548v21/flight_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,15 @@ def op_intent_from_flightinfo(
uss_base_url="{}/mock/scd".format(webapp.config[KEY_BASE_URL]),
subscription_id="UNKNOWN",
)
if "astm_f3548_21" in flight_info and flight_info.astm_f3548_21:
priority = flight_info.astm_f3548_21.priority
else:
# TODO: Ensure this function is only called when sufficient information is available, or raise ValueError
priority = 0
details = f3548_v21.OperationalIntentDetails(
volumes=volumes,
off_nominal_volumes=off_nominal_volumes,
priority=flight_info.astm_f3548_21.priority,
priority=priority,
)
return f3548_v21.OperationalIntent(
reference=reference,
Expand Down
4 changes: 3 additions & 1 deletion monitoring/mock_uss/uspace/flight_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def validate_request(flight_info: FlightInfo) -> None:
Args:
flight_info: Information about the requested flight.
"""
problems = problems_with_flight_authorisation(flight_info.flight_authorisation)
problems = problems_with_flight_authorisation(
flight_info.uspace_flight_authorisation
)
if problems:
raise PlanningError(", ".join(problems))
4 changes: 2 additions & 2 deletions monitoring/uss_qualifier/reports/tested_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ class TestedBreakdown(ImplicitDict):

class TestRunInformation(ImplicitDict):
test_run_id: str
start_time: Optional[str]
end_time: Optional[str]
start_time: Optional[str] = None
end_time: Optional[str] = None
baseline: str
environment: str

Expand Down

0 comments on commit 5d8fa77

Please sign in to comment.