You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: monitoring/uss_qualifier/scenarios/astm/utm/dss/oir_implicit_sub_handling.md
+36-12Lines changed: 36 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,7 @@ If the newly created OIR does not mention the implicit subscription from the pre
92
92
the DSS is either improperly managing implicit subscriptions, or failing to report the subscriptions relevant to an OIR,
93
93
and therefore in violation of **[astm.f3548.v21.DSS0005,1](../../../../requirements/astm/f3548/v21.md)** or **[astm.f3548.v21.DSS0005,5](../../../../requirements/astm/f3548/v21.md)** respectively.
94
94
95
-
#### 🛑 No implicit subscription was attached check
96
-
97
-
If the DSS attached an implicit subscription, by either creating or re-using an existing one, to the OIR that was created in this step,
98
-
the DSS is in violation of **[astm.f3548.v21.DSS0005,1](../../../../requirements/astm/f3548/v21.md)**.
95
+
#### [OIR is not attached to an implicit subscription](./fragments/oir/oir_has_expected_subscription.md)
99
96
100
97
### Mutate OIR with implicit subscription to not overlap anymore test step
101
98
@@ -135,11 +132,7 @@ that were present when the test case started.
135
132
Otherwise, the DSS may be failing to properly implement **[astm.f3548.v21.DSS0005,1](../../../../requirements/astm/f3548/v21.md)**
136
133
or **[astm.f3548.v21.DSS0005,5](../../../../requirements/astm/f3548/v21.md)**.
137
134
138
-
#### 🛑 No implicit subscription was attached check
139
-
140
-
If the DSS attached an implicit subscription, by either creating or re-using an existing one, to the OIR that was created in this step,
141
-
the DSS is in violation of **[astm.f3548.v21.DSS0005,1](../../../../requirements/astm/f3548/v21.md)**.
142
-
135
+
#### [OIR is not attached to an implicit subscription](./fragments/oir/oir_has_expected_subscription.md)
143
136
## Implicit subscriptions are properly deleted when required by OIR mutation test case
144
137
145
138
This test case verifies that implicit subscriptions are properly removed if they become unnecessary following the mutation of an OIR.
@@ -271,10 +264,41 @@ Replace the first OIR's explicit subscription with the implicit one created in t
271
264
272
265
Confirm that the query to replace the second OIR's explicit subscription with the second OIR's implicit subscription succeeds.
273
266
274
-
#### 🛑 The first OIR is now attached to the specified implicit subscription check
267
+
#### [First OIR is now attached to the specified implicit subscription](fragments/oir/oir_has_expected_subscription.md)
268
+
269
+
## Existing implicit subscription can be attached to OIR without subscription test case
270
+
271
+
This test case verifies that an implicit subscription can be attached to an OIR that is not currently attached to any subscription.
272
+
273
+
### Ensure clean workspace test step
274
+
275
+
Reset the workspace for this test case.
276
+
277
+
#### [Clean any existing OIRs with known test IDs](clean_workspace_op_intents.md)
278
+
279
+
#### [Clean any existing subscriptions with known test IDs](clean_workspace_subs.md)
280
+
281
+
### [Create OIR with no subscription test step](./fragments/oir/crud/create_query.md)
282
+
283
+
#### [OIR is not attached to an implicit subscription](./fragments/oir/oir_has_expected_subscription.md)
284
+
285
+
### [Create second OIR with an implicit subscription test step](./fragments/oir/crud/create_query.md)
286
+
287
+
#### [An implicit subscription was created](./fragments/sub/implicit_create.md)
288
+
289
+
### Attach OIR without subscription to implicit subscription test step
290
+
291
+
Attach the first OIR to the implicit subscription created with the second OIR.
292
+
293
+
#### [Attach OIR to implicit subscription](./fragments/oir/crud/update_query.md)
294
+
295
+
### Confirm OIR is now attached to implicit subscription test step
296
+
297
+
Confirms that the DSS properly attached the first OIR to the implicit subscription created with the second OIR.
self.begin_test_step("Confirm OIR is now attached to implicit subscription")
852
+
853
+
# First, sanity check of the value reported by the DSS at the previous step
854
+
withself.check(
855
+
"OIR is attached to expected subscription",
856
+
self._pid,
857
+
) ascheck:
858
+
ifsub_implicit.id!=oir_updated.subscription_id:
859
+
check.record_failed(
860
+
summary="Implicit subscription not attached to OIR",
861
+
details=f"The subscription {sub_implicit.id} was attached to the OIR, but it reports being attached to subscription {oir_no_sub.subscription_id} instead.",
862
+
)
863
+
864
+
# Then, do an actual query of the OIR
865
+
866
+
withself.check("Get operational intent reference by ID", self._pid) ascheck:
summary="Implicit subscription not attached to OIR",
885
+
details=f"The subscription {sub_implicit.id} was attached to the OIR, but it reports being attached to subscription {oir_queried.subscription_id} instead.",
0 commit comments