Skip to content

Commit 849b534

Browse files
committed
latest PR comments
1 parent 9361190 commit 849b534

File tree

9 files changed

+46
-30
lines changed

9 files changed

+46
-30
lines changed

monitoring/prober/infrastructure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def wrapper_default_scope(*args, **kwargs):
100100
resource_type_code_descriptions: Dict[ResourceType, str] = {}
101101

102102

103-
# Next code: 381
103+
# Next code: 382
104104
def register_resource_type(code: int, description: str) -> ResourceType:
105105
"""Register that the specified code refers to the described resource.
106106

monitoring/uss_qualifier/scenarios/astm/utm/dss/synchronization/subscription_synchronization.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,18 @@ For the purpose of this scenario, the `second_utm_auth` resource must provide ac
4848

4949
##### Separate subscription
5050

51-
Note that the subscription (or 'sub' claim, not to be confused with an SCD DSS subscription) of the token that will be obtained for this resource
51+
Note that the subject (or 'sub' claim) of the token that will be obtained for this resource
5252
MUST be different from the one of the `dss` resources mentioned above:
5353
this will be verified at runtime, and the depending checks will not be run if this is not the case.
5454

5555
## Setup test case
5656

5757
### [Ensure clean workspace test step](../clean_workspace.md)
5858

59-
This step ensures that no subscription with the known test ID exists in the DSS.
59+
This step ensures that no subscriptions with the known test IDs exists in the DSS.
60+
61+
This includes the main test subscription used in this test, as well as the extra subscription
62+
used for testing the `manager` field sync, if the test is configured to test for it.
6063

6164
## Subscription Synchronization test case
6265

@@ -147,18 +150,22 @@ Verify that the subscription returned by every DSS is correctly formatted and co
147150

148151
Verify that the version of the subscription returned by every DSS is as expected.
149152

150-
### Verify manager synchronization test step
151-
152-
Checks that the manager of a subscription is properly synchronized across all DSS instances.
153+
### Create subscription with different credentials test step
153154

154-
This is done by means of using a separate set of credentials to create a subscription on the primary DSS,
155-
and then verifying that the main credentials are not able to mutate this subscription via one of the secondary DSS instances
155+
If the second set of credentials is provided, this test step will create a subscription using these credentials,
156+
in order to prepare the next step that checks manager synchronization.
156157

157158
#### [Create subscription](../fragments/sub/crud/create.md)
158159

159-
Verify that a subscription can be created on the primary DSS.
160+
Verify that a subscription can be created on the primary DSS using the separate set of credentials.
161+
162+
### Verify manager synchronization test step
163+
164+
If the second set of credentials is provided, checks that the manager of a subscription is properly synchronized across all DSS instances.
165+
166+
This is done by verifying that the main credentials are not able to delete the subscription via any of the secondary DSS instances.
160167

161-
#### 🛑 Subscription deletion with different non-managing credentials on secondary DSS fails check
168+
#### ⚠️ Subscription deletion with different non-managing credentials on secondary DSS fails check
162169

163170
If the subscription can be deleted by a client which did not create it, via a DSS instance to which the subscription was synced
164171
following its creation on the primary DSS, either one of the primary DSS or the DSS that accepted the deletion failed to properly broadcast, respectively take into account, the manage of the subscription,
@@ -192,3 +199,8 @@ If a DSS returns a subscription that was previously successfully deleted from th
192199
either one of the primary DSS or the DSS that returned the subscription is in violation of **[astm.f3548.v21.DSS0210,1a](../../../../../requirements/astm/f3548/v21.md)**.
193200

194201
## [Cleanup](../clean_workspace.md)
202+
203+
This step ensures that no subscriptions with the known test IDs exists in the DSS.
204+
205+
This includes the main test subscription used in this test, as well as the extra subscription
206+
used for testing the `manager` field sync, if the test is configured to test for it.

monitoring/uss_qualifier/scenarios/astm/utm/dss/synchronization/subscription_synchronization.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class SubscriptionSynchronization(TestScenario):
4444
"""
4545

4646
SUB_TYPE = register_resource_type(379, "Subscription")
47-
ACL_SUB_TYPE = register_resource_type(380, "Subscription with different credentials")
47+
ACL_SUB_TYPE = register_resource_type(
48+
381, "Subscription with different credentials"
49+
)
4850

4951
_dss: DSSInstance
5052

@@ -156,28 +158,28 @@ def run(self, context: ExecutionContext):
156158
return
157159

158160
self.begin_test_scenario(context)
159-
self._setup_case()
161+
self._step_setup_case()
160162
self.begin_test_case("Subscription Synchronization")
161163

162164
self.begin_test_step("Create subscription validation")
163-
self._create_sub_with_params(self._sub_params)
165+
self._step_create_sub_with_params(self._sub_params)
164166
self.end_test_step()
165167

166168
self.begin_test_step("Query newly created subscription")
167-
self._query_secondaries_and_compare(self._sub_params)
169+
self._step_query_secondaries_and_compare(self._sub_params)
168170
self.end_test_step()
169171

170172
self.begin_test_step("Mutate subscription")
171173
self._test_mutate_subscriptions_shift_time()
172174
self.end_test_step()
173175

174176
self.begin_test_step("Query updated subscription")
175-
self._query_secondaries_and_compare(self._sub_params)
177+
self._step_query_secondaries_and_compare(self._sub_params)
176178
self.end_test_step()
177179

178180
if self._dss_separate_creds:
179181
self.begin_test_step("Create subscription with different credentials")
180-
182+
self._step_create_sub_separate_creds()
181183
self.end_test_step()
182184
self.begin_test_step("Verify manager synchronization")
183185
self._step_test_delete_sub_with_separate_creds()
@@ -189,17 +191,17 @@ def run(self, context: ExecutionContext):
189191
)
190192

191193
self.begin_test_step("Delete subscription")
192-
self._test_delete_sub()
194+
self._step_test_delete_sub()
193195
self.end_test_step()
194196

195197
self.begin_test_step("Query deleted subscription")
196-
self._test_get_deleted_sub()
198+
self._step_test_get_deleted_sub()
197199
self.end_test_step()
198200

199201
self.end_test_case()
200202
self.end_test_scenario()
201203

202-
def _setup_case(self):
204+
def _step_setup_case(self):
203205
self.begin_test_case("Setup")
204206
# Multiple runs of the scenario seem to rely on the same instance of it:
205207
# thus we need to reset the state of the scenario before running it.
@@ -229,7 +231,7 @@ def _ensure_no_active_subs_exist(self):
229231
self._planning_area_volume4d,
230232
)
231233

232-
def _create_sub_with_params(self, creation_params: SubscriptionParams):
234+
def _step_create_sub_with_params(self, creation_params: SubscriptionParams):
233235

234236
# TODO migrate to the try/except pattern for queries
235237
newly_created = self._dss.upsert_subscription(
@@ -261,7 +263,9 @@ def _create_sub_with_params(self, creation_params: SubscriptionParams):
261263
# Store the subscription
262264
self._current_subscription = newly_created.subscription
263265

264-
def _query_secondaries_and_compare(self, expected_sub_params: SubscriptionParams):
266+
def _step_query_secondaries_and_compare(
267+
self, expected_sub_params: SubscriptionParams
268+
):
265269
for secondary_dss in self._dss_read_instances:
266270
self._validate_get_sub_from_secondary(
267271
secondary_dss=secondary_dss,
@@ -631,7 +635,7 @@ def _step_test_delete_sub_with_separate_creds(self):
631635
check.record_failed(
632636
"Subscription deletion with main credentials did not fail",
633637
details=f"Subscription deletion with main credentials did not fail with the expected "
634-
f"status code of 403; instead returned {deleted_sub.status_code}",
638+
f"status code of 403; instead returned {deleted_sub.status_code}",
635639
query_timestamps=[deleted_sub.request.timestamp],
636640
)
637641

@@ -646,7 +650,7 @@ def _credentials_are_different(self):
646650
!= self._dss.client.auth_adapter.get_sub()
647651
)
648652

649-
def _test_delete_sub(self):
653+
def _step_test_delete_sub(self):
650654
deleted_sub = self._dss.delete_subscription(
651655
sub_id=self._sub_id, sub_version=self._current_subscription.version
652656
)
@@ -676,7 +680,7 @@ def _test_delete_sub(self):
676680

677681
self._current_subscription = None
678682

679-
def _test_get_deleted_sub(self):
683+
def _step_test_get_deleted_sub(self):
680684
for secondary_dss in self._dss_read_instances:
681685
self._confirm_secondary_has_no_sub(secondary_dss)
682686

monitoring/uss_qualifier/suites/astm/utm/dss_probing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<th><a href="../../README.md#checked-in">Checked in</a></th>
2323
</tr>
2424
<tr>
25-
<td rowspan="19" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
25+
<td rowspan="20" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
2626
<td><a href="../../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
2727
<td>Implemented</td>
2828
<td><a href="../../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a></td>

monitoring/uss_qualifier/suites/astm/utm/f3548_21.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<th><a href="../../README.md#checked-in">Checked in</a></th>
3636
</tr>
3737
<tr>
38-
<td rowspan="45" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
38+
<td rowspan="46" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
3939
<td><a href="../../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
4040
<td>Implemented</td>
4141
<td><a href="../../../scenarios/astm/utm/prep_planners.md">ASTM F3548 flight planners preparation</a><br><a href="../../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a><br><a href="../../../scenarios/astm/utm/off_nominal_planning/down_uss.md">Off-Nominal planning: down USS</a><br><a href="../../../scenarios/astm/utm/off_nominal_planning/down_uss_equal_priority_not_permitted.md">Off-Nominal planning: down USS with equal priority conflicts not permitted</a></td>

monitoring/uss_qualifier/suites/faa/uft/message_signing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<th><a href="../../README.md#checked-in">Checked in</a></th>
1919
</tr>
2020
<tr>
21-
<td rowspan="45" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
21+
<td rowspan="46" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
2222
<td><a href="../../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
2323
<td>Implemented</td>
2424
<td><a href="../../../scenarios/astm/utm/prep_planners.md">ASTM F3548 flight planners preparation</a><br><a href="../../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a><br><a href="../../../scenarios/astm/utm/off_nominal_planning/down_uss.md">Off-Nominal planning: down USS</a><br><a href="../../../scenarios/astm/utm/off_nominal_planning/down_uss_equal_priority_not_permitted.md">Off-Nominal planning: down USS with equal priority conflicts not permitted</a></td>

monitoring/uss_qualifier/suites/interuss/dss/all_tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
<td><a href="../../../scenarios/astm/netrid/v22a/dss/heavy_traffic_concurrent.md">ASTM NetRID DSS: Concurrent Requests</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/isa_expiry.md">ASTM NetRID DSS: ISA Expiry</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/isa_subscription_interactions.md">ASTM NetRID DSS: ISA Subscription Interactions</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/isa_simple.md">ASTM NetRID DSS: Simple ISA</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/isa_validation.md">ASTM NetRID DSS: Submitted ISA Validations</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/subscription_simple.md">ASTM NetRID DSS: Subscription Simple</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/subscription_validation.md">ASTM NetRID DSS: Subscription Validation</a><br><a href="../../../scenarios/astm/netrid/v22a/dss/token_validation.md">ASTM NetRID DSS: Token Validation</a></td>
409409
</tr>
410410
<tr>
411-
<td rowspan="19" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
411+
<td rowspan="20" style="vertical-align:top;"><a href="../../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
412412
<td><a href="../../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
413413
<td>Implemented</td>
414414
<td><a href="../../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a></td>

monitoring/uss_qualifier/suites/uspace/flight_auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<th><a href="../README.md#checked-in">Checked in</a></th>
2020
</tr>
2121
<tr>
22-
<td rowspan="45" style="vertical-align:top;"><a href="../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
22+
<td rowspan="46" style="vertical-align:top;"><a href="../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
2323
<td><a href="../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
2424
<td>Implemented</td>
2525
<td><a href="../../scenarios/astm/utm/prep_planners.md">ASTM F3548 flight planners preparation</a><br><a href="../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a><br><a href="../../scenarios/astm/utm/off_nominal_planning/down_uss.md">Off-Nominal planning: down USS</a><br><a href="../../scenarios/astm/utm/off_nominal_planning/down_uss_equal_priority_not_permitted.md">Off-Nominal planning: down USS with equal priority conflicts not permitted</a></td>

monitoring/uss_qualifier/suites/uspace/required_services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@
454454
<td><a href="../../scenarios/astm/netrid/v22a/dss/heavy_traffic_concurrent.md">ASTM NetRID DSS: Concurrent Requests</a><br><a href="../../scenarios/astm/netrid/v22a/dss/isa_expiry.md">ASTM NetRID DSS: ISA Expiry</a><br><a href="../../scenarios/astm/netrid/v22a/dss/isa_subscription_interactions.md">ASTM NetRID DSS: ISA Subscription Interactions</a><br><a href="../../scenarios/astm/netrid/v22a/dss/isa_simple.md">ASTM NetRID DSS: Simple ISA</a><br><a href="../../scenarios/astm/netrid/v22a/dss/isa_validation.md">ASTM NetRID DSS: Submitted ISA Validations</a><br><a href="../../scenarios/astm/netrid/v22a/dss/subscription_simple.md">ASTM NetRID DSS: Subscription Simple</a><br><a href="../../scenarios/astm/netrid/v22a/dss/subscription_validation.md">ASTM NetRID DSS: Subscription Validation</a><br><a href="../../scenarios/astm/netrid/v22a/dss/token_validation.md">ASTM NetRID DSS: Token Validation</a></td>
455455
</tr>
456456
<tr>
457-
<td rowspan="45" style="vertical-align:top;"><a href="../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
457+
<td rowspan="46" style="vertical-align:top;"><a href="../../requirements/astm/f3548/v21.md">astm<br>.f3548<br>.v21</a></td>
458458
<td><a href="../../requirements/astm/f3548/v21.md">DSS0005,1</a></td>
459459
<td>Implemented</td>
460460
<td><a href="../../scenarios/astm/utm/prep_planners.md">ASTM F3548 flight planners preparation</a><br><a href="../../scenarios/astm/utm/op_intent_ref_access_control.md">ASTM F3548-21 UTM DSS Operational Intent Reference Access Control</a><br><a href="../../scenarios/astm/utm/dss/authentication/authentication_validation.md">ASTM SCD DSS: Interfaces authentication</a><br><a href="../../scenarios/astm/utm/dss/subscription_simple.md">ASTM SCD DSS: Subscription Simple</a><br><a href="../../scenarios/astm/utm/dss/synchronization/subscription_synchronization.md">ASTM SCD DSS: Subscription Synchronization</a><br><a href="../../scenarios/astm/utm/dss/subscription_validation.md">ASTM SCD DSS: Subscription Validation</a><br><a href="../../scenarios/astm/utm/off_nominal_planning/down_uss.md">Off-Nominal planning: down USS</a><br><a href="../../scenarios/astm/utm/off_nominal_planning/down_uss_equal_priority_not_permitted.md">Off-Nominal planning: down USS with equal priority conflicts not permitted</a></td>

0 commit comments

Comments
 (0)