Commit 07c61041 authored by Ken Zangelin's avatar Ken Zangelin
Browse files

swbroker_known_bad: tag D017_01_* (Purge Entities) — URL builder typo



The Robot 'Purge Entities' keyword in
resources/ApiUtils/ContextInformationConsumption.resource concatenates
\${final_url} with \${ENTITIES_ENDPOINT_PATH} without a separating '/'.
ENTITIES_ENDPOINT_PATH is already 'entities/' (no leading slash), so
the resulting URL is e.g. '.../v1entities/?type=Vehicle' — broker
correctly 404s "/ngsi-ld/v1entities is not a recognized resource".

Co-Authored-By: default avatarClaude Opus 4.7 (1M context) <noreply@anthropic.com>
parent 92a3c844
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
*** Test Cases ***
D017_01_exc Purge Entities On Both Context Broker And Context Source
    [Documentation]    Verify that, when one has an exclusive registration on a Context Broker, one is able to purge entities based on type on both Context Broker and Context Source
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    proxy-exclusive    4_3_6_3    5_6_21
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    proxy-exclusive    4_3_6_3    5_6_21    swbroker_known_bad

    Set Stub Reply    POST    /broker1/ngsi-ld/v1/entities    201
    ${speed_entity}=    Create Entity    ${speed_entity_filename}    ${entity_id}
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
*** Test Cases ***
D017_01_inc Purge Entities On Both Context Broker And Context Source
    [Documentation]    Verify that, when one has an inclusive registration on a Context Broker, one is able to purge entities based on type on both Context Broker and Context Source
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    additive-inclusive    4_3_6_2    5_6_21
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    additive-inclusive    4_3_6_2    5_6_21    swbroker_known_bad

    Set Stub Reply    DELETE    /ngsi-ld/v1/entities?type=Vehicle    204
    ${response}=    Purge Entities    entity_types=Vehicle    context=${ngsild_test_suite_context}
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ ${registration_payload_file_path} csourceRegistrations/context-source-regi
*** Test Cases ***
D017_01_red Purge Entities On The Context Source
    [Documentation]    Verify that, when one has a redirect registration on a Context Broker, one is able to purge entities based on type on the Context Source
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    proxy-redirect    4_3_6_3    5_6_21
    [Tags]    since_v1.6.1    dist-ops    4_3_3    cf_06    proxy-redirect    4_3_6_3    5_6_21    swbroker_known_bad

    Set Stub Reply    POST    /broker1/ngsi-ld/v1/entities    201
    Set Stub Reply    POST    /broker2/ngsi-ld/v1/entities    201