Unverified Commit b3bb243f authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat(core): change LdContextNotAvailable status from 503 to 504

parent 56e721d0
Loading
Loading
Loading
Loading
+7 −7
Changes for TP/NGSI-LD/CommonBehaviours/CommonResponses/VerifyLdContextNotAvailable/043_01.robot: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
*** Settings ***
Documentation       Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved
Documentation       Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved

Resource            ${EXECDIR}/resources/ApiUtils/Common.resource
Resource            ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.resource
@@ -11,7 +11,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource


*** Variables ***
${expected_status_code}=        503
${expected_status_code}=        504
${building_filename}=           building-unretrievable-context.jsonld
${subscription_filename}=       subscriptions/subscription-unretrievable-context.jsonld
${tea_filename}=                bus-temporal-representation-unretrievable-context.jsonld
@@ -20,7 +20,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration

*** Test Cases ***
043_01_01 Create Entity
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create entity)
    [Documentation]    Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create entity)
    [Tags]    e-create    cb-ldcontext    5_2_2
    ${entity_id}=    Generate Random Building Entity Id
    ${response}=    Create Entity Selecting Content Type
@@ -35,7 +35,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    [Teardown]    Delete Entity    ${entity_id}

043_01_02 Create Subscription
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create subscription)
    [Documentation]    Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create subscription)
    [Tags]    sub-create    cb-ldcontext    5_2_2
    ${subscription_id}=    Generate Random Subscription Id
    ${response}=    Create Subscription    ${subscription_id}    ${subscription_filename}    ${CONTENT_TYPE_LD_JSON}
@@ -47,7 +47,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    [Teardown]    Delete Subscription    ${subscription_id}

043_01_03 Create Temporal Representation Of Entities
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create Temporal Representation of Entities)
    [Documentation]    Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create Temporal Representation of Entities)
    [Tags]    te-create    cb-ldcontext    5_2_2
    ${temporal_entity_representation_id}=    Generate Random Vehicle Entity Id
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type
@@ -62,7 +62,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}

043_01_04 Batch Entity Create
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Batch entity create)
    [Documentation]    Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Batch entity create)
    [Tags]    be-create    cb-ldcontext    5_2_2
    ${first_entity_id}=    Generate Random Building Entity Id
    ${second_entity_id}=    Generate Random Building Entity Id
@@ -85,7 +85,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    [Teardown]    Batch Delete Entities    entities_ids_to_be_deleted=@{entities_ids_to_be_created}

043_01_05 Create Context Source Registration
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)
    [Documentation]    Verify receiving 504 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)
    [Tags]    csr-create    cb-ldcontext    5_2_2
    ${registration_id}=    Generate Random CSR Id
    ${payload}=    Load JSON From File    ${EXECDIR}/data/${registration_filename}
+1 −1
Changes for TP/NGSI-LD/ContextInformation/Subscription/CreateSubscription/028_07.robot: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ ${unavailable_jsonldContext_subscription_file_path}= subscriptions/subscripti
    ${invalid_jsonldContext_subscription_file_path}    ${ERROR_TYPE_BAD_REQUEST_DATA}    400
028_07_02 Subscription With Unavailable jsonldContext
    [Tags]    sub-create    5_8_1    since_v1.7.1
    ${unavailable_jsonldContext_subscription_file_path}    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}    503
    ${unavailable_jsonldContext_subscription_file_path}    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}    504


*** Keywords ***