Commit 2034bda7 authored by Elian Kraja's avatar Elian Kraja
Browse files

Fix on check response contains keyword

parent e4b9a76c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,14 +25,14 @@ Should Be Present In Json List
    [Arguments]     ${expr}   ${json_field}   ${json_value}
    Log    Check if ${json_field} is present in ${expr} with the value ${json_value}
    :FOR  ${item}  IN  @{expr}
    \  Exit For Loop If    "${item['${json_field}']}" == "${json_value}"
    \  Exit For Loop If    ${item[${json_field}]} == ${json_value}
    Log    Item found ${item}
    [return]    ${item}
    
Should Be Present In Json
    [Arguments]     ${expr}   ${json_field}   ${json_value}
    Log    Check if ${json_field} is present in ${expr} with the value ${json_value}
    Should Be Equal As Strings    ${expr}['${json_field}']    ${json_value}
    Should Be Equal As Strings    ${expr}[${json_field}]    ${json_value}

Check Response Contains
    [Arguments]    ${source}    ${parameter}    ${value}
+2 −2
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ TC_MEC_SRV_DNS_002_OK
    Get individual DNS rule    ${APP_INSTANCE_ID}    ${DNS_RULE_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    DnsRule
    Check Result Contains    ${response['body']}    dnsRuleId    ${DNS_RULE_ID}
    Check Response Contains    ${response['body']}    dnsRuleId    ${DNS_RULE_ID}


TC_MEC_SRV_DNS_002_NF
@@ -69,7 +69,7 @@ TC_MEC_SRV_DNS_003_OK
    Update a DNS Rule    ${APP_INSTANCE_ID}    ${DNS_RULE_ID}    DnsRuleUpdate
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    DnsRule
    Check Result Contains    ${response['body']}    ipAddress    ${SOME_IP_ADDRESS}
    Check Response Contains    ${response['body']}    ipAddress    ${SOME_IP_ADDRESS}


TC_MEC_SRV_DNS_003_BR