-
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.
[uss_qualifier] new constraint ref validator, based on the OIR validator
- Loading branch information
Showing
24 changed files
with
1,017 additions
and
44 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
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
21 changes: 21 additions & 0 deletions
21
...toring/uss_qualifier/scenarios/astm/utm/dss/fragments/cr/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Create constraint reference test step fragment | ||
|
||
This test step fragment validates that: | ||
- a query to create a constraint reference with valid parameters succeeds | ||
- the response to the query conforms to the OpenAPI specification | ||
- the content of the response reflects the created constraint reference | ||
|
||
## [Query Success](./create_query.md) | ||
|
||
Check query succeeds | ||
|
||
## [Response Format](./create_format.md) | ||
|
||
Check response format | ||
|
||
## 🛑 Create constraint reference response content is correct check | ||
|
||
A successful constraint reference creation query is expected to return a body, the content of which reflects the created constraint reference. | ||
If the content of the response does not correspond to what was requested, the DSS is failing to implement **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
This check will usually be performing a series of sub-checks from the [validate](../validate) fragments. |
9 changes: 9 additions & 0 deletions
9
monitoring/uss_qualifier/scenarios/astm/utm/dss/fragments/cr/crud/create_format.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,9 @@ | ||
# Create constraint reference response format test step fragment | ||
|
||
This test step fragment validates that a constraint references creation returns a body in the correct format. | ||
|
||
## 🛑 Create constraint reference response format conforms to spec check | ||
|
||
The response to a successful constraint reference creation query is expected to conform to the format defined by the OpenAPI specification under the `A3.1` Annex of ASTM F3548−21. | ||
|
||
If it does not, the DSS is failing to implement **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. |
8 changes: 8 additions & 0 deletions
8
monitoring/uss_qualifier/scenarios/astm/utm/dss/fragments/cr/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 constraint reference test step fragment | ||
|
||
This test step fragment validates that a query to create a constraint reference with valid parameters succeeds | ||
|
||
## 🛑 Create constraint reference query succeeds check | ||
|
||
As per **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**, the DSS API must allow callers to create a constraint reference with either one or both of the | ||
start and end time missing, provided all the required parameters are valid. |
51 changes: 51 additions & 0 deletions
51
...oring/uss_qualifier/scenarios/astm/utm/dss/fragments/cr/validate/correctness.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,51 @@ | ||
# Validate the content of a constraint reference test step fragment | ||
|
||
This test step fragment attempts to validate the content of a single constraint reference returned by the DSS. | ||
|
||
The code for these checks lives in the [cr_validator.py](../../../validators/cr_validator.py) class. | ||
|
||
## ⚠️ Returned constraint reference ID is correct check | ||
|
||
If the returned constraint reference ID does not correspond to the one specified in the creation parameters, | ||
**[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. | ||
|
||
## ⚠️ Returned constraint reference has a manager check | ||
|
||
If the returned constraint reference has no manager defined, **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. | ||
|
||
## ⚠️ Returned constraint reference manager is correct check | ||
|
||
The returned manager must correspond to the identity of the client that created the constraint at the DSS, | ||
otherwise the DSS is in violation of **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
## ⚠️ Returned constraint reference has an USS base URL check | ||
|
||
If the returned constraint reference has no USS base URL defined, **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. | ||
|
||
## ⚠️ Returned constraint reference base URL is correct check | ||
|
||
The returned USS base URL must be prefixed with the USS base URL that was provided at constraint reference creation, otherwise the DSS is in violation of **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
## ⚠️ Returned constraint reference has a start time check | ||
|
||
If the returned constraint reference has no start time defined, **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. | ||
|
||
## ⚠️ Returned start time is correct check | ||
|
||
The returned start time must be the same as the provided one, otherwise the DSS is in violation of **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
## ⚠️ Returned constraint reference has an end time check | ||
|
||
Constraint references need a defined end time in order to limit their duration: if the DSS omits to set the end time, it will be in violation of **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
## ⚠️ Returned end time is correct check | ||
|
||
The returned end time must be the same as the provided one, otherwise the DSS is in violation of **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)**. | ||
|
||
## ⚠️ Returned constraint reference has an OVN check | ||
|
||
If the returned constraint reference has no OVN defined, **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. | ||
|
||
## ⚠️ Returned constraint reference has a version check | ||
|
||
If the returned constraint reference has no version defined, **[astm.f3548.v21.DSS0005,3](../../../../../../../requirements/astm/f3548/v21.md)** is not respected. |
1 change: 1 addition & 0 deletions
1
monitoring/uss_qualifier/scenarios/astm/utm/dss/synchronization/__init__.py
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .subscription_synchronization import SubscriptionSynchronization | ||
from .op_intent_ref_synchronization import OIRSynchronization | ||
from .uss_availability_synchronization import USSAvailabilitySynchronization | ||
from .constraint_ref_synchronization import CRSynchronization |
Oops, something went wrong.