Commit 3c84f82b authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

feat: check empty response body is empty on 201 and 204 (fix #5)

parent ac45bde8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ Test Setup Setup Initial Entities
    ${response}=    Batch Delete Entities    entities_ids_to_be_deleted=@{entities_ids_to_be_deleted}

    Check Response Status Code    204    ${response.status_code}
    Check Response Body Is Empty    ${response}
    ${expected_entities_ids}=    Catenate    SEPARATOR=,    @{entities_ids_to_be_deleted}
    ${response1}=    Query Entities
    ...    entity_ids=${expected_entities_ids}
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ Batch Merge Entity Scenarios
    @{entities_to_be_merged}=    Create List    ${first_entity}    ${second_entity}
    ${response}=    Batch Merge Entities    @{entities_to_be_merged}
    Check Response Status Code    204    ${response.status_code}
    Check Response Body Is Empty    ${response}

    ${expected_entities_ids}=    Catenate    SEPARATOR=,    @{entities_ids_to_be_merged}
    ${response1}=    Query Entities
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ Batch Update Entity Scenarios
    ${response}=    Batch Update Entities    @{entities_to_be_updated}

    Check Response Status Code    204    ${response.status_code}
    Check Response Body Is Empty    ${response}
    ${first_created_entity}=    Load Test Sample    entities/${entity_payload_filename}    ${first_entity_id}
    ${second_created_entity}=    Load Test Sample    entities/${entity_payload_filename}    ${second_entity_id}
    ${update_fragment}=    Load Test Sample    entities/${update_fragment_filename}
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ Batch Update Entity Scenarios
    @{entities_to_be_updated}=    Create List    ${first_entity}    ${second_entity}
    ${response}=    Batch Update Entities    @{entities_to_be_updated}
    Check Response Status Code    204    ${response.status_code}
    Check Response Body Is Empty    ${response}
    ${first_created_entity}=    Load Test Sample    entities/${entity_payload_filename}    ${first_entity_id}
    ${second_created_entity}=    Load Test Sample    entities/${entity_payload_filename}    ${second_entity_id}
    ${update_fragment}=    Load Test Sample    entities/${update_fragment_filename}
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ Batch Upsert Existing Entities Scenarios
    ${response}=    Batch Upsert Entities    @{entities_to_be_upserted}

    Check Response Status Code    204    ${response.status_code}
    Check Response Body Is Empty    ${response}
    @{upserted_entities_ids}=    Create List    ${first_existing_entity_id}    ${second_existing_entity_id}
    ${expected_updated_entities_ids}=    Catenate    SEPARATOR=,    @{upserted_entities_ids}
    ${response1}=    Query Entities
Loading