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
798f9476
Commit
798f9476
authored
Apr 30, 2021
by
Elian Kraja
Browse files
Fix MEC016 body for post requests
parent
608d1148
Pipeline
#6840
passed with stage
in 0 seconds
Changes
7
Pipelines
1
Show whitespace changes
Inline
Side-by-side
MEC016/MEO/UEAPPCTX/SysUeAppsContext.robot
View file @
798f9476
...
...
@@ -21,6 +21,7 @@ TP_MEC_MEC016_MEO_UEAPPCTX_001_OK
Create application context
AppContext.json
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
AppContext
Check HTTP Response Header Contains
Location
Should Be Equal As Strings
${response['body']['appInfo']['appName']}
MyNewWornderfulApp
Set Suite Variable
${contextId}
${response['body']['contextId']}
...
...
@@ -57,8 +58,6 @@ TP_MEC_MEC016_MEO_UEAPPCTX_002_OK
# Test Body
Update application context
${contextId}
UpdateAppContext.json
Check HTTP Response Status Code Is
204
Check HTTP Response Body Json Schema Is
AppContext
Should Be Equal As Strings
${response['body']['callbackReference']}
http://127.0.0.1/callbackuri
TP_MEC_MEC016_MEO_UEAPPCTX_002_BR
[
Documentation
]
...
...
@@ -105,7 +104,6 @@ TP_MEC_MEC016_MEO_UEAPPCTX_003_NF
Should Be True
${PIC_SERVICES}
=
= 1
Delete application context
${NON_EXISTING_CONTEXT_ID}
Check HTTP Response Status Code Is
404
Check ProblemDetails
404
*** Keywords ***
...
...
@@ -114,9 +112,9 @@ Create application context
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${path}
Catenate
SEPA
T
ATOR=
jsons/
${content}
${path}
Catenate
SEPA
R
ATOR=
jsons/
${content}
${body}
Get Binary File
${path}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_contexts
${
content
}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_contexts
${
body
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -126,9 +124,9 @@ Create application context using wrong endpoint
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${path}
Catenate
SEPA
T
ATOR=
jsons/
${content}
${path}
Catenate
SEPA
R
ATOR=
jsons/
${content}
${body}
Get Binary File
${path}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_contexts_error
${
content
}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_contexts_error
${
body
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
MEC016/MEO/UEAPPCTX/jsons/AppContext.json
View file @
798f9476
...
...
@@ -2,7 +2,7 @@
"associateDevAppId"
:
"MyNewWornderfulDevAppId"
,
"appInfo"
:{
"appName"
:
"MyNewWornderfulApp"
,
"appProvider"
:
"TF012"
,
"appProvider"
:
"
T
TF012"
,
"appDVersion"
:
"v0.0.1"
,
"userAppInstanceInfo"
:[
{
...
...
MEC016/MEO/UEAPPCTX/jsons/AppContext_BR.json
View file @
798f9476
...
...
@@ -2,7 +2,7 @@
"associateDevAppId"
:
"MyNewWornderfulDevAppId"
,
"appInfo"
:{
"app"
:
"MyNewWornderfulApp"
,
"appProvider"
:
"TF012"
,
"appProvider"
:
"
T
TF012"
,
"appDVersion"
:
"v0.0.1"
,
"userAppInstanceInfo"
:[
{
...
...
MEC016/MEO/UEAPPCTX/jsons/UpdateAppContext.json
View file @
798f9476
{
"associateDevAppId"
:
"MyNewWornderfulDevAppId"
,
"contextId"
:
"
MyNewWornderfulDevAppId
"
,
"contextId"
:
"
1
"
,
"callbackReference"
:
"http://127.0.0.1/callbackuri"
,
"appInfo"
:{
"appName"
:
"MyNewWornderfulApp"
,
"appProvider"
:
"TF012"
,
"appProvider"
:
"
T
TF012"
,
"appDVersion"
:
"v0.0.1"
,
"userAppInstanceInfo"
:[
{
...
...
MEC016/MEO/UEAPPCTX/jsons/UpdateAppContext_BR.json
View file @
798f9476
{
"associateUeAppId"
:
"MyNewWornderfulDevAppId"
,
"contextId"
:
"
MyNewWornderfulDevAppId
"
,
"contextId"
:
"
1
"
,
"callbackReference"
:
"http://127.0.0.1/callbackuri"
,
"appInfo"
:{
"appName"
:
"MyNewWornderfulApp"
,
"appProvider"
:
"TF012"
,
"appProvider"
:
"
T
TF012"
,
"appDVersion"
:
"v0.0.1"
,
"userAppInstanceInfo"
:[
{
...
...
MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.robot
View file @
798f9476
...
...
@@ -45,17 +45,15 @@ TP_MEC_MEC016_MEO_UEAPPCTX_001_NF
Check HTTP Response Status Code Is
404
*** Keywords ***
Obtain Application Location Availability Task
[
Arguments
]
${content}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${path}
Catenate
SEPA
T
ATOR=
jsons/
${content}
${path}
=
Catenate
SEPA
R
ATOR=
jsons/
${content}
${body}
Get Binary File
${path}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/obtain_app_loc_availability
${
content
}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/obtain_app_loc_availability
${
body
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -65,8 +63,8 @@ Obtain Application Location Availability Task using wrong endpoint
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
${path}
Catenate
SEPA
T
ATOR=
jsons/
${content}
${path}
=
Catenate
SEPA
R
ATOR=
jsons/
${content}
${body}
Get Binary File
${path}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/obtain_app_loc_availability_error
${
content
}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/obtain_app_loc_availability_error
${
body
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
MEC016/MEO/UEAPPS/SysUeApplications.robot
View file @
798f9476
...
...
@@ -21,6 +21,7 @@ TP_MEC_MEC016_MEO_UEAPPS_001_OK
Retrieve the application contexts list
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
ApplicationList
## Post condition
FOR
${appInfo}
IN
@{response['body']['appList']}
${passed}
Run Keyword And Return Status
Should Be Equal As Strings
${appInfo['appInfo']['appName']}
${APP_NAME}
Exit For Loop If
${passed}
...
...
@@ -73,7 +74,6 @@ Retrieve the application contexts list
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_list
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -84,7 +84,6 @@ Retrieve the application contexts list using wrong endpoint
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_list_error
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
@@ -96,7 +95,6 @@ Retrieve the application contexts list using filters
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
GET
${apiRoot}
/
${apiName}
/
${apiVersion}
/app_list?
${filter}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
...
...
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