Commit 621af2fe authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: incorrect or misplaced tags

parent 5d955f65
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -11,15 +11,16 @@ Test Template Create Context Source With Invalid Content


*** Test Cases ***
*** Test Cases ***
033_10_01 Create A Context Source Registration With A Different Data Structure Than CSourceRegistration Data Type
033_10_01 Create A Context Source Registration With A Different Data Structure Than CSourceRegistration Data Type
    [Tags]    csr-create    5_9_2
    csourceRegistrations/context-source-registration-invalid-structure.jsonld
    csourceRegistrations/context-source-registration-invalid-structure.jsonld
033_10_02 Create A Context Source Registration With A Date In The Past
033_10_02 Create A Context Source Registration With A Date In The Past
    [Tags]    csr-create    5_9_2
    csourceRegistrations/context-source-registration-past-expiration.jsonld
    csourceRegistrations/context-source-registration-past-expiration.jsonld




*** Keywords ***
*** Keywords ***
Create Context Source With Invalid Content
Create Context Source With Invalid Content
    [Documentation]    Check that one cannot create a context source with invalid content
    [Documentation]    Check that one cannot create a context source with invalid content
    [Tags]    csr-create    6_3_5
    [Arguments]    ${filename}
    [Arguments]    ${filename}
    ${registration_id}=    Generate Random CSR Id
    ${registration_id}=    Generate Random CSR Id
    ${payload}=    Load JSON From File    ${EXECDIR}/data/${filename}
    ${payload}=    Load JSON From File    ${EXECDIR}/data/${filename}
+3 −1
Original line number Original line Diff line number Diff line
@@ -19,17 +19,19 @@ ${reason_400}= Bad Request


*** Test Cases ***    REGISTRATION_ID    FRAGMENT_FILENAME    EXPECTED_STATUS_CODE    PROBLEM_TYPE
*** Test Cases ***    REGISTRATION_ID    FRAGMENT_FILENAME    EXPECTED_STATUS_CODE    PROBLEM_TYPE
034_02_01 Update A Context Source Registration By Id If The Id Is Not A Valid URI
034_02_01 Update A Context Source Registration By Id If The Id Is Not A Valid URI
    [Tags]    csr-update    5_9_3
    invalidURI    fragments/context-source-registration-different-type.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
    invalidURI    fragments/context-source-registration-different-type.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
034_02_02 Update A Context Source Registration If The Request Body Is Not Of The Same Data Type
034_02_02 Update A Context Source Registration If The Request Body Is Not Of The Same Data Type
    [Tags]    csr-update    5_9_3
    ${valid_registration_id}    fragments/context-source-registration-different-type.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
    ${valid_registration_id}    fragments/context-source-registration-different-type.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
034_02_03 Update A Context Source Registration If One Attempts To Remove A Mandatory Property
034_02_03 Update A Context Source Registration If One Attempts To Remove A Mandatory Property
    [Tags]    csr-update    5_9_3
    ${valid_registration_id}    context-source-registration-invalid.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}
    ${valid_registration_id}    context-source-registration-invalid.jsonld    400    ${ERROR_TYPE_BAD_REQUEST_DATA}




*** Keywords ***
*** Keywords ***
Update A Context Source
Update A Context Source
    [Documentation]    Check that one cannot update a context source registration under some conditions
    [Documentation]    Check that one cannot update a context source registration under some conditions
    [Tags]    csr-update    5_9_3
    [Arguments]    ${registration_id}    ${fragment_filename}    ${expected_status_code}    ${problem_type}
    [Arguments]    ${registration_id}    ${fragment_filename}    ${expected_status_code}    ${problem_type}
    ${fragment}=    Load JSON From File    ${EXECDIR}/data/csourceRegistrations/${fragment_filename}
    ${fragment}=    Load JSON From File    ${EXECDIR}/data/csourceRegistrations/${fragment_filename}
    ${fragment_with_id}=    Update Value To JSON    ${fragment}    $.id    ${registration_id}
    ${fragment_with_id}=    Update Value To JSON    ${fragment}    $.id    ${registration_id}
+1 −1
Original line number Original line Diff line number Diff line
@@ -19,13 +19,13 @@ ${reason_405}= Method Not Allowed


*** Test Cases ***    FRAGMENT_FILENAME    EXPECTED_STATUS_CODE    REASON
*** Test Cases ***    FRAGMENT_FILENAME    EXPECTED_STATUS_CODE    REASON
034_06_01 Update A Context Source Registration By Id If The Id Is Not Present
034_06_01 Update A Context Source Registration By Id If The Id Is Not Present
    [Tags]    csr-update    5_9_3
    fragments/context-source-registration-different-type.jsonld    405    ${reason_405}
    fragments/context-source-registration-different-type.jsonld    405    ${reason_405}




*** Keywords ***
*** Keywords ***
Update A Context Source
Update A Context Source
    [Documentation]    Check that one cannot update a context source registration under some conditions
    [Documentation]    Check that one cannot update a context source registration under some conditions
    [Tags]    csr-update    5_9_3
    [Arguments]    ${fragment_filename}    ${expected_status_code}    ${reason}
    [Arguments]    ${fragment_filename}    ${expected_status_code}    ${reason}
    ${fragment}=    Load JSON From File    ${EXECDIR}/data/csourceRegistrations/${fragment_filename}
    ${fragment}=    Load JSON From File    ${EXECDIR}/data/csourceRegistrations/${fragment_filename}
    ${fragment_with_id}=    Update Value To JSON    ${fragment}    $.id    ${EMPTY}
    ${fragment_with_id}=    Update Value To JSON    ${fragment}    $.id    ${EMPTY}
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ ${reason_200}= OK
*** Test Cases ***
*** Test Cases ***
053_07_01 Check That One Can Serve A ImplicitlyCreated @context With Details Set To True
053_07_01 Check That One Can Serve A ImplicitlyCreated @context With Details Set To True
    [Documentation]    Check that one can serve a ImplicitlyCreated @context with details set to true
    [Documentation]    Check that one can serve a ImplicitlyCreated @context with details set to true
    [Tags]    sub-create    5_13_4    since_v1.5.1
    [Tags]    ctx-serve    5_13_4    since_v1.5.1


    ${response}=    Serve a @context
    ${response}=    Serve a @context
    ...    contextId=${implicit_id}
    ...    contextId=${implicit_id}
+1 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ ${subscription_payload_file_path}= jsonldContext/subscription-with-implicit
*** Test Cases ***
*** Test Cases ***
050_03_01 Check The Creation Of ImplicitelyCreted @context
050_03_01 Check The Creation Of ImplicitelyCreted @context
    [Documentation]    Check that one can create a subscription
    [Documentation]    Check that one can create a subscription
    [Tags]    sub-create    5_13_2    since_v1.5.1
    [Tags]    ctx-add    5_13_2    since_v1.5.1
    ${subscription_payload}=    Load JSON From File    ${EXECDIR}/data/${subscription_payload_file_path}
    ${subscription_payload}=    Load JSON From File    ${EXECDIR}/data/${subscription_payload_file_path}


    ${subscription_id}=    Get Value From JSON    ${subscription_payload}    $..id
    ${subscription_id}=    Get Value From JSON    ${subscription_payload}    $..id