Commit 5105c7a5 authored by kzangeli's avatar kzangeli
Browse files

037_07, 037_10, 037_11: our corrections back after the develop merge took...

037_07, 037_10, 037_11: our corrections back after the develop merge took develop's side - Polygon rings closed (RFC 7946), id filters by entity ids, the last page has no next link; develop's tags and spec references kept

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent 4ff372cf
Loading
Loading
Loading
Loading
+3 −1
Changes for TP/NGSI-LD/ContextSource/Discovery/QueryContextSourceRegistrations/037_07.robot: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -23,7 +23,9 @@ ${expectation_file_path}= csourceRegistrations/exp
    near;maxDistance==2000    Point    [-8.503,41.202]    ${EMPTY}    ${expectation_file_path}
037_07_02 Within Polygon
    [Tags]    csr-query    core_12_3_3
    within    Polygon    [[-13.503,47.202],[6.541, 52.961],[20.37,44.653],[9.46,32.57],[-15.23,21.37]]    location    ${expectation_file_path}
    # RFC 7946: Polygon coordinates are an array of linear RINGS (one more
    # nesting level), and a ring is closed — first position == last position.
    within    Polygon    [[[-13.503,47.202],[6.541, 52.961],[20.37,44.653],[9.46,32.57],[-15.23,21.37],[-13.503,47.202]]]    location    ${expectation_file_path}


*** Keywords ***
+6 −1
Changes for TP/NGSI-LD/ContextSource/Discovery/QueryContextSourceRegistrations/037_10.robot: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,12 @@ ${third_context_source_registration_payload_file_path}= csourceRegistrations
*** Test Cases ***    QUERY_PARAM_NAME    QUERY_PARAM_VALUE    EXPECTATION_FILE_PATH    EXPECTED_CONTEXT_SOURCE_REGISTRATION_IDS
037_10_01 With List Of Entity Ids
    [Tags]    csr-query    core_12_3_3
    id    ${first_context_source_registration_id},${third_context_source_registration_id}    csourceRegistrations/expectations/context-source-registrations-037-10-01.json    ${first_context_source_registration_id},${third_context_source_registration_id}
    # 'id' filters by ENTITY ids ("List of entity ids to be retrieved") — not
    # by registration ids. The two Building ids below can be provided by the
    # second and third registrations (type Building, no id constraint) but NOT
    # by the first one, whose EntityInfos pin Vehicle:A456 and OffStreetParking
    # id patterns (testsuite-doubts.md #98).
    id    urn:ngsi-ld:Building:building001,urn:ngsi-ld:Building:building002    csourceRegistrations/expectations/context-source-registrations-037-10-01.json    ${second_context_source_registration_id}    ${third_context_source_registration_id}
037_10_02 With NGSI-LD Query
    [Tags]    csr-query    core_12_3_3
    q    csourceProperty1=="aValue"    csourceRegistrations/expectations/context-source-registrations-037-10-02.json    ${third_context_source_registration_id}
+5 −2
Changes for TP/NGSI-LD/ContextSource/Discovery/QueryContextSourceRegistrations/037_11.robot: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -24,13 +24,16 @@ ${third_context_source_registration_payload_file_path}= csourceRegistrations
*** Test Cases ***    LIMIT    OFFSET    EXPECTED_NUMBER    PREV_LINK    NEXT_LINK
037_11_01 Query Second Subscription
    [Tags]    csr-query    core_12_3_3
    ${1}    ${2}    ${1}    </ngsi-ld/v1/csourceRegistrations?type=Building&limit=1&offset=1>;rel="prev";type="application/ld+json"    </ngsi-ld/v1/csourceSubscriptions?type=Building&limit=1&offset=3>;rel="next";type="application/ld+json"
    # offset=2 with limit=1 over three matches is the LAST page — no next link
    # (TS 104 175 §7.4.2.2; the previous expectation also pointed the next link at
    # /csourceSubscriptions, a copy-paste slip).
    ${1}    ${2}    ${1}    </ngsi-ld/v1/csourceRegistrations?type=Building&limit=1&offset=1>;rel="prev";type="application/ld+json"    ${EMPTY}
037_11_02 Query Last Subscription
    [Tags]    csr-query    core_12_3_3
    ${2}    ${2}    ${1}    </ngsi-ld/v1/csourceRegistrations?type=Building&limit=2&offset=0>;rel="prev";type="application/ld+json"    ${EMPTY}
037_11_03 Query All Subscriptions
    [Tags]    csr-query    core_12_3_3
    ${15}    ${0}    ${2}    ${EMPTY}    ${EMPTY}
    ${15}    ${0}    ${3}    ${EMPTY}    ${EMPTY}


*** Keywords ***