Unverified Commit 78276c79 authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

refactor: rename Delete Entity by Id to Delete Entity

parent 1327171c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ ${content_type}= application/json
    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}
    [Teardown]    Delete Entity by Id    ${id}
    [Teardown]    Delete Entity    ${id}

045_01_02 Endpoint /subscriptions/{subscriptionId}
    [Documentation]    Verify that on a GET HTTP request if nothing is specified on the Accept header, "application/json" is assumed (/subscriptions/{subscriptionId})
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    ...    ${response.json()}
    ...    ${ERROR_TYPE_LD_CONTEXT_NOT_AVAILABLE}
    Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
    [Teardown]    Delete Entity by Id    ${entity_id}
    [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)
+1 −1
Original line number Diff line number Diff line
@@ -40,4 +40,4 @@ Create Initial Entity
    Set Test Variable    ${entity_id}

Delete Initial Entity
    Delete Entity by Id    ${entity_id}
    Delete Entity    ${entity_id}
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ ${status_code}= 406
    ...    id=${entity_id}
    ...    accept=${accept}
    Check Response Status Code    ${status_code}    ${response.status_code}
    [Teardown]    Delete Entity by Id    ${entity_id}
    [Teardown]    Delete Entity    ${entity_id}

049_01_02 Endpoint Get /subscriptions/{subscriptionId}
    [Documentation]    Verify throwing 406 HTTP status code (Not Acceptable Media Type) if the "Accept" header does not imply "application/json" nor "application/ld+json" (get /subscriptions/{subscriptionId})
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ ${content_type}= application/xml
    ...    fragment_filename=${vehicle_fragment}
    ...    content_type=${content_type}
    Check Response Status Code    415    ${response.status_code}
    [Teardown]    Delete Entity by Id    ${entity_id}
    [Teardown]    Delete Entity    ${entity_id}

048_01_02 Endpoint Patch /subscriptions/{subscriptionId}
    [Documentation]    Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (patch /subscriptions/{subscriptionId})
@@ -50,7 +50,7 @@ ${content_type}= application/xml
    ...    ${entity_id}
    ...    ${content_type}
    Check Response Status Code    415    ${response.status_code}
    [Teardown]    Delete Entity by Id    ${entity_id}
    [Teardown]    Delete Entity    ${entity_id}

048_01_04 Endpoint Post /subscriptions/
    [Documentation]    Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /subscriptions/)
Loading