Commit 283d1217 authored by lopezaguilar's avatar lopezaguilar
Browse files

Coding style

parent 658b94e8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -42,7 +42,9 @@ ${content_type}= application/json
    ${id}=    Generate Random Entity Id    ${subscription_id_prefix}
    ${response}=    Create Subscription    ${id}    ${subscription_filename}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Retrieve Subscription    ${id}    accept=*/*
    ${response}=    Retrieve Subscription
    ...    id=${id}
    ...    accept=*/*
    Check Response Status Code    200    ${response.status_code}
    Check Response Headers Containing Content-Type set to    ${content_type}    ${response.headers}
    Check Response Headers Link Not Empty    ${response.headers}
+3 −1
Original line number Diff line number Diff line
@@ -35,7 +35,9 @@ ${subscription_filename}= csourceSubscriptions/subscription-sample.jsonld
    ${id}=    Generate Random Entity Id    ${subscription_id_prefix}
    ${response}=    Create Subscription    ${id}    ${subscription_filename}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Retrieve Subscription    ${id}    accept=${accept}
    ${response}=    Retrieve Subscription
    ...    id=${id}
    ...    accept=${accept}
    Check Response Status Code    ${status_code}    ${response.status_code}
    [Teardown]    Delete Subscription    ${id}

+3 −1
Original line number Diff line number Diff line
@@ -20,7 +20,9 @@ ${subscription_filename}= csourceSubscriptions/subscription-sample.jsonld
    ${id}=    Generate Random Entity Id    ${subscription_id_prefix}
    ${response}=    Create Subscription    ${id}    ${subscription_filename}    ${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Retrieve Subscription    ${id}    accept=${accept}
    ${response}=    Retrieve Subscription
    ...    id=${id}
    ...    accept=${accept}
    Check Response Status Code    ${status_code}    ${response.status_code}
    [Teardown]    Delete Subscription    ${id}

+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ ${subscription_expectation_file_path}= subscriptions/expectations/subscript
    ...    ${CONTENT_TYPE_LD_JSON}
    ${expected_subscription}=    Load Test Sample    ${subscription_expectation_file_path}    ${subscription_id}
    ${response}=    Retrieve Subscription
    ...    ${subscription_id}
    ...    id=${subscription_id}
    ...    accept=${CONTENT_TYPE_LD_JSON}
    ...    context=${ngsild_test_suite_context}
    Check Created Resource Set To    ${expected_subscription}    ${response.json()}
+2 −2
Original line number Diff line number Diff line
@@ -8,9 +8,9 @@ Test Template Create Subscription With Invalid Request


*** Test Cases ***    FILENAME    EXPECTED_STATUS
028_02_01_InvalidJson
028_02_01 InvalidJson
    subscription-invalid-json-sample.jsonld    ${ERROR_TYPE_INVALID_REQUEST}
028_02_02_EmptyJson
028_02_02 EmptyJson
    subscription-empty-sample.jsonld    ${ERROR_TYPE_BAD_REQUEST_DATA}


Loading