From 3a8bdc492f83d86738abeacf3754657a35658894 Mon Sep 17 00:00:00 2001 From: Punam Verma Date: Fri, 1 Dec 2023 14:25:58 -0800 Subject: [PATCH] Adding 5 s back, removing url check no post interactions --- .../data_exchange_validation/get_op_data_validation.py | 1 - .../test_steps/expected_interactions_test_steps.py | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/get_op_data_validation.py b/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/get_op_data_validation.py index 8f9611abfa..623053904d 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/get_op_data_validation.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/get_op_data_validation.py @@ -287,7 +287,6 @@ def _tested_uss_unable_to_plan_flight_near_invalid_shared_existing_flight( self, self.control_uss, planning_time, - control_uss_domain, "Validate flight 1 Notification not sent to Control_uss", ) diff --git a/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/test_steps/expected_interactions_test_steps.py b/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/test_steps/expected_interactions_test_steps.py index a00818af3d..31b5b5cb65 100644 --- a/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/test_steps/expected_interactions_test_steps.py +++ b/monitoring/uss_qualifier/scenarios/astm/utm/data_exchange_validation/test_steps/expected_interactions_test_steps.py @@ -52,7 +52,6 @@ def expect_no_interuss_post_interactions( scenario: TestScenarioType, mock_uss: MockUSSClient, st: StringBasedDateTime, - posted_to_url: str, test_step: str, ): """ @@ -69,14 +68,13 @@ def expect_no_interuss_post_interactions( """ scenario.begin_test_step(test_step) interactions, query = _get_interuss_interactions_with_check(scenario, mock_uss, st) - logger.debug(f"Checking for POST request to {posted_to_url}") - found = any_post_interactions_to_url(interactions, posted_to_url) + found = any_post_interactions_to_url(interactions) with scenario.check("Expect Notification not sent") as check: if found: check.record_failed( - summary=f"Notification to {posted_to_url} wrongly sent for an entity not created.", + summary=f"Notification was wrongly sent for an entity not created.", severity=Severity.Medium, - details=f"Notification to {posted_to_url} wrongly sent for an entity not created.", + details=f"Notification was wrongly sent for an entity not created.", requirements="interuss.f3548.notification_requirements.NoDssEntityNoNotification", query_timestamps=[query.request.timestamp], ) @@ -171,7 +169,7 @@ def _get_interuss_interactions( """ # Wait - To make sure that interuss interactions are received and recorded # Using a guess value of 2 seconds - time.sleep(2) + time.sleep(5) all_interactions, query = mock_uss.get_interactions(st) exclude_sub = mock_uss.session.auth_adapter.get_sub()