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
8ff394d4
Commit
8ff394d4
authored
Aug 09, 2019
by
Yann Garcia
Browse files
Add RnisQuery_BV tests
parent
80c9d45b
Changes
5
Show whitespace changes
Inline
Side-by-side
SRV/RNIS/RnisQuery_BV.robot
View file @
8ff394d4
...
...
@@ -11,46 +11,45 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
*** Test Cases ***
Request R
NIS subscription list
[
Documentation
]
TC_MEC_SRV_RNIS_01
1
_OK
...
Check that the RNIS service
sends the list of links to the relevant RNIS subscrip
tion
s
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 R
NIS subscription list
Request R
abInfo info
[
Documentation
]
TC_MEC_SRV_RNIS_01
6
_OK
...
Check that the RNIS service
returns the RAB informa
tion when requested
...
ETSI GS MEC 012 2.0.4, clause 7.
3
.3.1
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/
RabInfo
Get R
abInfo info
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
RadioNetworkInformationAPI
Check
Subscription
${response['body']['
SubscriptionLinkList']}
${SUBSCRIPTION_VALUE
}
Check
RabInfo
${response['body']['
RabInfo']
}
Create RNIS subscription
[
Documentation
]
TC_MEC_SRV_RNIS_01
2
_OK
...
Check that the RNIS service
c
re
ates a new RNIS subscription
...
ETSI GS MEC 012 2.0.4, clause 7.
6
.3.
4
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml
Post RNIS subscription request
{"CellChangeSubscription": {"subscriptionType": CELL_CHANGE, "callbackReference": "
${HREF}
", "_links": {"self": "
${LINKS_SELF}
"}, "filterCriteria": {"appInsId": "01", "associateId": [{"type": "UE_IPV4_ADDRESS", "value": 1}], "plmn": {"mcc": "01", "mnc": "001"}, "cellId": ["800000"], "hoStatus": "COMPLETED"}, "expiryDeadline": {"seconds": 1577836800, "nanoSeconds": 0}}}
Check HTTP Response Status Code Is
20
1
Request Plmn info
[
Documentation
]
TC_MEC_SRV_RNIS_01
7
_OK
...
Check that the RNIS service re
turns the PLMN information when requested
...
ETSI GS MEC 012 2.0.4, clause 7.
4
.3.
1
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml
#/definitions/PlmnInfo
Get PLMN info
Check HTTP Response Status Code Is
20
0
Check HTTP Response Body Json Schema Is
RadioNetworkInformationAPI
Check
CellChangeSubscription
${response['body']['
CellChangeSubscription
']}
Check
PlmnInfo
${response['body']['
PlmnInfo
']}
*** Keywords ***
Get R
NIS subscription list
Get R
abInfo info
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?subscription_type=
${SUBSCRIPTION_HREF_VALUE
}
Get
/exampleAPI/rni/v2/
queries?cell_id=
${CELL_ID
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Post RNIS subscription request
[
Arguments
]
${content}
Get Plmn info
Should Be True
${PIC_RNIS_SPECIFIC_SUBSCRIPTION}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Post
/exampleAPI/rni/v2/subscriptions
${content}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/rni/v2/queries?plmn_info=
${APP_INS_ID}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
SRV/RNIS/RnisSpecificSubscription_BI_BO.robot
View file @
8ff394d4
...
...
@@ -26,7 +26,7 @@ Create RNIS subscription using bad parameters
...
Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format
...
ETSI GS MEC 012 2.0.4, clause 7.6.3.4
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml
Post RNIS subscription request
{"CellChangeSubscription": {"subscriptionType":
WRONG_PARAMETER
, "callbackReference": "
${HREF}
", "_links": {"self": "
${LINKS_SELF}
"}, "filterCriteria": {"appInsId": "01", "associateId": [{"type": "UE_IPV4_ADDRESS", "value": 1}], "plmn": {"mcc": "01", "mnc": "001"}, "cellId": ["800000"], "hoStatus": "COMPLETED"}, "expiryDeadline": {"seconds": 1577836800, "nanoSeconds": 0}}}
Post RNIS subscription request
{"CellChangeSubscription": {"subscriptionType":
"CelCangeSubscription"
, "callbackReference": "
${HREF}
", "_links": {"self": "
${LINKS_SELF}
"}, "filterCriteria": {"appInsId": "01", "associateId": [{"type": "UE_IPV4_ADDRESS", "value": 1}], "plmn": {"mcc": "01", "mnc": "001"}, "cellId": ["800000"], "hoStatus": "COMPLETED"}, "expiryDeadline": {"seconds": 1577836800, "nanoSeconds": 0}}}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
...
...
@@ -38,6 +38,17 @@ Get RNIS subscription list with wrong parameter
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Post
/exampleAPI/rni/v2/subscriptions?subscription_type=InvalidSubscriptionRef
Get
/exampleAPI/rni/v2/subscriptions?subscription_type=wrongSubscriptionType
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Post RNIS subscription request
[
Arguments
]
${content}
Should Be True
${PIC_RNIS_SPECIFIC_SUBSCRIPTION}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Post
/exampleAPI/rni/v2/subscriptions
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
SRV/RNIS/RnisSpecificSubscription_BV.robot
View file @
8ff394d4
...
...
@@ -27,7 +27,7 @@ Create RNIS subscription
...
Check that the RNIS service creates a new RNIS subscription
...
ETSI GS MEC 012 2.0.4, clause 7.6.3.4
...
Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml
Post RNIS subscription request
{"CellChangeSubscription": {"subscriptionType": CELL_CHANGE, "callbackReference": "
${HREF}
", "_links": {"self": "
${LINKS_SELF}
"}, "filterCriteria": {"appInsId": "01", "associateId": [{"type": "UE_IPV4_ADDRESS", "value": 1}], "plmn": {"mcc": "01", "mnc": "001"}, "cellId": ["800000"], "hoStatus": "COMPLETED"}, "expiryDeadline": {"seconds": 1577836800, "nanoSeconds": 0}}}
Post RNIS subscription request
{"CellChangeSubscription": {"subscriptionType":
"
CELL_CHANGE
"
, "callbackReference": "
${HREF}
", "_links": {"self": "
${LINKS_SELF}
"}, "filterCriteria": {"appInsId": "01", "associateId": [{"type": "UE_IPV4_ADDRESS", "value": 1}], "plmn": {"mcc": "01", "mnc": "001"}, "cellId": ["800000"], "hoStatus": "COMPLETED"}, "expiryDeadline": {"seconds": 1577836800, "nanoSeconds": 0}}}
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
RadioNetworkInformationAPI
Check CellChangeSubscription
${response['body']['CellChangeSubscription']}
...
...
SRV/RNIS/environment/variables.txt
View file @
8ff394d4
...
...
@@ -11,5 +11,7 @@ ${SUBSCRIPTION_HREF_VALUE} cell_changed
${SUBSCRIPTION_TYPE} CELL_CHANGE
${HREF} http://meAppClient.example.com/rni/v1/notifications/cell_change/77777
${SUBSCRIPTION_VALUE} {'href': '${HREF}', 'subscriptionType': '${SUBSCRIPTION_TYPE}'}
${CELL_ID} 0x800000A
${APP_INS_ID} 01
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
SRV/RNIS/resources/RadioNetworkInformationAPI.robot
View file @
8ff394d4
*** Settings ***
Resource
../environment/variables.txt
Resource
../
environment
/pics.txt
Resource
GenericKeywords.robot
Resource
../
../..
/pics.txt
Resource
../../../
GenericKeywords.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
...
...
@@ -19,3 +19,20 @@ Check Subscription
Check CellChangeSubscription
[
Arguments
]
${received_value}
Should Be Equal
${received_value['_links']['self']}
${LINKS_SELF}
Check RabInfo
[
Arguments
]
${received_value}
Should Be Equal
${received_value['appInsId']}
${APP_INS_ID}
Should Not Contain
${received_value['requestId']}
""
Should Be Equal
${received_value['cellUserInfo']['ecgi']['cellId']}
${CELL_ID}
# TODO How to check the presence of a field
Check PlmnInfo
[
Arguments
]
${received_value}
Should Be Equal
${received_value['appInsId']}
${APP_INS_ID}
Should Be Equal
${received_value['ecgi']['cellId']}
${CELL_ID}
Should Not Contain
${received_value['ecgi']['plmn']['mcc']}
""
Should Not Contain
${received_value['ecgi']['plmn']['mnc']}
""
# TODO How to check the presence of a field
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