''[Documentation] robot --outputdir ../../outputs ./RnisQuery_BV.robot ... Test Suite to validate RNIS/Subscription (RNIS) operations. *** Settings *** Resource environment/variables.txt Resource ../../pics.txt Resource ../../GenericKeywords.robot Resource resources/RadioNetworkInformationAPI.robot Library REST ${MEC-APP_SCHEMA}://${MEC-APP_HOST}:${MEC-APP_PORT} ssl_verify=false *** Test Cases *** Request RabInfo info [Documentation] TC_MEC_SRV_RNIS_016_OK ... Check that the RNIS service returns the RAB information 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 RabInfo info Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check RabInfo ${response['body']['RabInfo']} Request Plmn info [Documentation] TC_MEC_SRV_RNIS_017_OK ... Check that the RNIS service returns 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 200 Check HTTP Response Body Json Schema Is RadioNetworkInformationAPI Check PlmnInfo ${response['body']['PlmnInfo']} *** Keywords *** Get RabInfo 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/queries?cell_id=${CELL_ID} ${output}= Output response Set Suite Variable ${response} ${output} 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}"} Set Headers {"Content-Length":"0"} Get /exampleAPI/rni/v2/queries?plmn_info=${APP_INS_ID} ${output}= Output response Set Suite Variable ${response} ${output}