Skip to content

Commit

Permalink
Fix passing ref id
Browse files Browse the repository at this point in the history
  • Loading branch information
punamverma committed Dec 7, 2023
1 parent 22931da commit d282151
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def expect_shared(
oi_ref, self._flight_planner.participant_id
)
self._scenario.record_query(oi_full_query)
self._operational_intent_retrievable_check(oi_full_query)
self._operational_intent_retrievable_check(oi_full_query, oi_ref.id)

validation_failures = self._evaluate_op_intent_validation(oi_full_query)

Expand Down Expand Up @@ -291,7 +291,7 @@ def expect_shared_with_invalid_data(
)

self._scenario.record_query(oi_full_query)
self._operational_intent_retrievable_check(oi_full_query)
self._operational_intent_retrievable_check(oi_full_query, oi_ref.id)

validation_failures = self._evaluate_op_intent_validation(oi_full_query)
expected_validation_failure_found = self._expected_validation_failure_found(
Expand All @@ -314,7 +314,9 @@ def expect_shared_with_invalid_data(
self._scenario.end_test_step()
return oi_ref

def _operational_intent_retrievable_check(self, oi_full_query):
def _operational_intent_retrievable_check(
self, oi_full_query: fetch.Query, ref_id: str
):
with self._scenario.check(
"Operational intent details retrievable",
[self._flight_planner.participant_id],
Expand All @@ -323,7 +325,7 @@ def _operational_intent_retrievable_check(self, oi_full_query):
check.record_failed(
summary="Operational intent details could not be retrieved from USS",
severity=Severity.High,
details=f"Received status code {oi_full_query.status_code} from {self._flight_planner.participant_id} when querying for details of operational intent {oi_ref.id}",
details=f"Received status code {oi_full_query.status_code} from {self._flight_planner.participant_id} when querying for details of operational intent {ref_id}",
query_timestamps=[oi_full_query.request.timestamp],
)

Expand Down

0 comments on commit d282151

Please sign in to comment.