| 1 |
test_createSUBunderCNTFail |
CREATE a <SUB> under <CNT> targeting the 2nd AE for notifications, before any <PCH> exists for that AE -> expects SUBSCRIPTION_VERIFICATION_INITIATION_FAILED (no channel to deliver the verification request). |
| 2 |
test_createPCHunderAE2 |
CREATE a <PCH> under the 2nd <AE> with rqag=False -> expects CREATED. |
| 3 |
test_retrievePCUunderAE2Fail |
RETRIEVE the 2nd AE's pcu with nothing pending -> expects REQUEST_TIMEOUT (implicit timeout waiting for a request to poll). |
| 4 |
test_createSUBunderCNT |
In parallel: start a background thread polling the 2nd AE's pcu and respond OK to the incoming verification request, while the main thread CREATEs a <SUB> under <CNT> targeting the 2nd AE -> CREATE expects CREATED; the polling thread's verification handling is checked internally; waits for the polling thread to finish. |
| 5 |
test_DeleteSUBunderCNT |
In parallel: poll the 2nd AE's pcu expecting a subscription-deletion notification (sud) while DELETEing the <SUB> -> DELETE expects DELETED; polling thread validates and answers the delete notification. |
| 6 |
test_createSUB2underCNTAnswerWithWrongTargetFail |
Poll using the 2nd AE's originator (expecting a REQUEST_TIMEOUT since no request will arrive there) while CREATEing a <SUB> with the wrong originator (the 2nd AE itself, lacking permission) -> CREATE expects ORIGINATOR_HAS_NO_PRIVILEGE; no subscription created. |
| 7 |
test_createSUB2underCNTAnswerWithEmptyAnswerFail |
Poll and answer the verification request with an empty ({}) notification body, while CREATEing a <SUB> -> CREATE expects SUBSCRIPTION_VERIFICATION_INITIATION_FAILED (malformed verification response). |
| 8 |
test_createSUB2underCNTAnswerWithWrongAnswerFail |
Poll and answer the verification request with a wrongly-typed notification body (m2m:rqp instead of m2m:rsp), while CREATEing a <SUB> -> CREATE expects SUBSCRIPTION_VERIFICATION_INITIATION_FAILED. |
| 9 |
test_accesPCUwithWrongOriginator |
Poll the 2nd AE's pcu using the 1st AE's originator (which lacks polling rights there) -> expects ORIGINATOR_HAS_NO_PRIVILEGE. |
| 10 |
test_accessPCUwithshortExpiration |
RETRIEVE the 2nd AE's pcu with a short request-expiration header (half the normal delay) and nothing pending -> expects REQUEST_TIMEOUT. |
| 11 |
test_updatePCHaggregate |
UPDATE the 2nd AE's <PCH> setting rqag=True -> expects UPDATED; checks the returned rqag. |
| 12 |
test_aggregation |
Poll and answer a <SUB> verification request while CREATEing a <SUB> under <CNT> -> expects CREATED; UPDATE the <PCH> to enable aggregation (rqag=True) -> expects UPDATED; CREATE 5 <CIN>s concurrently in separate threads (each triggers a notification) -> each expects CREATED; poll the pcu once more with aggregated=True -> expects OK, and the response is validated as an m2m:agrp list containing all the aggregated notification requests, each individually answered OK. |
| 13 |
test_createNotificationDoPolling |
CREATE a <CIN> under <CNT> (intended to trigger a notification for later polling, marked TODO/incomplete in the source) -> expects CREATED. |