Commit 60537742 authored by kzangeli's avatar kzangeli
Browse files

fix: Prepare CSR keyword takes entity_id_pattern, not entity_pattern

Three callers passed entity_pattern=<pattern>; Robot does not match an
unknown named argument, so the whole string was passed positionally and
landed in the entity_id slot, injecting
  "id": "entity_pattern=urn:ngsi-ld:Vehicle:*"
(not a valid URI) into the registration's entities. Brokers that
URI-validate the entity id reject the registration with 400, failing the
setup of D012_01_red, D015_01_inc and D013_02_red.
parent aed085be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ Setup Entity Id And Registration And Start Context Source Mock Server
    ${registration_payload}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_payload_file_path}
    ...    entity_pattern=${entity_pattern}
    ...    entity_id_pattern=${entity_pattern}
    ...    mode=redirect
    ...    endpoint=/broker1
    ${response}=    Create Context Source Registration With Return    ${registration_payload}
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ Setup Entity Id And Registration And Start Context Source Mock Server
    ${registration_payload}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_payload_file_path}
    ...    entity_pattern=${entity_pattern}
    ...    entity_id_pattern=${entity_pattern}
    ${response}=    Create Context Source Registration With Return    ${registration_payload}
    Check Response Status Code    201    ${response.status_code}

+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ Setup Entity Id And Registration And Start Context Source Mock Server
    ${registration_payload}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_payload_file_path}
    ...    entity_pattern=${entity_pattern}
    ...    entity_id_pattern=${entity_pattern}
    ...    mode=redirect
    ...    endpoint=/broker2
    ${response}=    Create Context Source Registration With Return    ${registration_payload}