Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC Robot Test Suite
Commits
2034bda7
Commit
2034bda7
authored
Jun 08, 2020
by
Elian Kraja
Browse files
Fix on check response contains keyword
parent
e4b9a76c
Pipeline
#3738
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
GenericKeywords.robot
View file @
2034bda7
...
...
@@ -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}
...
...
SRV/DNS/PlatDnsRules.robot
View file @
2034bda7
...
...
@@ -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 Res
ult
Contains
${response['body']}
dnsRuleId
${DNS_RULE_ID}
Check Res
ponse
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 Res
ult
Contains
${response['body']}
ipAddress
${SOME_IP_ADDRESS}
Check Res
ponse
Contains
${response['body']}
ipAddress
${SOME_IP_ADDRESS}
TC_MEC_SRV_DNS_003_BR
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment