Commit 39efa0fd authored by lopezaguilar's avatar lopezaguilar
Browse files

coding style

parent beb0574c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -51,9 +51,9 @@ ${registration_filename}= csourceRegistrations/context-source-registration
    [Tags]    te-create    5_2_2
    ${temporal_entity_representation_id}=    Generate Random Entity Id    ${tea_id_prefix}
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type
    ...    ${temporal_entity_representation_id}
    ...    ${tea_filename}
    ...    ${CONTENT_TYPE_LD_JSON}
    ...    temporal_entity_representation_id=${temporal_entity_representation_id}
    ...    filename=${tea_filename}
    ...    content_type=${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    Check Response Body Containing ProblemDetails Element Containing Type Element set to
    ...    ${response.json()}
@@ -76,7 +76,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]    Batch Delete Entities    @{entities_ids_to_be_created}
    [Teardown]    Batch Delete Entities    entities_ids_to_be_deleted=@{entities_ids_to_be_created}

043_05 Create context source registration
    [Documentation]    Verify receiving 503 – LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)
+3 −3
Original line number Diff line number Diff line
@@ -73,9 +73,9 @@ ${content_type}= application/json
    [Tags]    te-query    6_3_4
    ${temporal_entity_representation_id}=    Generate Random Entity Id    ${tea_id_prefix}
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type
    ...    ${temporal_entity_representation_id}
    ...    ${tea_filename}
    ...    ${CONTENT_TYPE_LD_JSON}
    ...    temporal_entity_representation_id=${temporal_entity_representation_id}
    ...    filename=${tea_filename}
    ...    content_type=${CONTENT_TYPE_LD_JSON}
    Check Response Status Code    201    ${response.status_code}
    ${response}=    Query Temporal Representation Of Entities With Return
    ...    entity_types=${teatype}
+4 −4
Original line number Diff line number Diff line
@@ -79,15 +79,15 @@ ${content_type}= application/xml
    ${response}=    Batch Create Entities    @{entities_to_be_created}    content_type=${content_type}
    @{expected_entities_ids}=    Create List    ${first_entity_id}    ${second_entity_id}
    Check Response Status Code    415    ${response.status_code}
    [Teardown]    Batch Delete Entities    @{expected_entities_ids}
    [Teardown]    Batch Delete Entities    entities_ids_to_be_deleted=@{expected_entities_ids}

044_03_06 endpoint post /temporal/entities/
    [Documentation]    Verify throwing 415 HTTP status code (Unsupported Media Type) if "Content-Type" header is not "application/json" or "application/ld+json" (post /temporal/entities/)
    [Tags]    te-create    6_3_4
    ${temporal_entity_representation_id}=    Generate Random Entity Id    ${tea_id_prefix}
    ${response}=    Create Or Update Temporal Representation Of Entity Selecting Content Type
    ...    ${temporal_entity_representation_id}
    ...    ${tea_filename}
    ...    ${content_type}
    ...    temporal_entity_representation_id=${temporal_entity_representation_id}
    ...    filename=${tea_filename}
    ...    content_type=${content_type}
    Check Response Status Code    415    ${response.status_code}
    [Teardown]    Delete Temporal Representation Of Entity    ${temporal_entity_representation_id}
+1 −1
Original line number Diff line number Diff line
@@ -52,4 +52,4 @@ Batch Create Entity Scenarios
    Check Created Resources Set To    ${entities_to_be_created}    ${response.json()}

Delete Initial Entities
    Batch Delete Entities    @{expected_entities_ids}
    Batch Delete Entities    entities_ids_to_be_deleted=@{expected_entities_ids}
+1 −1
Original line number Diff line number Diff line
@@ -53,4 +53,4 @@ Setup Initial Entities

Delete Initial Entities
    @{entities_ids_to_be_deleted}=    Create List    ${first_entity_id}    ${second_entity_id}    ${existing_entity_id}
    Batch Delete Entities    @{entities_ids_to_be_deleted}
    Batch Delete Entities    entities_ids_to_be_deleted=@{entities_ids_to_be_deleted}
Loading