Skip to content

Commit a7291bc

Browse files
committed
[uss_qualifier] use set_uss_available fragment in cleanup
1 parent 9d22e0f commit a7291bc

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

monitoring/uss_qualifier/scenarios/astm/utm/off_nominal_planning/down_uss.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ If the planning was accepted, Flight 1 should have been shared.
102102
If the planning was rejected, Flight 1 should not have been shared, thus should not exist.
103103

104104
## Cleanup
105-
### 🛑 Availability of virtual USS restored check
106-
**[astm.f3548.v21.DSS0100,1](../../../../requirements/astm/f3548/v21.md)**
105+
### [Restore virtual USS availability test step](../set_uss_available.md)
107106

108107
### 🛑 Successful flight deletion check
109108
Delete flights injected at USS through the flight planning interface.

monitoring/uss_qualifier/scenarios/astm/utm/off_nominal_planning/down_uss.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from uas_standards.astm.f3548.v21.api import (
33
OperationalIntentReference,
44
OperationalIntentState,
5-
UssAvailabilityState,
65
)
76
from uas_standards.astm.f3548.v21.constants import Scope
87

@@ -313,25 +312,7 @@ def _clear_op_intents(self):
313312

314313
def cleanup(self):
315314
self.begin_cleanup()
316-
317-
with self.check(
318-
"Availability of virtual USS restored", [self.dss.participant_id]
319-
) as check:
320-
try:
321-
availability_version, avail_query = self.dss.set_uss_availability(
322-
self.uss_qualifier_sub,
323-
UssAvailabilityState.Normal,
324-
)
325-
self.record_query(avail_query)
326-
except QueryError as e:
327-
self.record_queries(e.queries)
328-
avail_query = e.queries[0]
329-
check.record_failed(
330-
summary=f"Availability of USS {self.uss_qualifier_sub} could not be set to available",
331-
details=f"DSS responded code {avail_query.status_code}; {e}",
332-
query_timestamps=[avail_query.request.timestamp],
333-
)
334-
315+
set_uss_available(self, self.dss, self.uss_qualifier_sub)
335316
cleanup_flights(self, [self.tested_uss])
336317
self._clear_op_intents()
337318

monitoring/uss_qualifier/scenarios/astm/utm/off_nominal_planning/down_uss_equal_priority_not_permitted.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ to reject or accept Flight 2. If the USS indicates that the injection attempt fa
173173

174174

175175
## Cleanup
176-
### 🛑 Availability of virtual USS restored check
177-
**[astm.f3548.v21.DSS0100,1](../../../../requirements/astm/f3548/v21.md)**
176+
### [Restore virtual USS availability test step](../set_uss_available.md)
178177

179178
### 🛑 Successful flight deletion check
180179
Delete flights injected at USS through the flight planning interface.

0 commit comments

Comments
 (0)