-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DSS0210 prepare sub interactions scenario: oir creation
- Loading branch information
Showing
23 changed files
with
519 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...astm/utm/dss/fragments/oir/crud/create.md → .../dss/fragments/oir/crud/create_correct.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
monitoring/uss_qualifier/scenarios/astm/utm/dss/fragments/oir/crud/create_query.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Create operational intent reference test step fragment | ||
|
||
This test step fragment validates that a query to create an operational intent reference with valid parameters succeeds | ||
|
||
## 🛑 Create operational intent reference query succeeds check | ||
|
||
As per **[astm.f3548.v21.DSS0005,1](../../../../../../../requirements/astm/f3548/v21.md)**, the DSS API must allow callers to create an operational intent reference with either one or both of the | ||
start and end time missing, provided all the required parameters are valid. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
monitoring/uss_qualifier/scenarios/astm/utm/dss/fragments/sub/crud/create_query.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Create subscription test step fragment | ||
|
||
This test step fragment validates that a query to create a subscription with valid parameters succeeds. | ||
|
||
## 🛑 Create subscription query succeeds check | ||
|
||
As per **[astm.f3548.v21.DSS0005,5](../../../../../../../requirements/astm/f3548/v21.md)**, the DSS API must allow callers to create a subscription with either one or both of the | ||
start and end time missing, provided all the required parameters are valid. |
80 changes: 80 additions & 0 deletions
80
monitoring/uss_qualifier/scenarios/astm/utm/dss/subscription_interactions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# ASTM SCD DSS: Subscription and entity interaction test scenario | ||
|
||
## Overview | ||
|
||
Create and mutate subscriptions as well as entities, and verify that the DSS handles notifications and expiry correctly. | ||
|
||
## Resources | ||
|
||
### dss | ||
|
||
[`DSSInstanceResource`](../../../../resources/astm/f3548/v21/dss.py) to be tested in this scenario. | ||
|
||
### other_instances | ||
|
||
[`DSSInstancesResource`](../../../../resources/astm/f3548/v21/dss.py) pointing to the DSS instances used to confirm that entities are properly propagated. | ||
|
||
### id_generator | ||
|
||
[`IDGeneratorResource`](../../../../resources/interuss/id_generator.py) providing the Subscription IDs for this scenario. | ||
|
||
### planning_area | ||
|
||
[`PlanningAreaResource`](../../../../resources/astm/f3548/v21/planning_area.py) describes the 3D volume in which subscriptions will be created. | ||
|
||
### utm_client_identity | ||
|
||
[`ClientIdentityResource`](../../../../resources/communications/client_identity.py) provides the identity that will be used to interact with the DSS. | ||
|
||
## Setup test case | ||
|
||
### [Ensure clean workspace test step](clean_workspace.md) | ||
|
||
This step ensures that no subscriptions and OIRs with the known test IDs exists in the DSS deployment. | ||
|
||
## OIR creation triggers relevant notifications test case | ||
|
||
This test case verifies that newly created OIRs will receive the relevant subscriptions to notify from the DSS instance, | ||
regardless of which instance was used to create the entity. | ||
|
||
### [Create background subscriptions test step](./fragments/sub/crud/create_query.md) | ||
|
||
Sets up two subscriptions that cover the planning area at different times, and which will be used as part of the interaction tests. | ||
|
||
### Create an OIR at every DSS in sequence test step | ||
|
||
This test step will create an operational intent reference and assorted subscription at every DSS, in sequence, each time verifying that the DSS | ||
requires notifications for any previously established subscription that intersects with the newly created OIR. | ||
|
||
Note that this step is run once for each involved DSS (that is, once for the primary DSS and once for every secondary DSS) | ||
|
||
#### [Create OIR](./fragments/oir/crud/create_query.md) | ||
|
||
Check that the OIR creation query succeeds | ||
|
||
#### 🛑 DSS response contains the expected background subscription check | ||
|
||
The response from a DSS to a valid OIR creation request is expected to contain any relevant subscription for the OIR's extents. | ||
This includes one of the subscriptions created earlier, as it is designed to intersect with the OIRs being created. | ||
|
||
If the DSS omits the intersecting subscription, it fails to implement **[astm.f3548.v21.DSS0210,A2-7-2,4b](../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
#### 🛑 DSS does not return non-intersecting background subscription check | ||
|
||
The response from a DSS to a valid OIR creation request is expected to contain any relevant subscription for the OIR's extents. | ||
This should exclude one of subscriptions created earlier, as it is designed to not intersect with the OIRs being created. | ||
|
||
If the DSS includes the non-intersecting subscription, it fails to implement **[astm.f3548.v21.DSS0210,A2-7-2,4b](../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
#### 🛑 DSS returns the implicit subscriptions from intersecting OIRs check | ||
|
||
The response from a DSS to a valid OIR creation request is expected to contain any relevant subscription for the OIR's extents. | ||
This includes any implicit subscription previously created on the DSS as part of a previously created OIR. | ||
|
||
If the DSS omits any of the implicit subscriptions belonging to an OIR previously created on another DSS (which are designed to all intersect), | ||
any of the DSSes at which an earlier OIR was created, or the DSS at which the current OIR has been created, | ||
are in violation of **[astm.f3548.v21.DSS0210,A2-7-2,4b](../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
More specifically, they are breaking the above requirement by failing one or both of the following requirements: | ||
|
||
## [Cleanup](./clean_workspace.md) |
Oops, something went wrong.