Skip to content

Commit

Permalink
Adding 5 s back, removing url check no post interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
punamverma committed Dec 1, 2023
1 parent 83a40d8 commit 3a8bdc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def expect_no_interuss_post_interactions(
scenario: TestScenarioType,
mock_uss: MockUSSClient,
st: StringBasedDateTime,
posted_to_url: str,
test_step: str,
):
"""
Expand All @@ -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],
)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3a8bdc4

Please sign in to comment.