Commit eefc9423 authored by Andrea Il Grande's avatar Andrea Il Grande
Browse files

Modified name of brokers with actual role name

parent 06421983
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
*** Settings ***
Documentation        Verify that, when one has an inclusive registration on CB1, one is able to create entities on both CB1 and on CB2
Documentation        Verify that, when one has an inclusive registration on a Context Producer, one is able to create entities on both Context Producer and Context Repository

Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource
@@ -20,9 +20,9 @@ ${registration_id_prefix} urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops-sample.jsonld

*** Test Cases ***
056_01_01 Create Enity on Both CBs
056_01_01 Create Entity On Both Context Producer and Context Repository
    [Tags]    dist-ops    e-create    5_6_1
    [Documentation]    Check that if one requests CB1 to create an entity that matches an inclusive registration, this is created on CB2 too 
    [Documentation]    Check that if one requests the Context Producer to create an entity that matches an inclusive registration, this is created on the Context Repository too 
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    201    ${response.status_code}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
+3 −3
Original line number Diff line number Diff line
*** Settings ***
Documentation        Verify that, when one has an entity and an inclusive registration on CB1, one is able to create that entity on CB2 via CB1 but gets an error for CB1
Documentation        Verify that, when one has an entity and an inclusive registration on a Context Producer, one is able to create that entity on a Context Repository from the Context Producer but gets an error for the Context Producer

Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource
@@ -20,9 +20,9 @@ ${registration_id_prefix} urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops-sample.jsonld

*** Test Cases ***
056_01_02 Create entity already existing locally on CB2
056_01_02 Create entity already existing locally on a Context Repository
    [Tags]    dist-ops    e-create    5_6_1
    [Documentation]    Check that if one requests CB1 to create an entity that matches an inclusive registration and already exists locally, this raises an error on CB1 but is created correctly on CB2
    [Documentation]    Check that if one requests the Context Producer to create an entity that matches an inclusive registration and already exists locally, this raises an error on the Context Producer but is created correctly on the Context Repository
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    207    ${response.status_code}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
+3 −3
Original line number Diff line number Diff line
*** Settings ***
Documentation        Verify that, when one has an entity on CB1 and on CB2 and an inclusive registration on CB1, one is not able to create that entity on CB2 via CB1
Documentation        Verify that, when one has an entity on a Context Consumer and on a Context Repository and an inclusive registration on the Context Consumer, one is not able to create that entity on the Context Repository from the Context Consumer

Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource
@@ -20,9 +20,9 @@ ${registration_id_prefix} urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops-sample.jsonld

*** Test Cases ***
056_01_03 Create entity already existing both on CB1 and on CB2
056_01_03 Create entity already existing on both Context Producer and Context Repository
    [Tags]    dist-ops    e-create    5_6_1
    [Documentation]    Check that if one requests CB1 to create an entity that matches an inclusive registration and already exists both locally and remotely, this raises an error on CB1 and on CB2
    [Documentation]    Check that if one requests the Context Consumer to create an entity that matches an inclusive registration and already exists both locally and remotely, this raises an error on both Context Producer and Context Repository
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    207    ${response.status_code}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
+3 −3
Original line number Diff line number Diff line
*** Settings ***
Documentation        Verify that, when one has an entity on CB2 and an inclusive registration on CB1, one is not able to create that entity on CB2 via CB1 but one is able to create it on CB1
Documentation        Verify that, when one has an entity on a Context Repository and an inclusive registration on a Context Producer, one is not able to create that entity on the Context Repository from the Context Producer but one is able to create it on the Context Producer

Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource
@@ -20,9 +20,9 @@ ${registration_id_prefix} urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops-sample.jsonld

*** Test Cases ***
056_01_04 Create entity already existing remotely on CB1
056_01_04 Create entity already existing remotely on the Context Producer 
    [Tags]    dist-ops    e-create    5_6_1
    [Documentation]    Check that if one requests CB1 to create an entity that matches an inclusive registration and already exists remotely, this raises an error on CB2, but it works just fine on CB1
    [Documentation]    Check that if one requests the Context Producer to create an entity that matches an inclusive registration and already exists remotely, this raises an error on the Context Repository, but it works just fine on the Context Producer
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    207    ${response.status_code}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
+3 −3
Original line number Diff line number Diff line
*** Settings ***
Documentation        Verify that, when one has an inclusive registration on CB1, one is not able to create entities on CB2 if they are malformed
Documentation        Verify that, when one has an inclusive registration on a Context Producer, one is not able to create entities on the Context Repository if they are malformed

Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource
@@ -20,9 +20,9 @@ ${registration_id_prefix} urn:ngsi-ld:Registration:
${registration_payload_file_path}       csourceRegistrations/context-source-registration-vehicle-redirection-ops-sample.jsonld

*** Test Cases ***
056_02_01 Create Enity on Both CBs
056_02_01 Create Entity On Both Context Producer and Context Repository
    [Tags]    dist-ops    e-create    5_6_1
    [Documentation]    Check that if one requests CB1 to create an entity that matches an inclusive registration but is malformed, this is created neither on CB1 nor on CB2 
    [Documentation]    Check that if one requests the Context Producer to create an entity that matches an inclusive registration but is malformed, this is created neither on the Context Producer nor on the Context Repository 
    ${response}=    Create Entity    ${entity_payload_filename}    ${entity_id}
    Check Response Status Code    400    ${response.status_code}
    Check Response Headers Containing URI set to    ${entity_id}    ${response.headers}
Loading