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

Updated MEC012 to v2.1.1

parent 68c4b45a
Pipeline #3720 passed with stage
in 0 seconds
...@@ -16,10 +16,10 @@ Library MockServerLibrary ...@@ -16,10 +16,10 @@ Library MockServerLibrary
Cell change notification Cell change notification
[Documentation] TC_MEC_SRV_RNIS_001_OK [Documentation] TC_MEC_SRV_RNIS_001_OK
... Check that the RNIS service sends an RNIS notification about cell change if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about cell change if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.2 ... ETSI GS MEC 012 2.1.1, clause 6.4.2
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/CellChangeNotification.schema.json
Log Creating mock request and response to handle Cell change notification Log Creating mock request and response to handle Cell change notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/cell_change body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/cell_change body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -34,10 +34,10 @@ Cell change notification ...@@ -34,10 +34,10 @@ Cell change notification
RAB Establishment notification RAB Establishment notification
[Documentation] TC_MEC_SRV_RNIS_002_OK [Documentation] TC_MEC_SRV_RNIS_002_OK
... Check that the RNIS service sends an RNIS notification about RAB establishment if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about RAB establishment if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.3 ... ETSI GS MEC 012 2.1.1, clause 6.4.3
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/RabEstNotification.schema.json
Log Creating mock request and response to handle RAB establishment notification Log Creating mock request and response to handle RAB establishment notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_est body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_est body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -52,10 +52,10 @@ RAB Establishment notification ...@@ -52,10 +52,10 @@ RAB Establishment notification
RAB modification notification RAB modification notification
[Documentation] TC_MEC_SRV_RNIS_003_OK [Documentation] TC_MEC_SRV_RNIS_003_OK
... Check that the RNIS service sends an RNIS notification about RAB modification if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about RAB modification if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.4 ... ETSI GS MEC 012 2.1.1, clause 6.4.4
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/RabModNotification.schema.json
Log Creating mock request and response to handle RAB modification notification Log Creating mock request and response to handle RAB modification notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_mod body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_mod body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -70,10 +70,10 @@ RAB modification notification ...@@ -70,10 +70,10 @@ RAB modification notification
RAB release notification RAB release notification
[Documentation] TC_MEC_SRV_RNIS_004_OK [Documentation] TC_MEC_SRV_RNIS_004_OK
... Check that the RNIS service sends an RNIS notification about RAB release if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about RAB release if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.5 ... ETSI GS MEC 012 2.1.1, clause 6.4.5
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/RabRelNotification.schema.json
Log Creating mock request and response to handle RAB release notification Log Creating mock request and response to handle RAB release notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_rel body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/rab_rel body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -88,10 +88,10 @@ RAB release notification ...@@ -88,10 +88,10 @@ RAB release notification
UE measurement notification UE measurement notification
[Documentation] TC_MEC_SRV_RNIS_005_OK [Documentation] TC_MEC_SRV_RNIS_005_OK
... Check that the RNIS service sends an RNIS notification about UE measurement report if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about UE measurement report if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.6 ... ETSI GS MEC 012 2.1.1, clause 6.4.6
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/MeasRepUeNotification.schema.json
Log Creating mock request and response to handle UE measurement notification Log Creating mock request and response to handle UE measurement notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/MeasRepUeNotification body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/MeasRepUeNotification body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -106,10 +106,10 @@ UE measurement notification ...@@ -106,10 +106,10 @@ UE measurement notification
UE timing advance notification UE timing advance notification
[Documentation] TC_MEC_SRV_RNIS_006_OK [Documentation] TC_MEC_SRV_RNIS_006_OK
... Check that the RNIS service sends an RNIS notification about UE timing advance if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about UE timing advance if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.7 ... ETSI GS MEC 012 2.1.1, clause 6.4.7
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/MeasTaSubscription.schema.json
Log Creating mock request and response to handle UE timing advance notification Log Creating mock request and response to handle UE timing advance notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/MeasTaNotification body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/MeasTaNotification body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -124,10 +124,10 @@ UE timing advance notification ...@@ -124,10 +124,10 @@ UE timing advance notification
UE carrier aggregation reconfiguration notification UE carrier aggregation reconfiguration notification
[Documentation] TC_MEC_SRV_RNIS_007_OK [Documentation] TC_MEC_SRV_RNIS_007_OK
... Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.8 ... ETSI GS MEC 012 2.1.1, clause 6.4.8
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/CaReconfSubscription.schema.json
Log Creating mock request and response to handle UE carrier aggregation reconfiguration notification Log Creating mock request and response to handle UE carrier aggregation reconfiguration notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/CaReconfSubscription body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/CaReconfSubscription body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -142,10 +142,10 @@ UE carrier aggregation reconfiguration notification ...@@ -142,10 +142,10 @@ UE carrier aggregation reconfiguration notification
S1-U bearer notification S1-U bearer notification
[Documentation] TC_MEC_SRV_RNIS_008_OK [Documentation] TC_MEC_SRV_RNIS_008_OK
... Check that the RNIS service sends an RNIS notification about S1-U bearer if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about S1-U bearer if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.10 ... ETSI GS MEC 012 2.1.1, clause 6.4.9
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/S1BearerSubscription.schema.json
Log Creating mock request and response to handle S1-U bearer notification Log Creating mock request and response to handle S1-U bearer notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/S1BearerSubscription body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/S1BearerSubscription body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -160,10 +160,10 @@ S1-U bearer notification ...@@ -160,10 +160,10 @@ S1-U bearer notification
TC_MEC_SRV_RNIS_009_OK TC_MEC_SRV_RNIS_009_OK
[Documentation] TC_MEC_SRV_RNIS_009_OK [Documentation] TC_MEC_SRV_RNIS_009_OK
... Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report if the RNIS service has an associated subscription and the event is generated ... Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.11 ... ETSI GS MEC 012 2.1.1, clause 6.4.11
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json ${json}= Get File schemas/NrMeasRepUeSubscription.schema.json
Log Creating mock request and response to handle UE Measurement notification Log Creating mock request and response to handle UE Measurement notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/meas_rep_ue body_type="JSON_SCHEMA" body=${json} &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint}/meas_rep_ue body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
...@@ -175,22 +175,20 @@ TC_MEC_SRV_RNIS_009_OK ...@@ -175,22 +175,20 @@ TC_MEC_SRV_RNIS_009_OK
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
TC_MEC_SRV_RNIS_010_OK # TC_MEC_SRV_RNIS_010_OK
[Documentation] TC_MEC_SRV_RNIS_010_OK # [Documentation] TC_MEC_SRV_RNIS_010_OK
... Check that the RNIS service sends an RNIS notification on subscription expiration if the RNIS service has an associated subscription and the event is generated # ... Check that the RNIS service sends an RNIS notification on subscription expiration if the RNIS service has an associated subscription and the event is generated
... ETSI GS MEC 012 2.0.4, clause 6.4.9 # ... ETSI GS MEC 012 2.0.4, clause 6.4.9
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml # ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml
Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1 # Should Be True ${PIC_RNIS_NOTIFICATIONS} == 1
${json}= Get File schemas/RadioNetworkInformationAPI.schema.json # ${json}= Get File schemas/RadioNetworkInformationAPI.schema.json
Log Creating mock request and response to handle UE Measurement notification # Log Creating mock request and response to handle UE Measurement notification
&{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint} body_type="JSON_SCHEMA" body=${json} # &{req}= Create Mock Request Matcher POST ${callback_uri}${callback_endpoint} body_type="JSON_SCHEMA" body=${json}
&{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204 # &{rsp}= Create Mock Response headers="Content-Type: application/json" status_code=204
Create Mock Expectation ${req} ${rsp} # Create Mock Expectation ${req} ${rsp}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${req} # Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${req}
Log Verifying results # Log Verifying results
Verify Mock Expectation ${req} # Verify Mock Expectation ${req}
Log Cleaning the endpoint # Log Cleaning the endpoint
Clear Requests ${callback_endpoint} # Clear Requests ${callback_endpoint}
*** Keywords ***
...@@ -14,7 +14,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v ...@@ -14,7 +14,7 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
Request RabInfo info using wrong parameters Request RabInfo info using wrong parameters
[Documentation] TC_MEC_SRV_RNIS_016_BR [Documentation] TC_MEC_SRV_RNIS_016_BR
... Check that the RNIS service returns an error when the RAB information is requested with a malformatted message ... Check that the RNIS service returns an error when the RAB information is requested with a malformatted message
... ETSI GS MEC 012 2.0.4, clause 7.3.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.3.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo
Get RabInfo info using wrong parameters Get RabInfo info using wrong parameters
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
...@@ -24,7 +24,7 @@ Request RabInfo info using wrong parameters ...@@ -24,7 +24,7 @@ Request RabInfo info using wrong parameters
Request RabInfo info using non existing cell id Request RabInfo info using non existing cell id
[Documentation] TC_MEC_SRV_RNIS_016_BR [Documentation] TC_MEC_SRV_RNIS_016_BR
... Check that the RNIS service returns an error when the RAB information for a not existing element is requested ... Check that the RNIS service returns an error when the RAB information for a not existing element is requested
... ETSI GS MEC 012 2.0.4, clause 7.3.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.3.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo
Get RabInfo info using non existing cell id Get RabInfo info using non existing cell id
Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404
...@@ -34,7 +34,7 @@ Request RabInfo info using non existing cell id ...@@ -34,7 +34,7 @@ Request RabInfo info using non existing cell id
Request Plmn info using wrong parameters Request Plmn info using wrong parameters
[Documentation] TC_MEC_SRV_RNIS_017_BR [Documentation] TC_MEC_SRV_RNIS_017_BR
... Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message ... Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.4.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo
Get PLMN info using wrong parameters Get PLMN info using wrong parameters
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
...@@ -44,7 +44,7 @@ Request Plmn info using wrong parameters ...@@ -44,7 +44,7 @@ Request Plmn info using wrong parameters
Request Plmn info using non existing application id Request Plmn info using non existing application id
[Documentation] TC_MEC_SRV_RNIS_017_NF [Documentation] TC_MEC_SRV_RNIS_017_NF
... Check that the RNIS service returns an error when the PLMN information for a not existing element is requested ... Check that the RNIS service returns an error when the PLMN information for a not existing element is requested
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.4.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo
Get PLMN info using non existing application id Get PLMN info using non existing application id
Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404
...@@ -54,7 +54,7 @@ Request Plmn info using non existing application id ...@@ -54,7 +54,7 @@ Request Plmn info using non existing application id
Request S1Bearer info using wrong parameters Request S1Bearer info using wrong parameters
[Documentation] TC_MEC_SRV_RNIS_018_BR [Documentation] TC_MEC_SRV_RNIS_018_BR
... Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message ... Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo
Get S1Bearer info using wrong parameters Get S1Bearer info using wrong parameters
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
...@@ -64,7 +64,7 @@ Request S1Bearer info using wrong parameters ...@@ -64,7 +64,7 @@ Request S1Bearer info using wrong parameters
Request S1Bearer info using non existing cell id Request S1Bearer info using non existing cell id
[Documentation] TC_MEC_SRV_RNIS_018_BR [Documentation] TC_MEC_SRV_RNIS_018_BR
... Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message ... Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo
Get S1Bearer info using non existing cell id Get S1Bearer info using non existing cell id
Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404
...@@ -74,7 +74,7 @@ Request S1Bearer info using non existing cell id ...@@ -74,7 +74,7 @@ Request S1Bearer info using non existing cell id
Request L2Meas info using wrong parameters Request L2Meas info using wrong parameters
[Documentation] TC_MEC_SRV_RNIS_019_BR [Documentation] TC_MEC_SRV_RNIS_019_BR
... Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message ... Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message
... ETSI GS MEC 012 2.0.4, clause 7.5a.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5a.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo
Get L2Meas info using wrong parameters Get L2Meas info using wrong parameters
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
...@@ -84,7 +84,7 @@ Request L2Meas info using wrong parameters ...@@ -84,7 +84,7 @@ Request L2Meas info using wrong parameters
Request L2Meas info using non existing cell id Request L2Meas info using non existing cell id
[Documentation] TC_MEC_SRV_RNIS_019_BR [Documentation] TC_MEC_SRV_RNIS_019_BR
... Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested ... Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested
... ETSI GS MEC 012 2.0.4, clause 7.5a.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5a.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo
Get L2Meas info using non existing cell id Get L2Meas info using non existing cell id
Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404
...@@ -152,7 +152,7 @@ Get S1Bearer info using non existing cell id ...@@ -152,7 +152,7 @@ Get S1Bearer info using non existing cell id
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/s1_bearer_info?cell_id=${NOT_EXISTENT_CELL_ID} Get ${apiRoot}/rni/${apiVersion}/queries/s1_bearer_info?cell_id=${NOT_EXISTENT_CELL_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -163,7 +163,7 @@ Get L2Meas info using wrong parameters ...@@ -163,7 +163,7 @@ Get L2Meas info using wrong parameters
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/layer2_meas?c_id=${C_ID} Get ${apiRoot}/rni/${apiVersion}/queries/layer2_meas?c_id=${C_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -174,6 +174,6 @@ Get L2Meas info using non existing cell id ...@@ -174,6 +174,6 @@ Get L2Meas info using non existing cell id
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/layer2_meas?cell_id=${NOT_EXISTENT_CELL_ID} Get ${apiRoot}/rni/${apiVersion}/queries/layer2_meas?cell_id=${NOT_EXISTENT_CELL_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -14,43 +14,45 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v ...@@ -14,43 +14,45 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
Request RabInfo info Request RabInfo info
[Documentation] TC_MEC_SRV_RNIS_016_OK [Documentation] TC_MEC_SRV_RNIS_016_OK
... Check that the RNIS service returns the RAB information when requested ... Check that the RNIS service returns the RAB information when requested
... ETSI GS MEC 012 2.0.4, clause 7.3.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.3.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo
Get RabInfo info Get RabInfo info
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check HTTP Response Body Json Schema Is RabInfos
Check RabInfo ${response['body']['RabInfo']} Check RabInfo ${response['body']}
Request Plmn info Request Plmn info
[Documentation] TC_MEC_SRV_RNIS_017_OK [Documentation] TC_MEC_SRV_RNIS_017_OK
... Check that the RNIS service returns the PLMN information when requested ... Check that the RNIS service returns the PLMN information when requested
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.4.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo
Get PLMN info Get PLMN info
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check HTTP Response Body Json Schema Is PlmnInfos
Check PlmnInfo ${response['body']['PlmnInfo']} Check PlmnInfo ${response['body']}
Request S1Bearer info Request S1Bearer info
[Documentation] TC_MEC_SRV_RNIS_018_OK [Documentation] TC_MEC_SRV_RNIS_018_OK
... Check that the RNIS service returns the S1 bearer information ... Check that the RNIS service returns the S1 bearer information
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo
Get S1Bearer info Get S1Bearer info
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check HTTP Response Body Json Schema Is S1BearerInfos
#log ${response['body']} #log ${response['body']}
Check S1BearerInfo ${response['body']['S1BearerInfo']} Check S1BearerInfo ${response['body']}
Request L2Meas info Request L2Meas info
[Documentation] TC_MEC_SRV_RNIS_019_OK [Documentation] TC_MEC_SRV_RNIS_019_OK
... Check that the RNIS service returns the L2 measurements information ... Check that the RNIS service returns the L2 measurements information
... ETSI GS MEC 012 2.0.4, clause 7.4.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.5a.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo ... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/L2Meas
Fail msg=Too many changes in JSON data description, not implemented Get Layer2Meas Info
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is Layer2MeasInfos
Check L2MeasInfo ${response['body']}
*** Keywords *** *** Keywords ***
...@@ -60,7 +62,7 @@ Get RabInfo info ...@@ -60,7 +62,7 @@ Get RabInfo info
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/rab_info?cell_id=${CELL_ID} Get ${apiRoot}/rni/${apiVersion}/queries/rab_info?cell_id=${CELL_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -70,7 +72,7 @@ Get Plmn info ...@@ -70,7 +72,7 @@ Get Plmn info
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/plmn_info?app_ins_id=${APP_INS_ID} Get ${apiRoot}/rni/${apiVersion}/queries/plmn_info?app_ins_id=${APP_INS_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -81,6 +83,17 @@ Get S1Bearer info ...@@ -81,6 +83,17 @@ Get S1Bearer info
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/queries/s1_bearer_info?cell_id=${CELL_ID} Get ${apiRoot}/rni/${apiVersion}/queries/s1_bearer_info?cell_id=${CELL_ID}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
Get Layer2Meas 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 ${apiRoot}/rni/${apiVersion}/queries/layer2_meas?cell_id=${CELL_ID}
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
...@@ -14,21 +14,19 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v ...@@ -14,21 +14,19 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
Request RNIS subscription list using bad parameters Request RNIS subscription list using bad parameters
[Documentation] TC_MEC_SRV_RNIS_011_BR [Documentation] TC_MEC_SRV_RNIS_011_BR
... Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type ... Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type
... ETSI GS MEC 012 2.0.4, clause 7.6.3.1 ... ETSI GS MEC 012 2.1.1, clause 7.6.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/SubscriptionLinkList ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml#/definitions/SubscriptionLinkList
Get RNIS subscription list with wrong parameter Get RNIS subscription list with wrong parameter
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
Check ProblemDetails 400
Create RNIS subscription using bad parameters Create RNIS subscription using bad parameters
[Documentation] TC_MEC_SRV_RNIS_012_BR [Documentation] TC_MEC_SRV_RNIS_012_BR
... Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format ... 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 ... ETSI GS MEC 012 2.1.1, clause 7.6.3.4
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml
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}}} 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 HTTP Response Status Code Is 400
Check ProblemDetails 400
*** Keywords *** *** Keywords ***
...@@ -38,7 +36,7 @@ Get RNIS subscription list with wrong parameter ...@@ -38,7 +36,7 @@ Get RNIS subscription list with wrong parameter
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"} Set Headers {"Content-Length":"0"}
Get /exampleAPI/rni/v2/subscriptions?subscription_type=wrongSubscriptionType Get ${apiRoot}/rni/${apiVersion}/subscriptions?subscription_type=wrongSubscriptionType
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -49,6 +47,6 @@ Post RNIS subscription request ...@@ -49,6 +47,6 @@ Post RNIS subscription request
Set Headers {"Accept":"application/json"} Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"} Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"}
Post /exampleAPI/rni/v2/subscriptions ${content} Post ${apiRoot}/rni/${apiVersion}/subscriptions ${content}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
... Test Suite to validate RNIS/Subscription (RNIS) operations. ... Test Suite to validate RNIS/Subscription (RNIS) operations.
*** Settings *** *** Settings ***
Library OperatingSystem
Resource environment/variables.txt Resource environment/variables.txt
Resource ../../pics.txt Resource ../../pics.txt
Resource ../../GenericKeywords.robot Resource ../../GenericKeywords.robot
...@@ -14,25 +15,52 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v ...@@ -14,25 +15,52 @@ Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_v
Request RNIS subscription list Request RNIS subscription list
[Documentation] TC_MEC_SRV_RNIS_011_OK [Documentation] TC_MEC_SRV_RNIS_011_OK
... Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested ... 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 ... ETSI GS MEC 012 2.1.1, clause 7.6.3.1
... Reference https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/SubscriptionLinkList ... Reference https://forge.etsi.org/rep/mec/gs012-rnis-api/blob/automatic_generation/RniAPI.yaml#/definitions/SubscriptionLinkList
Get RNIS subscription list Get RNIS subscription list
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check HTTP Response Body Json Schema Is SubscriptionLinkList
Check Subscription ${response['body']['SubscriptionLinkList']} ${SUBSCRIPTION_VALUE} Check Subscription ${response['body']} ${SUBSCRIPTION_VALUE}
Create RNIS subscription Create RNIS subscription
[Documentation] TC_MEC_SRV_RNIS_012_OK [Documentation] TC_MEC_SRV_RNIS_012_OK
... Check that the RNIS service creates a new RNIS subscription ... Check that the RNIS service creates a new RNIS subscription
... ETSI GS MEC 012 2.0.4, clause 7.6.3.4 ... ETSI GS MEC 012 2.1.1, clause 7.6.3.4