Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .basedpyright/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -15189,38 +15189,6 @@
"lineCount": 1
}
},
{
"code": "reportArgumentType",
"range": {
"startColumn": 28,
"endColumn": 58,
"lineCount": 1
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 106,
"endColumn": 116,
"lineCount": 1
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 106,
"endColumn": 116,
"lineCount": 1
}
},
{
"code": "reportAttributeAccessIssue",
"range": {
"startColumn": 106,
"endColumn": 116,
"lineCount": 1
}
},
{
"code": "reportInvalidTypeVarUse",
"range": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

from datetime import datetime

from implicitdict import ImplicitDict, StringBasedDateTime
from implicitdict import StringBasedDateTime
from uas_standards.astm.f3548.v21.api import (
EntityID,
OperationID,
PutOperationalIntentDetailsParameters,
)

from monitoring.monitorlib.clients.mock_uss.interactions import QueryDirection
Expand Down Expand Up @@ -91,26 +90,20 @@ def expect_no_interuss_post_interactions(
with scenario.check(
"Mock USS interaction can be parsed", [mock_uss.participant_id]
) as check:
try:
req = PutOperationalIntentDetailsParameters(
ImplicitDict.parse(
interaction.query.request.json,
PutOperationalIntentDetailsParameters,
)
)
except (ValueError, TypeError, KeyError) as e:
req = interaction.query.request.json
if not req or "operational_intent_id" not in req:
check.record_failed(
summary="Failed to parse request of a 'NotifyOperationalIntentDetailsChanged' interaction with mock_uss as a PutOperationalIntentDetailsParameters",
details=f"{str(e)}\nRequest: {interaction.query.request.json}\n\nStack trace:\n{e.stacktrace}",
summary="Failed to find an operational intent ID within a 'NotifyOperationalIntentDetailsChanged' interaction with mock_uss",
details=f"Request: {interaction.query.request.json}",
query_timestamps=[query.request.timestamp],
)
continue # low priority failure: continue checking interactions if one cannot be parsed

op_intent_id = EntityID(req.operational_intent_id)
op_intent_id = EntityID(req.get("operational_intent_id"))
if op_intent_id not in shared_op_intent_ids:
no_notification_check.record_failed(
summary=f"Observed unexpected notification for operational intent ID {req.operational_intent_id}.",
details=f"Notification for operational intent ID {req.operational_intent_id} triggered by subscriptions {', '.join([sub.subscription_id for sub in req.subscriptions])} with timestamp {interaction.query.request.timestamp}.",
summary=f"Observed unexpected notification for operational intent ID {op_intent_id}.",
details=f"Notification for operational intent ID {op_intent_id} triggered by subscriptions {req.get('subscriptions', None)}.",
query_timestamps=[query.request.timestamp],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This step verifies when a flight is not created, it is also not notified by chec

## [Get Mock USS interactions logs](../../../../interuss/mock_uss/get_mock_uss_interactions.md)

## 🛑 Mock USS interaction can be parsed check
## ℹ️ Mock USS interaction can be parsed check
**[interuss.mock_uss.hosted_instance.ExposeInterface](../../../../../requirements/interuss/mock_uss/hosted_instance.md)**.

## 🛑 Expect Notification not sent check
Expand Down
Loading