| 1 |
test_retrieveUnknownResource |
RETRIEVE a non-existent resource path -> expects NOT_FOUND. |
| 2 |
test_discoverUnknownResource |
RETRIEVE (discovery, fu=1) a non-existent resource path -> expects NOT_FOUND. |
| 3 |
test_discoverUnknownAttribute |
RETRIEVE with an unrecognized query parameter (xxx=yyy) -> expects BAD_REQUEST. |
| 4 |
test_retrieveCNIwithWrongSZB |
RETRIEVE with rcn=childResourceReferences and an invalid negative szb (size below) -> expects BAD_REQUEST. |
| 5 |
test_discoverCNTunderAERCN6 |
Discover <CNT>s under <AE> with fu=1, rcn=childResourceReferences, ty=CNT -> expects OK; checks 2 distinct reference entries with correct nm/typ/val matching the two created containers. |
| 6 |
test_discoveryCNTunderAERCN11 |
Discover <CNT>s with rcn=discoveryResultReferences -> expects OK; checks 2 distinct URIs in m2m:uril matching the containers. |
| 7 |
test_discoverCNTunderAEWrongRCN1 |
Discover with rcn=attributes (not valid for discovery) -> expects BAD_REQUEST. |
| 8 |
test_discoverCNTunderAEWrongRCN4 |
Discover with rcn=attributesAndChildResources (invalid for discovery) -> expects BAD_REQUEST. |
| 9 |
test_discoverCNTunderAEWrongRCN5 |
Discover with rcn=attributesAndChildResourceReferences (invalid for discovery) -> expects BAD_REQUEST. |
| 10 |
test_discoverCNTunderAEWrongRCN8 |
Discover with rcn=childResources (invalid for discovery) -> expects BAD_REQUEST. |
| 11 |
test_discoverCNTunderAEWrongRCN9 |
Discover with rcn=modifiedAttributes (invalid for discovery) -> expects BAD_REQUEST. |
| 12 |
test_retrieveCNTunderAERCN6 |
RETRIEVE (non-discovery) with rcn=childResourceReferences, ty=CNT -> expects OK; checks 2 distinct reference entries. |
| 13 |
test_retrieveCNTunderAERCN1 |
RETRIEVE with rcn=attributes, ty=CNT -> expects OK; checks only the <AE>'s own attributes are returned (no children). |
| 14 |
test_retrieveCNTunderAERCN4 |
RETRIEVE with rcn=attributesAndChildResources, ty=CNT -> expects OK; checks the <AE>'s attributes plus 2 full child <CNT> resources. |
| 15 |
test_retrieveCNTunderAERCN5 |
RETRIEVE with rcn=attributesAndChildResourceReferences, ty=CNT -> expects OK; checks <AE> attributes plus 2 child references (ch). |
| 16 |
test_retrieveCNTunderAERCN8 |
RETRIEVE with rcn=childResources, ty=CNT -> expects OK; checks <AE>'s own attributes are NOT present, but 2 full child <CNT> resources are. |
| 17 |
test_retrieveCNTunderAEWrongRCN9 |
RETRIEVE (non-discovery) with rcn=modifiedAttributes (invalid for plain RETRIEVE) -> expects BAD_REQUEST. |
| 18 |
test_retrieveCNTunderAEWrongRCN11 |
RETRIEVE (non-discovery) with rcn=discoveryResultReferences (invalid for plain RETRIEVE) -> expects BAD_REQUEST. |
| 19 |
test_retrieveCNTunderCSE |
RETRIEVE the <CSEBase> with rcn=childResources, ty=CNT -> expects OK; checks 2 child <CNT> resources. |
| 20 |
test_retrieveCINunderAE |
RETRIEVE the <AE> with rcn=childResources, ty=CIN -> expects OK; checks 10 <CIN> resources (5 per container) are returned. |
| 21 |
test_retrieveCINbyLBLunderAE |
RETRIEVE with rcn=childResources, lbl=tag:0 -> expects OK; checks exactly 2 matching <CIN>s (one per container) with that label. |
| 22 |
test_retrieveCNTbyCNIunderAE |
RETRIEVE with rcn=childResources, cni=5 (filter containers by child count) -> expects OK; checks 2 matching <CNT>s, both with cni=5. |
| 23 |
test_retrieveCNTbyCNIunderAEEmpty |
RETRIEVE with cni=10 (no container has that count) -> expects OK; checks no matching <CNT>s. |
| 24 |
test_retrieveCNTbyCNIunderAEEmpty2 |
Same cni=10 filter but with rcn=childResourceReferences -> expects OK; checks an empty rrf list. |
| 25 |
test_retrieveCNTorCINunderAE |
RETRIEVE with ty=CNT+CIN (OR via + syntax) -> expects OK; checks 12 total references (2 CNT + 10 CIN). |
| 26 |
test_retrieveCNTorCINunderAE2 |
Same OR-type filter but using repeated ty= query params instead of + -> expects OK; checks the same 12 references. |
| 27 |
test_retrieveCINandLBLunderAE |
RETRIEVE with ty=CIN&lbl=tag:0 (AND) -> expects OK; checks exactly 2 matching <CIN>s. |
| 28 |
test_retrieveCINandLBLunderAE2 |
RETRIEVE with ty=CIN&lbl=tag:0+tag:1 (multi-value label OR within AND type filter) -> expects OK; checks 4 matching <CIN>s. |
| 29 |
test_retrieveCNTorLBLunderAE |
RETRIEVE with ty=CNT&lbl=tag:0&fo=OR (explicit OR across filter criteria) -> expects OK; checks 4 matches (2 CNT + 2 CIN matching by label). |
| 30 |
test_retrieveWithCRBunderAE |
RETRIEVE with crb (created-before) set to the pre-setup timestamp -> expects OK with 0 results; RETRIEVE with crb set to the post-setup timestamp -> expects OK with results present. |
| 31 |
test_retrieveWithCRAunderAE |
RETRIEVE with cra (created-after) set to the pre-setup timestamp -> expects OK with results present; RETRIEVE with cra set to the post-setup timestamp -> expects OK with 0 results. |
| 32 |
test_retrieveCNIwithCTYunderAE |
RETRIEVE with cty=text/plain:0 (content-type filter) -> expects OK; checks exactly 5 matches. |
| 33 |
test_retrieveCNIwithSZBunderAE |
RETRIEVE with szb=100 (size below) -> expects OK; checks all 10 <CIN>s match. |
| 34 |
test_retrieveCNIwithSZAunderAE |
RETRIEVE with sza=3 (size above) -> expects OK; checks all 10 <CIN>s match. |
| 35 |
test_retrieveCNIwithMSunderAE |
RETRIEVE with ms (modified since) set to the pre-setup timestamp -> expects OK with results present. |
| 36 |
test_retrieveCNIwithUSunderAE |
RETRIEVE with us (unmodified since) set to the pre-setup timestamp -> expects OK with 0 results; with the post-setup timestamp -> expects OK with results present. |
| 37 |
test_retrieveCNIwithEXBunderAE |
RETRIEVE with exb (expire before) set to the pre-setup timestamp -> expects OK with 0 results. |
| 38 |
test_retrieveCNIwithEXAunderAE |
RETRIEVE with exa (expire after) set to the pre-setup timestamp -> expects OK with results present. |
| 39 |
test_retrieveCNTunderAEStructured |
RETRIEVE with drt=structured -> expects OK; checks the returned reference URIs end with structured paths (/AE/CNT). |
| 40 |
test_retrieveCNTunderAEUnstructured |
RETRIEVE with drt=unstructured -> expects OK; checks the returned reference URIs do NOT end with structured paths. |
| 41 |
test_rcn4WithDifferentFUs |
RETRIEVE with rcn=attributesAndChildResources and no fu -> expects OK with full nested structure (2 CNT, each with 5 CIN); with fu=1 (discovery) -> expects BAD_REQUEST (rcn=4 invalid for discovery); with fu=2 (retrieve, explicit) -> expects OK with the same nested structure. |
| 42 |
test_appendArp |
CREATE a nested <CNT> (arpCnt) under the first container -> expects CREATED; RETRIEVE with rcn=childResources, lbl=cntLbl, arp=arpCnt (attribute relative path) -> expects OK, checks the result is the nested resource itself; DELETE it -> expects DELETED. |
| 43 |
test_createCNTwithRCN9 |
CREATE a <CNT> (with mni/lbl) using rcn=modifiedAttributes -> expects CREATED; checks mni/lbl are absent from the response (not modified by CSE) but st/ri/ct/lt (CSE-set attributes) are present. |
| 44 |
test_updateCNTwithRCN9 |
UPDATE the <CNT> (mni/lbl) using rcn=modifiedAttributes -> expects UPDATED; checks mni/lbl absent but st/lt present. |
| 45 |
test_updateCNTwithWrongRCN2 |
UPDATE the <CNT> using rcn=hierarchicalAddress (invalid for UPDATE) -> expects BAD_REQUEST. |
| 46 |
test_createCNTwithRCN0 |
CREATE a <CNT> using rcn=nothing -> expects CREATED; checks the response body is empty/None. |
| 47 |
test_retrieveWithWrongArgument |
RETRIEVE with an unrecognized query parameter alongside rcn=attributes -> expects BAD_REQUEST. |
| 48 |
test_retrieveWithWrongFU |
RETRIEVE with an invalid fu value -> expects BAD_REQUEST. |
| 49 |
test_retrieveWithWrongDRT |
RETRIEVE with an invalid drt value -> expects BAD_REQUEST. |
| 50 |
test_retrieveWithWrongFO |
RETRIEVE with an invalid fo value -> expects BAD_REQUEST. |
| 51 |
test_retrieveMgmtObjsRCN8 |
RETRIEVE the <NOD> with rcn=childResources, ty=MGMTOBJ -> expects OK; checks the 2 <BAT>s and 1 <MEM> are returned as separate typed lists (m2m:bat, m2m:mem). |
| 52 |
test_retrieveCINmatchLabel |
RETRIEVE the <CNT> with rcn=childResources, con=a* (wildcard content match) -> expects OK; checks all 5 matching <CIN>s are returned. |
| 53 |
test_createCNTwithRCN2 |
CREATE a <CNT> using rcn=hierarchicalAddress -> expects CREATED; checks m2m:uri is present, and (HTTP only) the Content-Location header matches it. |
| 54 |
test_createCNTwithRCN3 |
CREATE a <CNT> using rcn=hierarchicalAddressAttributes -> expects CREATED; checks m2m:rce/uri is present, and (HTTP only) the Content-Location header matches it. |
| 55 |
test_retrieveUnderCNTRCN8 |
CREATE a fresh empty <CNT> -> expects CREATED; RETRIEVE it with rcn=childResources -> expects OK, checks the child list is empty; DELETE it -> expects DELETED. |
| 56 |
test_retrieveUnderCNTRCN6 |
CREATE a fresh empty <CNT> -> expects CREATED; RETRIEVE it with rcn=childResourceReferences -> expects OK, checks rrf is empty; DELETE it with the same rcn -> expects DELETED, checks the deletion response's rrf is also empty. |
| 57 |
test_retrieveUnderCNTRCN5 |
CREATE a fresh empty <CNT> -> expects CREATED; RETRIEVE it with rcn=attributesAndChildResourceReferences -> expects OK, checks ch is empty; DELETE it -> expects DELETED. |
| 58 |
test_updateCNTwithRCN12Fail |
CREATE a <CNT> -> expects CREATED; UPDATE it using rcn=permissions (rcn=12, not valid for UPDATE) -> expects BAD_REQUEST; DELETE it -> expects DELETED. |
| 59 |
test_retrieveCNTwithRCN12 |
CREATE a <CNT> and a nested child <CNT> -> expects CREATED; RETRIEVE the parent with rcn=permissions -> expects OK; DELETE the parent -> expects DELETED. |
| 60 |
test_retrieveCINwithCFQWrongCFSFail |
Create test <CIN>s with JSON con; RETRIEVE with cfq=$.temperature GT 23&cfs=2 (invalid cfs value) -> expects BAD_REQUEST; several additional RETRIEVEs with malformed cfq expressions (incomplete operand, trailing AND, unknown operator, non-path subject) -> each expects BAD_REQUEST; cleanup. |
| 61 |
test_retrieveCINwithCFQOnlyCFSFail |
Create test <CIN>s; RETRIEVE with only cfs=1 (no cfq provided) -> expects BAD_REQUEST; cleanup. |
| 62 |
test_retrieveCINwithCFQWrongCFQFail |
Create test <CIN>s; RETRIEVE with a syntactically wrong cfq expression ('wrong query') -> expects BAD_REQUEST; cleanup. |
| 63 |
test_retrieveCINwithCFQUnknownKeyFail |
Create test <CIN>s; RETRIEVE with cfq=$.unknownKey GT 23 (valid syntax, non-existent JSON path) -> expects OK but checks no <CIN>s matched; cleanup. |
| 64 |
test_retrieveCINwithCFQsimple |
Create test <CIN>s (JSON con with temperature field); RETRIEVE with cfq=$.temperature GT 23 -> expects OK; checks exactly 1 matching <CIN> returned with the expected rn; cleanup. |
| 65 |
test_retrieveCINwithCFQsingleClauseKeyword |
Create test <CIN>s; RETRIEVE with a battery of single-clause CFQ expressions testing EQ/NE/GT/LT/GTE/LTE operators on string and numeric JSON fields (including type-mismatch cases) -> each expects OK; checks match count and returned rn for positive cases; cleanup. |
| 66 |
test_retrieveCINwithCFQpathClause |
Create test <CIN>s; RETRIEVE with CFQ expressions using nested paths ($.meta.id), array indexing ($.tags[0]), and quoted keys ($.meta.'device.id') -> each expects OK; checks match count (1 for valid paths, 0 for out-of-bound/non-existing paths); cleanup. |
| 67 |
test_retrieveCINwithCFQcombinedClause |
Create test <CIN>s; RETRIEVE with combined AND/OR CFQ expressions across multiple JSON fields -> each expects OK; checks match count reflects AND/OR semantics and precedence correctly; cleanup. |