Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
049d3a21
Commit
049d3a21
authored
Aug 06, 2019
by
Yann Garcia
Browse files
Add TC_MEC_SRV_RNIS_011_OK
parent
e9d6e38e
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1088 additions
and
6 deletions
+1088
-6
SRV/RNIS/RnisSpecificSubscription_BV.robot
SRV/RNIS/RnisSpecificSubscription_BV.robot
+35
-0
SRV/RNIS/environment/pics.txt
SRV/RNIS/environment/pics.txt
+3
-0
SRV/RNIS/environment/variables.txt
SRV/RNIS/environment/variables.txt
+11
-0
SRV/RNIS/resources/GenericKeywords.robot
SRV/RNIS/resources/GenericKeywords.robot
+38
-0
SRV/RNIS/resources/LocationAPI.robot
SRV/RNIS/resources/LocationAPI.robot
+12
-0
SRV/RNIS/resources/RadioNetworkInformationAPI.robot
SRV/RNIS/resources/RadioNetworkInformationAPI.robot
+9
-0
SRV/RNIS/schemas/RadioNetworkInformationAPI.schema.json
SRV/RNIS/schemas/RadioNetworkInformationAPI.schema.json
+968
-0
SRV/UETAG/PlatUeIdentity.robot
SRV/UETAG/PlatUeIdentity.robot
+1
-1
TODO.md
TODO.md
+11
-5
No files found.
SRV/RNIS/RnisSpecificSubscription_BV.robot
0 → 100644
View file @
049d3a21
''[Documentation] robot --outputdir ../../outputs ./RnisSpecificSubscription_BV.robot
...
Test
Suite
to
validate
RNIS/Subscription
(RNIS)
operations.
*** Settings ***
Resource
environment/variables.txt
Resource
environment/pics.txt
Resource
resources/GenericKeywords.robot
Resource
resources/RadioNetworkInformationAPI.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
*** Test Cases ***
Request RNIS subscription list
[
Documentation
]
TC_MEC_SRV_RNIS_011_OK
...
Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested
...
ETSI GS MEC 012 2.0.4, clause 7.6.3.1
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/SubscriptionLinkList
Get RNIS subscription list
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
RadioNetworkInformationAPI
log
${response['body']['SubscriptionLinkList']['_links']}
Should Be Equal
${response['body']['SubscriptionLinkList']['_links']['self']}
${LINKS_SELF}
*** Keywords ***
Get RNIS subscription list
Should Be True
${PIC_RNIS_SPECIFIC_SUBSCRIPTION}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/rni/v2/subscriptions
${output}
=
Output
response
Set Suite Variable
${response}
${output}
SRV/RNIS/environment/pics.txt
0 → 100644
View file @
049d3a21
*** Variables ***
${PIC_RNIS_SPECIFIC_SUBSCRIPTION} 1
SRV/RNIS/environment/variables.txt
0 → 100644
View file @
049d3a21
*** Variables ***
${MEC-APP_SCHEMA} http
#${MEC-APP_HOST} 172.28.4.87
#${MEC-APP_HOST} 127.0.0.1
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
${SUBSCRIPTION_ID} 7777
${NON_EXISTENT_SUBSCRIPTION_ID} 6666
${LINKS_SELF} http://example.com/exampleAPI/rni/v2/subscriptions
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
SRV/RNIS/resources/GenericKeywords.robot
0 → 100644
View file @
049d3a21
*** Settings ***
Resource
../environment/variables.txt
Resource
GenericKeywords.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
*** Keywords ***
Get User Equipment for location with filters
[
Arguments
]
${value}
Set Headers
{"Accept":"application/json"}
Get
/location/v2/users/
${value}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Check HTTP Response Status Code Is
[
Arguments
]
${expected_status}
${status}
=
Convert To Integer
${expected_status}
Should Be Equal
${response['status']}
${status}
Log
Status code validated
Check HTTP Response Body Json Schema Is
[
Arguments
]
${input}
Should Contain
${response['headers']['Content-Type']}
application/json
${schema}
=
Catenate
SEPARATOR=
${input}
.schema.json
Validate Json
${schema}
${response['body']}
Log
Json Schema Validation OK
Should Be Present In Json List
[
Arguments
]
${expr}
${json_field}
${json_value}
Log
Check if
${json_field}
is present in
${expr}
with the value
${jsonvalue}
:FOR
${item}
IN
@{expr}
\
Exit For Loop If
"
${item['${json_field}']}
" == "
${json_value}
"
Log
Item found
${item}
[
return
]
${item}
Check Result Contains
[
Arguments
]
${source}
${parameter}
${value}
Should Be Present In Json List
${source}
${parameter}
${value}
SRV/RNIS/resources/LocationAPI.robot
0 → 100644
View file @
049d3a21
*** Settings ***
Resource
../environment/variables.txt
Resource
LocationAPI.robot
#Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false
Library
JSONSchemaLibrary
schemas/
*** Keywords ***
Check Location
[
Arguments
]
${value}
Log
Check Location for userInfo element
Should be Equal
${response['body']['userInfo']['zoneId']}
${value}
Log
Location OK
SRV/RNIS/resources/RadioNetworkInformationAPI.robot
0 → 100644
View file @
049d3a21
*** Settings ***
Resource
../environment/variables.txt
Resource
../environment/pics.txt
Resource
GenericKeywords.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
*** Keywords ***
SRV/RNIS/schemas/RadioNetworkInformationAPI.schema.json
0 → 100644
View file @
049d3a21
This diff is collapsed.
Click to expand it.
SRV/UETAG/PlatUeIdentity.robot
View file @
049d3a21
''[Documentation] robot --outputdir ./outputs ./
SRV/UETAG/
PlatUeIdentity.robot
''[Documentation] robot --outputdir
../.
./outputs ./PlatUeIdentity.robot
...
Test
Suite
to
validate
UE
Identity
Tag
(UETAG)
operations.
*** Settings ***
...
...
TODO.md
View file @
049d3a21
...
...
@@ -11,9 +11,9 @@ This file provides the list of the TODOs related to the STF 569.
### APPSUB
### BWA
### BWA
### DNS
### DNS
### FAIS
...
...
@@ -21,6 +21,13 @@ This file provides the list of the TODOs related to the STF 569.
### RNIS
Draft ETSI GS MEC 012 2.0.4
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/master/Test%20Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/master/Test%20Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2
-
TC_MEC_SRV_RNIS_011_OK
<font
color=
"color:green"
>
To be tested
</font>
### SAQ
### SRVSUB
...
...
@@ -29,7 +36,7 @@ This file provides the list of the TODOs related to the STF 569.
### TRAF
### TRANS
### TRANS
### UEAREASUB
...
...
@@ -74,7 +81,7 @@ https://forge.etsi.org/gitlab/mec/MEC-tests/blob/master/Test%20Purposes/SRV/UELO
### UETAG
### UETAG
ETSI GS MEC 014 V1.1.1 (2018-02)
...
...
@@ -99,4 +106,3 @@ https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/master/Test%20Purpo
Draft ETSI GS MEC 013 V2.0.3 (2018-10)
https://forge.etsi.org/gitlab/mec/gs032p2-test-purposes/blob/remove-401s/Test%20Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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