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

Fix on check response contains keyword

parent e4b9a76c
Pipeline #3738 passed with stage
in 0 seconds
......@@ -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}
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment