| 1 |
test_checkHTTPRVI |
RETRIEVE the <CSEBase> -> expects OK; checks the X-M2M-RVI response header matches the configured release version. |
| 2 |
test_checkHTTPRET |
RETRIEVE the <CSEBase> with an absolute RET header 10s in the future -> expects OK. |
| 3 |
test_checkHTTPVSI |
RETRIEVE the <CSEBase> with a VSI (vendor info) header -> expects OK; checks the header is echoed back. |
| 4 |
test_checkHTTPRETRelative |
RETRIEVE the <CSEBase> with a relative (milliseconds) RET header -> expects OK. |
| 5 |
test_checkHTTPRETWrong |
RETRIEVE the <CSEBase> with an absolute RET header in the past -> expects REQUEST_TIMEOUT. |
| 6 |
test_checkHTTPRETRelativeWrong |
RETRIEVE the <CSEBase> with a negative relative RET -> expects REQUEST_TIMEOUT. |
| 7 |
test_checkHTTPRVIWrongInRequest |
RETRIEVE the <CSEBase> with an unsupported RVI version ('1') -> expects RELEASE_VERSION_NOT_SUPPORTED. |
| 8 |
test_createUnknownResourceTypeFail |
CREATE a resource with an unrecognized numeric type (999) and a non-standard JSON key -> expects BAD_REQUEST. |
| 9 |
test_createNoResourceTypeFail |
CREATE a resource with ty=None (no type specified) -> expects BAD_REQUEST. |
| 10 |
test_sendNotificationToOwnCSEFail |
NOTIFY the <CSEBase> itself with a generic m2m:sgn body -> expects BAD_REQUEST. |
| 11 |
test_createEmpty |
CREATE an <AE> with None as the body -> expects BAD_REQUEST. |
| 12 |
test_updateEmpty |
UPDATE the <CSEBase> with None as the body -> expects BAD_REQUEST. |
| 13 |
test_createAlphaResourceType |
CREATE a resource passing a non-numeric string ('wrong') as the resource type -> expects BAD_REQUEST. |
| 14 |
test_createWithWrongResourceType |
CREATE a resource where the JSON body key (m2m:ae) doesn't match the declared resource type (T.CNT) -> expects BAD_REQUEST. |
| 15 |
test_checkHTTPmissingOriginator |
RETRIEVE the <CSEBase> with no originator at all (HTTP binding only) -> expects BAD_REQUEST. |
| 16 |
test_checkResponseOT |
RETRIEVE the <CSEBase> with an OT (originating timestamp) header -> expects OK; checks the response echoes a valid, parseable ISO 8601 OT header. |
| 17 |
test_checkTargetRVI |
CREATE an <AE> declaring srv=['2'] (release version 2) -> expects CREATED; NOTIFY the <AE> -> expects OK; checks the resulting notification's X-M2M-RVI header matches the target's declared release version ('2'), not the sender's; DELETE the <AE> -> expects DELETED. |
| 18 |
test_validateListFail |
CREATE an <AE> with a lbl list containing a mixed-type element (a string and an integer) -> expects BAD_REQUEST. |
| 19 |
test_resourceWithoutRN |
CREATE a <CNT> with no rn -> expects CREATED (CSE auto-generates a name); RETRIEVE it by the generated rn -> expects OK; DELETE it -> expects DELETED. |
| 20 |
test_subWithoutRN |
CREATE a <SUB> with no rn -> expects CREATED; RETRIEVE it by the generated rn -> expects OK; DELETE it -> expects DELETED. |
| 21 |
test_createAEContentTypeWithSpacesHeader |
CREATE an <AE> (HTTP only) with a Content-Type header containing extra spaces around the ty parameter -> expects CREATED; DELETE it -> expects DELETED. |
| 22 |
test_retrieveCSEwithResourceTypeFail |
RETRIEVE the <CSEBase> with a Content-Type header that includes a ty parameter (not allowed on RETRIEVE) -> expects BAD_REQUEST. |
| 23 |
test_tokenValidationFail |
CREATE a <CNT> -> expects CREATED; UPDATE its lbl with invalid token values in sequence (double space, tab, newline, carriage return, empty string) -> each expects BAD_REQUEST; cleanup DELETE (result not checked). |
| 24 |
test_wrongRCNinUpdateFail |
CREATE a <CNT> -> expects CREATED; UPDATE it with rcn=2 (an RCN not valid for UPDATE) -> expects BAD_REQUEST; DELETE the <CNT> -> expects DELETED. |
| 25 |
test_partialRetrieveCSEBaseSingle |
RETRIEVE the <CSEBase> with atrl=rn (partial attribute retrieve) -> expects OK; checks only rn is present and ri is absent. |
| 26 |
test_partialRetrieveCSEBaseMultiple |
RETRIEVE the <CSEBase> with atrl=rn+ty -> expects OK; checks rn/ty present and ri absent. |
| 27 |
test_partialDeleteCSEBaseFail |
DELETE the <CSEBase> with an atrl query parameter (partial delete not supported) -> expects BAD_REQUEST. |
| 28 |
test_partialRetrieveCSEBaseWrongRcnFail |
RETRIEVE the <CSEBase> with atrl=rn combined with an incompatible rcn=2 -> expects BAD_REQUEST. |
| 29 |
test_partialRetrieveCSEBaseWrongAttributeFail |
RETRIEVE the <CSEBase> with atrl=mni (an attribute that doesn't exist on CSEBase) -> expects BAD_REQUEST. |
| 30 |
test_partialRetrieveCSEBaseROAttribute |
RETRIEVE the <CSEBase> with atrl=ctm (a valid read-only attribute) -> expects OK; checks ri is absent (only requested attribute returned). |
| 31 |
test_partialRetrieveCSingleOptionalAttribute |
CREATE a <CNT> -> expects CREATED; RETRIEVE it with atrl=mni -> expects OK, checks ri absent; DELETE the <CNT> -> expects DELETED. |
| 32 |
test_partialRetrieveFCNT |
CREATE a <FCNT> (cod:lock) -> expects CREATED; RETRIEVE it with atrl=lock -> expects OK, checks ri absent but lock present; DELETE the <FCNT> -> expects DELETED. |
| 33 |
test_notifyAE |
CREATE an <AE> with a notification poa -> expects CREATED; NOTIFY the <AE> with a generic m2m:sgn body (testing that extra query arguments aren't required) -> expects OK; checks a notification and its headers were received and no extraneous arguments were parsed; DELETE the <AE> -> expects DELETED. |
| 34 |
test_noResponseRetrieve |
CREATE a <CNT> -> expects CREATED; RETRIEVE it with rt=noResponse -> expects NO_CONTENT with an empty body; DELETE the <CNT> -> expects DELETED. |
| 35 |
test_noResponseCreate |
CREATE a <CNT> with rt=noResponse -> expects NO_CONTENT with an empty body; DELETE the <CNT> -> expects DELETED. |
| 36 |
test_noResponseUpdate |
CREATE a <CNT> -> expects CREATED; UPDATE it with rt=noResponse -> expects NO_CONTENT with an empty body; DELETE the <CNT> -> expects DELETED. |
| 37 |
test_noResponseDelete |
CREATE a <CNT> -> expects CREATED; DELETE it with rt=noResponse -> expects NO_CONTENT with an empty body. |