-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[uss_qualifier] check SCD OIRs properly propagate to every DSS (dss0210,2a-f slice 1/n) #577
Conversation
0fae274
to
a2256cf
Compare
a2256cf
to
3b9f63d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass, but it's mostly looking good.
monitoring/uss_qualifier/resources/astm/f3548/v21/planning_area.py
Outdated
Show resolved
Hide resolved
|
||
Confirm that the operational intent reference that was just created is properly synchronized across all DSS instances. | ||
|
||
#### [Get OIR](../fragments/oir/crud/read.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't that be first (conceptually)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. The two fragments above are quite tied together, but in order to check if the sync went well one first has to do a GET.
I just noticed that there is too much stuff in the read
fragment (it includes stuff for search) -> but I'll split that out in another PR
- deletion of an entity on a secondary DSS when it was created on the primary | ||
""" | ||
|
||
SUB_TYPE = register_resource_type(381, "Operational Intent Reference") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to change the no. since #543 is getting merged.
Also: a more accurate description would be nice.
...toring/uss_qualifier/scenarios/astm/utm/dss/synchronization/op_intent_ref_synchronization.py
Show resolved
Hide resolved
"Propagated operational intent reference contains the correct start time", | ||
involved_participants, | ||
) as check: | ||
expected_start = expected_oir_params.extents[0].time_start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why [0]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it's the first extent, and I assume extents will always be in chronological order? (Here we have a single extent in the list of extents).
Ie, assuming that extents are always in chronological order, the start and end time of an OIR will always be the start time of the first extent and the end time of the last extent, respectively.
(But I might have gotten something wrong?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no there is no such guarantee unfortunately.
However it is easy to get those things with Volume4DCollection
, you can parse the volumes with Volume4DCollection.from_f3548v21
and then with Volume4DCollection.time_start
and Volume4DCollection.time_end
you will have those.
"Propagated operational intent reference contains the correct end time", | ||
involved_participants, | ||
) as check: | ||
expected_end = expected_oir_params.extents[-1].time_end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why [-1]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: here we want the last extent so we get the last time stamp, chronologically.
3b9f63d
to
2fcf27b
Compare
2fcf27b
to
e6c3b3f
Compare
fa62dad
to
74f4f19
Compare
74f4f19
to
1463787
Compare
Start covering DSS0210,2: this PR adds the checks for making sure that a new OIR is replicated to and accessible from every DSS