Commit a1cc7e35 authored by Benedetta Arena's avatar Benedetta Arena
Browse files

fix: add payload checks in test

parent d3fe85a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,13 +37,17 @@ IOP_CNF_03_01 Create OffStreetParking:1

    #Agent checks, with local=true, that the entity is created in A
    ${response}=    Retrieve Entity    ${entity_id}    local=true    broker_url=${b1_url}
    Should Be Equal    ${response.json()}    ${entity_payload_filename}
    Check Response Status Code    200    ${response.status_code}

    #Agent checks, with local=true, that the entity was not created in B
    ${response}=    Retrieve Entity    ${entity_id}    local=true    broker_url=${b2_url}
    Check Response Status Code    404    ${response.status_code}

    #Agent checks, with local=true, that the entity is created in C
    ${response}=    Retrieve Entity    ${entity_id}    local=true    broker_url=${b3_url}
    Check Response Status Code    200    ${response.status_code}
    Should Be Equal    ${response.json()}    ${entity_payload_filename}

    #Agent checks, with local=true, that the entity is created in D and only contains the properties availableSpotsNumber and totalSpotsNumber
    ${response}=    Retrieve Entity    ${entity_id}    local=true    broker_url=${b4_url}