Commit 828b7b5d authored by Elian Kraja's avatar Elian Kraja Committed by Michele Carignani
Browse files

Fix on RobotFiles

parent 57280f5a
......@@ -25,7 +25,7 @@ TC_MEC_SRV_RLOCLOOK_001_OK
Get the access points list ${ZONE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is AccessPointList
Check Result Contains ${response['body']['accessPointList']} zoneId ${ZONE_ID}
Should Be Equal As Strings ${response['body']['accessPointList']['zoneId']} ${ZONE_ID}
TC_MEC_SRV_RLOCLOOK_001_NF
......
{
"properties": {
"accessPointList": {
"description": "A type containing list of access points.",
"type": "object",
"required": [
......@@ -121,4 +123,6 @@
"example": "http://example.com/exampleAPI/location/v1/subscriptions/userTracking/subscription123"
}
}
}
\ No newline at end of file
}
}
}
\ No newline at end of file
......@@ -26,9 +26,8 @@ TC_MEC_SRV_UEAREASUB_001_OK
Create new subscription CircleNotificationSubscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is CircleNotificationSubscription
Check Result Contains ${response['body']['circleNotificationSubscription']} clientCorrelator ${UEAREASUB_CLIENT_ID}
Check Result Contains ${response['body']['circleNotificationSubscription']} callbackReference ${APP_UEAREASUB_CALLBACK_URI}
Check Result Contains ${response['body']['circleNotificationSubscription']} address ${IP_ADDRESS}
Should Be Equal As Strings ${response['body']['circleNotificationSubscription']['callbackReference']} ${APP_UEAREASUB_CALLBACK_URI}
Should Be Equal As Strings ${response['body']['circleNotificationSubscription']['address']} ${IP_ADDRESS}
......
......@@ -25,9 +25,8 @@ TC_MEC_SRV_UEINFOSUB_001_OK
Create new subscription ZonalTrafficSubscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is ZonalTrafficSubscription
Check Result Contains ${response['body']['zonalTrafficSubscription']} clientCorrelator ${ZONAL_TRAF_SUB_CLIENT_ID}
Check Result Contains ${response['body']['zonalTrafficSubscription']} callbackReference ${ZONAL_TRAF_NOTIF_CALLBACK_URI}
Check Result Contains ${response['body']['zonalTrafficSubscription']} zoneId ${ZONAL_TRAF_ZONE_ID}
Should Be Equal As Strings ${response['body']['zonalTrafficSubscription']['callbackReference']} ${ZONAL_TRAF_NOTIF_CALLBACK_URI}
Should Be Equal As Strings ${response['body']['zonalTrafficSubscription']['zoneId']} ${ZONAL_TRAF_ZONE_ID}
TC_MEC_SRV_UEINFOSUB_001_BR
......@@ -55,7 +54,7 @@ TC_MEC_SRV_UEINFOSUB_002_OK
Check HTTP Response Status Code Is 204
TC_MEC_SRV_UEDISTSUB_002_NF
TC_MEC_SRV_UEINFOSUB_002_NF
[Documentation]
... Check that the IUT responds with an error when
... a request for an unknown URI is sent by a MEC Application
......
......@@ -12,7 +12,7 @@ ${apiVersion} v2
# Specific variables
${ZONAL_TRAF_SUB_CLIENT_ID} 0123
${ZONAL_TRAF_NOTIF_CALLBACK_URI} {"notifyURL": "http://clientApp.example.com/location_notifications/123456"}
${ZONAL_TRAF_ZONE_ID} zone01
${ZONAL_TRAF_ZONE_ID} zone1
${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
\ No newline at end of file
{
"name": "zonalTrafficSubscription",
"in": "body",
"description": "Zonal Traffic Subscription",
"required": true,
"schema": {
"zonalTrafficSubscription": {
"description": "A type containing zonal traffic subscription",
"type": "object",
"required": [
......
......@@ -11,7 +11,8 @@ Library OperatingSystem
Default Tags TC_MEC_SRV_UELOCLOOK
*** Variables ***
${response}
*** Test Cases ***
......@@ -20,7 +21,7 @@ TC_MEC_SRV_UELOCLOOK_001_OK
... Check that the IUT responds with a list for the location of User Equipments
... when queried by a MEC Application
...
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.2
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.3
... OpenAPI https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -35,7 +36,7 @@ TC_MEC_SRV_UELOCLOOK_001_BR
... Check that the IUT responds with an error when
... a request with incorrect parameters is sent by a MEC Application
...
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.2
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.3
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get list of user equipments zone ${ZONE_ID}
......@@ -53,6 +54,34 @@ TC_MEC_SRV_UELOCLOOK_001_NF
Get list of user equipments zoneId ${NON_EXISTENT_ZONE_ID}
Check HTTP Response Status Code Is 404
TC_MEC_SRV_UELOCLOOK_002_OK
[Documentation]
... Check that the IUT responds with a User Equipment information
... when queried by a MEC Application
...
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.2
... OpenAPI https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get specific user equipments ${USER_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is UserInfo
TC_MEC_SRV_UELOCLOOK_002_NF
[Documentation]
... Check that the IUT responds with an error when
... a request for an unknown URI is sent by a MEC Application
...
... Reference ETSI GS MEC 013 V2.1.1, clause 7.3.2
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get specific user equipments ${NON_EXISTENT_USER_ID}
Check HTTP Response Status Code Is 404
*** Keywords ***
Get list of user equipments
[Arguments] ${key} ${value}
......@@ -61,3 +90,11 @@ Get list of user equipments
Get ${apiRoot}/${apiName}/${apiVersion}/users?${key}=${value}
${output}= Output response
Set Suite Variable ${response} ${output}
Get specific user equipments
[Arguments] ${userId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/users/${userId}
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -11,4 +11,6 @@ ${apiVersion} v2
# Specific variables
${ZONE_ID} zone01
${USER_ID} ue1
${NON_EXISTENT_USER_ID} NON_EXISTENT_USER_ID
${NON_EXISTENT_ZONE_ID} NON_EXISTENT_ZONE_ID
\ No newline at end of file
......@@ -13,7 +13,7 @@ Default Tags TC_MEC_SRV_UELOCSUB
*** Variables ***
${response}
*** Test Cases ***
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment