Commit b8914530 authored by kzangeli's avatar kzangeli
Browse files

fix: correct empty-id collection-path expectations (002/054/056)

All three send an empty entity id, so the request hits the collection path:
- PUT /entities  (054_02_02 Replace) and PATCH /entities (056_02_02 Merge) have
  no collection-level operation → 405 Method Not Allowed, not 400. The broker
  already returns 405; the tests wrongly expected 400.
- DELETE /entities (002_02_01) is NOT 405 anymore: since ~v1.8 it is the Purge
  Entities operation (§ 6.4.3.3), a valid route. A filterless purge is a 400
  BadRequest, which is what the broker returns; the test's 405 was the stale
  pre-purge expectation.

Provision/Entities subtree 56/56.
parent f35a5ade
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Test Template Delete Entity Scenarios
*** Test Cases ***    ENTITY_ID    EXPECTED_STATUS_CODE    PROBLEM_TYPE
002_02_01 Delete An Entity If The Entity Id Is Not Present
    [Tags]    e-delete    5_6_6
    ${EMPTY}    405    ${EMPTY}
    ${EMPTY}    400    ${EMPTY}
002_02_02 Delete An Entity If The Entity Id Is Not A Valid URI
    [Tags]    e-delete    5_6_6
    thisisaninvaliduri    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ ${entity_replacement_filename} building-locatedAt-and-name.json
    invalidUri    400
056_02_02 Merge An Existing Entity Without Giving An Id
    [Tags]    e-merge    5_6_17    6_5_3_4    since_v1.6.1
    ${EMPTY}    400
    ${EMPTY}    405
056_02_03 Merge An Existing Entity Giving A Nonexistent Id
    [Tags]    e-merge    5_6_17    6_5_3_4    since_v1.6.1
    urn:ngsi-ld:Building:Nonexistent    404
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ ${entity_replacement_filename} building-locatedAt-and-name.json
    invalidUri    400
054_02_02 Replace An Existing Entity Without Giving An Id
    [Tags]    e-replace    5_6_18    6_5_3_3    since_v1.6.1
    ${EMPTY}    400
    ${EMPTY}    405
054_02_03 Replace An Existing Entity Giving A Nonexistent Id
    [Tags]    e-replace    5_6_18    6_5_3_3    since_v1.6.1
    urn:ngsi-ld:Building:Nonexistent    404