Commits (3)
......@@ -15,7 +15,7 @@ TP_MEC_MEC028_SRV_WAI_001_OK
[Documentation]
... Check that the IUT responds with the list of WLAN Access Point
... Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/ApInfo ##Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/ApInfo
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the access point information
......@@ -32,7 +32,7 @@ TP_MEC_MEC028_SRV_WAI_002_OK
[Documentation]
... Check that the IUT responds with the list of WLAN Access Point filtered by the macId provided as query parameter
... Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/ApInfo ##Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/ApInfo
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the access point information using filters ${filter}
......@@ -50,7 +50,7 @@ TP_MEC_MEC028_SRV_WAI_002_BR
[Documentation]
... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
... Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/ApInfo ##Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/ApInfo
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the access point information using filters ${bad_filter}
......
......@@ -14,7 +14,7 @@ TP_MEC_MEC028_SRV_WAI_008_OK
[Documentation]
... Check that the IUT responds with the list of Subscription"
... Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription ##Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve existing subscription information ${SUB_ID}
......@@ -22,7 +22,7 @@ TP_MEC_MEC028_SRV_WAI_008_OK
Check HTTP Response Body Json Schema Is AssocStaSubscription
Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE}
Should Be Equal As Strings ${response['body']['callbackReference']} ${CALLBACK_URI}
Should Be Equal As Strings ${response['body']['apId']['macId']} ${MAC_ID}
Should Be Equal As Strings ${response['body']['apId']['bssid']} ${BSS_ID}
TP_MEC_MEC028_SRV_WAI_008_NF
[Documentation]
......@@ -47,7 +47,7 @@ TP_MEC_MEC028_SRV_WAI_009_OK
Check HTTP Response Body Json Schema Is AssocStaSubscription
Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE}
Should Be Equal As Strings ${response['body']['callbackReference']} ${NEW_CALLBACK_URI}
Should Be Equal As Strings ${response['body']['apId']['macId']} ${MAC_ID}
Should Be Equal As Strings ${response['body']['apId']['bssid']} ${BSS_ID}
TP_MEC_MEC028_SRV_WAI_009_BR
[Documentation]
......
......@@ -14,4 +14,4 @@ ${SUB_ID} 1
${NOT_EXISTING_SUB_ID} 99
${CALLBACK_URI} http://callback.uri/1
${NEW_CALLBACK_URI} http://new.callback.uri/1
${MAC_ID} macId01
\ No newline at end of file
${BSS_ID} bssid01
\ No newline at end of file
{
"_links":{
"href":""
},
"apId": {
"macId": "macId01"
},
"callbackReference": "http://new.callback.uri/1",
"subscriptionType": "AssocStaSubscription"
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/3",
"_links": {
"self": {
"href": "http://meAppServer.example.com/wai/v2/subscriptions/sub123"
}
},
"apId": {
"bssid": "005C0A0A0A0A"
},
"notificationEvent": {
"threshold": 1,
"trigger": 1
}
}
\ No newline at end of file
{
"_links":{
"href":""
},
"apId": {
"macId": "macId01"
},
"callbackReference": "http://callback.uri/1",
"subscriptionType": "INVALID_VALUE"
"subscription": "AssocStaSubscription",
"callback": "http://meAppClient.example.com/wai/v2/notifications/3",
"_links": {
"self": {
"href": "http://meAppServer.example.com/wai/v2/subscriptions/sub123"
}
},
"apId": {
"bssid": "005C0A0A0A0A"
},
"notificationEvent": {
"threshold": 1,
"trigger": 1
}
}
\ No newline at end of file
......@@ -57,8 +57,8 @@ TP_MEC_MEC028_SRV_WAI_014_OK
... "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList"
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Check HTTP Response Body Json Schema Is MeasurementConfig
Retrieve a specified measurement configuration ${MEAS_ID}
Check HTTP Response Body Json Schema Is MeasurementConfig
Check HTTP Response Status Code Is 200
Should Be Equal As Strings ${response['body']['measurementId']} ${MEAS_ID}
......@@ -122,7 +122,7 @@ TP_MEC_MEC028_SRV_WAI_016_NF
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Delete a specified measurement configuration ${INVALID_MEASUREMENT_CONFIG_ID}
Check HTTP Response Status Code Is 204
Check HTTP Response Status Code Is 404
*** Keywords ***
......
......@@ -14,23 +14,19 @@ TP_MEC_MEC028_SRV_WAI_005_OK
[Documentation]
... Check that the IUT responds with the requested list of subscription
... Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the subscription information ${SUB_FILTER}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is SubscriptionLinkList
FOR ${assocStaSub} IN @{response['body']['assocStaSubscription']}
${passed} Run Keyword And Return Status Should Be Equal As Strings ${assocStaSub['_links']['self']['href']} ${HREF}
Exit For Loop If ${passed}
END
TP_MEC_MEC028_SRV_WAI_006_OK
[Documentation]
... Check that the IUT responds with the requested list of subscription
... Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
......@@ -43,8 +39,7 @@ TP_MEC_MEC028_SRV_WAI_006_BR
[Documentation]
... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
... Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the subscription information ${INVALID_SUB_FILTER}
......@@ -54,7 +49,9 @@ TP_MEC_MEC028_SRV_WAI_006_NF
[Documentation]
... Check that the IUT responds with an error when a request with not existing parameters is sent
... Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Retrieve the subscription information using wrong endpoint
Check HTTP Response Status Code Is 404
......@@ -62,21 +59,19 @@ TP_MEC_MEC028_SRV_WAI_007_OK
[Documentation]
... Check that the IUT responds with a Notification Subscription
... Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.4
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Send a request for creating a subscription AssocStaSubscription.json
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is AssocStaSubscription
Should Be Equal As Strings ${response['body']['subscriptionType']} ${SUB_TYPE}
Should Be Equal As Strings ${response['body']['_links']['self']['href']} ${HREF}
Should Be Equal As Strings ${response['headers']['Location']} ${HREF}
TP_MEC_MEC028_SRV_WAI_007_BR
[Documentation]
... Check that the IUT responds with an error when an invalid Subscription request is sent
... ETSI GS MEC 028 2.2.1, clause 7.5.3.4
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.1.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription #Outdated
... https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription
Should Be True ${PIC_MEC_SYSTEM} == 1
Should Be True ${PIC_SERVICES} == 1
Send a request for creating a subscription AssocStaSubscription_BR.json
......
{
"apId": {
"macId": "macId01"
},
"callbackReference": "http://callback.uri/1",
"subscriptionType": "AssocStaSubscription"
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1",
"apId": {
"bssid": "005C0A0A0A0A"
},
"notificationEvent": {
"threshold": 1,
"trigger": 1
}
}
\ No newline at end of file
{
"_links":{
"href":""
},
"apId": {
"macId": "macId01"
},
"callbackReference": "http://callback.uri/1",
"subscriptionType": "INVALID_VALUE"
"subscription": "AssocStaSubscription",
"callback": "http://meAppClient.example.com/wai/v2/notifications/1",
"apId": {
"bssid": "005C0A0A0A0A"
},
"notificationEvent": {
"threshold": 1,
"trigger": 1
}
}
\ No newline at end of file