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
5a6b17d3
Commit
5a6b17d3
authored
Jan 22, 2021
by
Michele Carignani
Browse files
fix generation of json payloads for subscription creation and update
parent
adefbacf
Pipeline
#5740
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
SRV/RNIS/RnisSubscriptions_BV.robot
View file @
5a6b17d3
...
...
@@ -8,7 +8,7 @@ Resource ../../pics.txt
Resource
../../GenericKeywords.robot
Resource
resources/RadioNetworkInformationAPI.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
String
*** Test Cases ***
...
...
@@ -79,7 +79,10 @@ Post RNIS subscription request
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${body}
Get File
jsons/CellChangeSubscriptionRequest.json
${body}
=
Get File
jsons/CellChangeSubscriptionRequest.json
${body}
=
Replace String
${body}
\
${HREF}
${HREF}
${body}
=
Replace String
${body}
\
${LINKS_SELF}
${LINKS_SELF}
Log
${body}
Post
${apiRoot}
/rni/
${apiVersion}
/subscriptions
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -94,7 +97,7 @@ Get Individual RNIS Subscription
Get
${apiRoot}
/rni/
${apiVersion}
/subscriptions/
${SUBSCRIPTION_ID}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Update Individual RNIS Subscription
Should Be True
${PIC_RNIS_SPECIFIC_SUBSCRIPTION}
=
= 1
...
...
@@ -102,10 +105,13 @@ Update Individual RNIS Subscription
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${body}
Get File
jsons/UpdateCellChangeSubscriptionRequest.json
${body}
=
Replace String
${body}
\
${HREF}
${HREF}
${body}
=
Replace String
${body}
\
${LINKS_SELF}
${LINKS_SELF}
Log
${body}
Put
${apiRoot}
/rni/
${apiVersion}
/subscriptions/
${SUBSCRIPTION_ID}
${body}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Delete Individual RNIS Subscription
Should Be True
${PIC_RNIS_SPECIFIC_SUBSCRIPTION}
=
= 1
...
...
Michele Carignani
@carignani
mentioned in issue
#25
·
Feb 03, 2021
mentioned in issue
#25
mentioned in issue #25
Toggle commit list
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