Skip to content

Commit 6bfaaf3

Browse files
committed
[uss_qualifier/scenarios/netrid/dss/isa_subscription_interactions] specify some check severity in test scenario documentation only (contrib #404)
1 parent 9ce3338 commit 6bfaaf3

14 files changed

+72
-88
lines changed

monitoring/uss_qualifier/scenarios/astm/netrid/common/dss/isa_subscription_interactions.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def _new_subscription_in_isa_step(self):
141141
]:
142142
check.record_failed(
143143
summary="Subscription response does not include the freshly created ISA",
144-
severity=Severity.High,
145144
details=f"The subscription created for the area {self._isa_area} is expected to contain the ISA created for this same area. The returned subscription did not mention it.",
146145
query_timestamps=[
147146
created_isa.dss_query.query.request.timestamp,
@@ -156,7 +155,6 @@ def _new_subscription_in_isa_step(self):
156155
if created_subscription.subscription.notification_index != 0:
157156
check.record_failed(
158157
summary="Subscription notification_index is not 0",
159-
severity=Severity.High,
160158
details=f"The subscription created for the area {self._isa_area} is expected to have a notification_index of 0. The returned subscription has a notification_index of {created_subscription.subscription.notification_index}.",
161159
query_timestamps=[created_subscription.query.request.timestamp],
162160
)
@@ -192,7 +190,6 @@ def _new_subscription_in_isa_step(self):
192190
if created_subscription.subscription.id not in subs_to_mutated_isa.keys():
193191
check.record_failed(
194192
summary="ISA mutation response does not contain expected subscription ID",
195-
severity=Severity.High,
196193
details="Mutating an ISA to which a subscription was made, the DSS failed to return the subscription ID in the response.",
197194
query_timestamps=[
198195
created_isa.dss_query.query.request.timestamp,
@@ -213,7 +210,6 @@ def _new_subscription_in_isa_step(self):
213210
if sub_to_mutated_isa.notification_index <= 0:
214211
check.record_failed(
215212
summary="Subscription notification_index has not been increased",
216-
severity=Severity.High,
217213
details=f"The subscription created for the area {self._isa_area} is expected to have a notification_index of 1 or more. The returned subscription has a notification_index of {subs_to_mutated_isa[created_subscription.subscription.id].notification_index}.",
218214
query_timestamps=[created_subscription.query.request.timestamp],
219215
)
@@ -247,7 +243,6 @@ def _new_subscription_in_isa_step(self):
247243
if created_subscription.subscription.id not in subs_to_deleted_isa:
248244
check.record_failed(
249245
summary="ISA deletion response does not contain expected subscription ID",
250-
severity=Severity.High,
251246
details="Deleting an ISA to which a subscription was made, the DSS failed to return the subscription ID in the response.",
252247
query_timestamps=[
253248
created_isa.dss_query.query.request.timestamp,
@@ -270,8 +265,7 @@ def _new_subscription_in_isa_step(self):
270265
if not notification.success:
271266
check.record_failed(
272267
"Could not notify ISA subscriber",
273-
Severity.Medium,
274-
f"Attempting to notify subscriber for ISA {self._isa_id} at {subscriber_url} resulted in {notification.status_code}",
268+
details=f"Attempting to notify subscriber for ISA {self._isa_id} at {subscriber_url} resulted in {notification.status_code}",
275269
query_timestamps=[notification.query.request.timestamp],
276270
)
277271

@@ -289,7 +283,6 @@ def _new_subscription_in_isa_step(self):
289283
):
290284
check.record_failed(
291285
summary="Subscription notification_index has not been incremented",
292-
severity=Severity.High,
293286
details=f"The subscription created for the area {self._isa_area} is expected to have its notification increased after the subscription was deleted."
294287
f"The returned subscription has a notification_index of {subs_after_deletion.notification_index}, whilte the previous notification_index for that subscription was {sub_to_mutated_isa.notification_index}",
295288
query_timestamps=[created_subscription.query.request.timestamp],
@@ -357,7 +350,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
357350
if self._isa_id not in [isa.id for isa in mutated_subscription.isas]:
358351
check.record_failed(
359352
summary="Subscription response does not include the freshly created ISA",
360-
severity=Severity.High,
361353
details=f"The subscription created for the area {self._isa_area} is expected to contain the ISA created for this same area. The returned subscription did not mention it.",
362354
query_timestamps=[
363355
created_isa.dss_query.query.request.timestamp,
@@ -372,7 +364,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
372364
if created_subscription.subscription.notification_index != 0:
373365
check.record_failed(
374366
summary="Subscription notification_index is not 0",
375-
severity=Severity.High,
376367
details=f"The subscription created for the area {self._isa_area} is expected to have a notification_index of 0. The returned subscription has a notification_index of {created_subscription.subscription.notification_index}.",
377368
query_timestamps=[created_subscription.query.request.timestamp],
378369
)
@@ -408,7 +399,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
408399
if created_subscription.subscription.id not in subs_to_mutated_isa.keys():
409400
check.record_failed(
410401
summary="ISA mutation response does not contain expected subscription ID",
411-
severity=Severity.High,
412402
details="Mutating an ISA to which a subscription was made and then subsequently moved to the ISA's boundary,"
413403
" the DSS failed to return the subscription ID in the response.",
414404
query_timestamps=[
@@ -431,7 +421,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
431421
if sub_to_mutated_isa.notification_index <= 0:
432422
check.record_failed(
433423
summary="Subscription notification_index has not been increased",
434-
severity=Severity.High,
435424
details=f"The subscription created for the area {self._isa_area} is expected to have a notification_index of 1 or more. The returned subscription has a notification_index of {subs_to_mutated_isa[created_subscription.subscription.id].notification_index}.",
436425
query_timestamps=[created_subscription.query.request.timestamp],
437426
)
@@ -465,7 +454,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
465454
if created_subscription.subscription.id not in subs_to_deleted_isa:
466455
check.record_failed(
467456
summary="ISA deletion response does not contain expected subscription ID",
468-
severity=Severity.High,
469457
details="Deleting an ISA to which a subscription was made, the DSS failed to return the subscription ID in the response.",
470458
query_timestamps=[
471459
created_isa.dss_query.query.request.timestamp,
@@ -486,8 +474,7 @@ def _mutate_subscription_towards_isa_boundary_step(self):
486474
if not notification.success:
487475
check.record_failed(
488476
"Could not notify ISA subscriber",
489-
Severity.Medium,
490-
f"Attempting to notify subscriber for ISA {self._isa_id} at {subscriber_url} resulted in {notification.status_code}",
477+
details=f"Attempting to notify subscriber for ISA {self._isa_id} at {subscriber_url} resulted in {notification.status_code}",
491478
query_timestamps=[notification.query.request.timestamp],
492479
)
493480

@@ -505,7 +492,6 @@ def _mutate_subscription_towards_isa_boundary_step(self):
505492
):
506493
check.record_failed(
507494
summary="Subscription notification_index has not been incremented",
508-
severity=Severity.High,
509495
details=f"The subscription created for the area {self._isa_area} is expected to have its notification increased after the subscription was deleted."
510496
f"The returned subscription has a notification_index of {subs_after_deletion.notification_index}, whilte the previous notification_index for that subscription was {sub_to_mutated_isa.notification_index}",
511497
query_timestamps=[created_subscription.query.request.timestamp],

monitoring/uss_qualifier/scenarios/astm/netrid/dss_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ def put_isa_expect_response_code(
306306
q=mutated_isa.dss_query,
307307
fail_msg="ISA Put succeeded when expecting a failure",
308308
required_status_code=expected_error_codes,
309-
severity=Severity.High,
310309
fail_details=f"The submitted query was expected to fail. Payload: {mutated_isa.dss_query.query.request.json}",
311310
)
312311
return mutated_isa
@@ -890,7 +889,6 @@ def del_sub(
890889
if sub_version != del_sub.subscription.version:
891890
check.record_failed(
892891
summary=f"Deleted subscription did not match",
893-
severity=Severity.High,
894892
details=f"DSS reported deletion of version {sub_version} while expecting {del_sub.subscription.version}",
895893
query_timestamps=[del_sub.query.request.timestamp],
896894
)

monitoring/uss_qualifier/scenarios/astm/netrid/v19/dss/isa_expiry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This test case creates an ISA with a short lifetime and verifies that it is not
3030

3131
### ISA Expiry test step
3232

33-
#### Create short-lived ISA check
33+
#### 🛑 Create short-lived ISA check
3434

3535
Not allowing an ISA to be created violates **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**
3636

monitoring/uss_qualifier/scenarios/astm/netrid/v19/dss/isa_subscription_interactions.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,61 +47,61 @@ This test case will do the following, using the DSS being tested:
4747
This test step checks for interactions between ISAs and a subscription that is created within the ISA, then
4848
subsequently mutated to only barely intersect with the ISA.
4949

50-
#### Create an ISA check
50+
#### 🛑 Create an ISA check
5151

5252
If the ISA cannot be created, the PUT DSS endpoint in **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)** is likely not implemented correctly.
5353

54-
#### Create a subscription within the ISA footprint check
54+
#### 🛑 Create a subscription within the ISA footprint check
5555

5656
The DSS should allow the creation of a subscription within the ISA footprint, otherwise it is in violation of **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
5757

58-
#### Subscription for the ISA's area mentions the ISA check
58+
#### 🛑 Subscription for the ISA's area mentions the ISA check
5959

6060
A subscription that is created for a volume that intersects with the previously created ISA should mention
6161
the previously created ISA. If not, the serving DSS is in violation of **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**.
6262

63-
#### Newly created subscription has a notification_index of 0 check
63+
#### 🛑 Newly created subscription has a notification_index of 0 check
6464

6565
A newly created subscription is expected to have a notification index of 0, otherwise the DSS implementation under
6666
test does not comply with **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
6767

68-
#### Mutate the ISA check
68+
#### 🛑 Mutate the ISA check
6969

7070
If the ISA cannot be mutated, **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)** is likely not implemented correctly.
7171

72-
#### Response to the mutation of the ISA contains subscription ID check
72+
#### 🛑 Response to the mutation of the ISA contains subscription ID check
7373

7474
When an ISA is mutated, the DSS must return the identifiers for any subscription that was made to the ISA,
7575
or be in violation of **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**.
7676

77-
#### Subscription to an ISA has its notification index incremented after mutation check
77+
#### 🛑 Subscription to an ISA has its notification index incremented after mutation check
7878

7979
When an ISA is mutated, the DSS must increment the notification index of any subscription to that ISA,
8080
and return the up-to-date subscription in the response to the query mutating the ISA.
8181

8282
Failure to do so means that the DSS is not properly implementing **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**.
8383

84-
#### Delete the ISA check
84+
#### 🛑 Delete the ISA check
8585

8686
If that ISA cannot be deleted, the **[astm.f3411.v19.DSS0030,d](../../../../../requirements/astm/f3411/v19.md)** requirement to implement the ISA deletion endpoint might not be met.
8787

88-
#### Response to the deletion of the ISA contains subscription ID check
88+
#### 🛑 Response to the deletion of the ISA contains subscription ID check
8989

9090
When an ISA is deleted, the DSS must return the identifiers for any subscription that was made to the ISA,
9191
or be in violation of **[astm.f3411.v19.DSS0030,b](../../../../../requirements/astm/f3411/v19.md)**.
9292

93-
#### Subscription to an ISA has its notification index incremented after deletion check
93+
#### 🛑 Subscription to an ISA has its notification index incremented after deletion check
9494

9595
When an ISA is deleted, the DSS must increment the notification index of any subscription to that ISA,
9696
and return the up-to-date subscription in the response to the query deleting the ISA.
9797

9898
Failure to do so means that the DSS is not properly implementing **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**.
9999

100-
#### Subscription can be deleted check
100+
#### 🛑 Subscription can be deleted check
101101

102102
**[astm.f3411.v19.DSS0030,d](../../../../../requirements/astm/f3411/v19.md)** requires the implementation of the DSS endpoint to allow callers to delete subscriptions they created.
103103

104-
#### Notified subscriber check
104+
#### ⚠️ Notified subscriber check
105105

106106
Notifications to any subscriber to the created ISA need to be successful. If a notification cannot be delivered, then the **[astm.f3411.v19.NET0730](../../../../../requirements/astm/f3411/v19.md)** requirement to implement the POST ISAs endpoint isn't met.
107107

@@ -110,38 +110,38 @@ Notifications to any subscriber to the created ISA need to be successful. If a
110110
This test step checks for interactions between ISAs and a subscription that is created within the ISA and the mutated
111111
to only barely overlap with the ISA.
112112

113-
#### Create an ISA check
113+
#### 🛑 Create an ISA check
114114

115115
If the ISA cannot be created, the PUT DSS endpoint in **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)** is likely not implemented correctly.
116116

117-
#### Create a subscription within the ISA footprint check
117+
#### 🛑 Create a subscription within the ISA footprint check
118118

119119
The DSS should allow the creation of a subscription within the ISA footprint, otherwise it is in violation of **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
120120

121-
#### Mutate the subscription towards the ISA boundary check
121+
#### 🛑 Mutate the subscription towards the ISA boundary check
122122

123123
The DSS should allow a valid mutation of a subscription's area, otherwise it is in violation of **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
124124

125-
#### Subscription for the ISA's area mentions the ISA check
125+
#### 🛑 Subscription for the ISA's area mentions the ISA check
126126

127127
A subscription that is created for a volume that intersects with the previously created ISA should mention
128128
the previously created ISA. If not, the serving DSS is in violation of **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**.
129129

130-
#### Mutated subscription has a notification_index of 0 check
130+
#### 🛑 Mutated subscription has a notification_index of 0 check
131131

132132
A newly created subscription is expected to have a notification index of 0, otherwise the DSS implementation under
133133
test does not comply with **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
134134

135-
#### Mutate the ISA check
135+
#### 🛑 Mutate the ISA check
136136

137137
If the ISA cannot be mutated, **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)** is likely not implemented correctly.
138138

139-
#### Response to the mutation of the ISA contains subscription ID check
139+
#### 🛑 Response to the mutation of the ISA contains subscription ID check
140140

141141
When an ISA is mutated, the DSS must return the identifiers for any subscription that was made to the ISA,
142142
or be in violation of **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**.
143143

144-
#### Subscription to an ISA has its notification index incremented after mutation check
144+
#### 🛑 Subscription to an ISA has its notification index incremented after mutation check
145145

146146
When an ISA is mutated, the DSS must increment the notification index of any subscription to that ISA,
147147
and return the up-to-date subscription in the response to the query mutating the ISA.
@@ -153,27 +153,27 @@ Failure to do so means that the DSS is not properly implementing **[astm.f3411.v
153153
A subscription that is created for a volume that only barely overlaps with the previously created ISA should still
154154
contain the ISA in the reply from the server, otherwise the DSS does not comply with **[astm.f3411.v19.DSS0030,c](../../../../../requirements/astm/f3411/v19.md)**
155155

156-
#### Delete the ISA check
156+
#### 🛑 Delete the ISA check
157157

158158
If that ISA cannot be deleted, the **[astm.f3411.v19.DSS0030,d](../../../../../requirements/astm/f3411/v19.md)** requirement to implement the ISA deletion endpoint might not be met.
159159

160-
#### Response to the deletion of the ISA contains subscription ID check
160+
#### 🛑 Response to the deletion of the ISA contains subscription ID check
161161

162162
When an ISA is deleted, the DSS must return the identifiers for any subscription that was made to the ISA,
163163
or be in violation of **[astm.f3411.v19.DSS0030,b](../../../../../requirements/astm/f3411/v19.md)**.
164164

165-
#### Subscription to an ISA has its notification index incremented after deletion check
165+
#### 🛑 Subscription to an ISA has its notification index incremented after deletion check
166166

167167
When an ISA is deleted, the DSS must increment the notification index of any subscription to that ISA,
168168
and return the up-to-date subscription in the response to the query deleting the ISA.
169169

170170
Failure to do so means that the DSS is not properly implementing **[astm.f3411.v19.DSS0030,a](../../../../../requirements/astm/f3411/v19.md)**.
171171

172-
#### Subscription can be deleted check
172+
#### 🛑 Subscription can be deleted check
173173

174174
**[astm.f3411.v19.DSS0030,d](../../../../../requirements/astm/f3411/v19.md)** requires the implementation of the DSS endpoint to allow callers to delete subscriptions they created.
175175

176-
#### Notified subscriber check
176+
#### ⚠️ Notified subscriber check
177177

178178
Notifications to any subscriber to the created ISA need to be successful. If a notification cannot be delivered, then the **[astm.f3411.v19.NET0730](../../../../../requirements/astm/f3411/v19.md)** requirement to implement the POST ISAs endpoint isn't met.
179179

0 commit comments

Comments
 (0)