From d28215109b3060853baf8844e74662454433ab42 Mon Sep 17 00:00:00 2001 From: Punam Verma Date: Wed, 6 Dec 2023 17:42:47 -0800 Subject: [PATCH] Fix passing ref id --- .../uss_qualifier/scenarios/astm/utm/test_steps.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py b/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py index cb9313c9e7..12df0568ec 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/test_steps.py @@ -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) @@ -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( @@ -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], @@ -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], )