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

fix: improve loop detection validation

parent c9f59e17
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -31,12 +31,13 @@ D018_01 Loop Detection With Via Header
    ${expected_via_header}=    Get From Dictionary    ${payload}    Via

    ${response}=    Delete Entity    ${entity_id}
    Check Response Status Code    508    ${response.status_code}
    Check Response Status Code    201    ${response.status_code}

    Wait For Request
    ${response}=    Get Request Headers
    ${actual_via_header}=    Convert To Dictionary    ${response}
    Should Contain    ${actual_via_header}    ${expected_via_header}
    ${payload}=    Convert To Dictionary    ${response}
    ${actual_via_header}=    Get From Dictionary    ${payload}    Via
    Should Be Equal    ${actual_via_header}    ${expected_via_header}

*** Keywords ***
Create Entity And Registration On The Context Broker And Start Context Source Mock Server