Loading MEC015/SRV/MTS/MultiAccessTrafficSteering.robot +123 −98 Original line number Diff line number Diff line ''[Documentation] robot --outputdir ../../../outputs ./MultiAccessTrafficSteering.robot ... Test Suite to validate Multi-access traffic steering API (MTS) operations. ... Test Suite to validate Multi-access Traffic Steering (MTS) API operations. *** Settings *** Resource environment/variables.txt Resource environment/variables_sandbox.txt Resource ../../../pics.txt Resource ../../../GenericKeywords.robot Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false Loading @@ -12,10 +12,12 @@ Library String *** Test Cases *** TC_MEC_MEC015_SRV_MTS_001_OK [Documentation] ... Check that the IUT responds with the Multi-access Traffic Steering information when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.4, ... ETSI GS MEC 015 V2.1.1, clause 9.3.3.1 ... Check that the IUT responds with the Multi-access Traffic Steering information ... when queried by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.4, ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 Retrieve MTS capability information Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsCapabilityInfo Loading @@ -23,10 +25,12 @@ TC_MEC_MEC015_SRV_MTS_001_OK TC_MEC_MEC015_SRV_MTS_002_OK_01 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.3.3.1 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - none ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -38,17 +42,18 @@ TC_MEC_MEC015_SRV_MTS_002_OK_01 TC_MEC_MEC015_SRV_MTS_002_OK_02 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_instance_id ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo LOG ${response} FOR ${mstSessionInfo} IN @{response['body']} ${passed} Run Keyword And Return Status Should Be Equal As Strings ${mstSessionInfo['appInsId']} ${APP_INSTANCE_ID} Exit For Loop If ${passed} Loading @@ -56,43 +61,46 @@ TC_MEC_MEC015_SRV_MTS_002_OK_02 Should Be True ${passed} [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # TC_MEC_MEC015_SRV_MTS_002_OK_03 # ##TODO the corresponding TP must be fixed: appName is not a property of mtsSessionInfo # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, # ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, # ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 # [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific # ${APP_NAME} Get value entry from JSON file MtsSessionInfoApplicationSpecific appName # Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_NAME} # Check HTTP Response Status Code Is 200 # Check HTTP Response Body Json Schema Is MtsSessionInfo # [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_OK_03 [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_name ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific # TC_MEC_MEC015_SRV_MTS_002_OK_04 # ##TODO the corresponding TP must be fixed: sessionId is not a property of mtsSessionInfo # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, # ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, # ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 # [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_NAME} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # Check HTTP Response Status Code Is 200 # Check HTTP Response Body Json Schema Is MtsSessionInfo # [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_OK_04 [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - session_id ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${SESSION_ID_FILTER} ${SESSION_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_BR [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific LOG ${response} ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -103,8 +111,9 @@ TC_MEC_MEC015_SRV_MTS_002_BR TC_MEC_MEC015_SRV_MTS_002_NF [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Retrieve MTS session list information using filter ${CORRECT_FILTER} ${NOT_EXISTING_APP_INSTANCE_ID} Loading @@ -115,13 +124,14 @@ TC_MEC_MEC015_SRV_MTS_002_NF TC_MEC_MEC015_SRV_MTS_003_OK_01 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.7, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoApplicationSpecific appInsId ${requestType} Get value entry from JSON file MtsSessionInfoApplicationSpecific requestType Loading @@ -139,10 +149,13 @@ TC_MEC_MEC015_SRV_MTS_003_OK_01 TC_MEC_MEC015_SRV_MTS_003_OK_02 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 #[Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoSessionSpecific Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoSessionSpecific appInsId ${requestType} Get value entry from JSON file MtsSessionInfoSessionSpecific requestType Loading @@ -161,9 +174,12 @@ TC_MEC_MEC015_SRV_MTS_003_OK_02 TC_MEC_MEC015_SRV_MTS_003_BR [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific_BR Check HTTP Response Status Code Is 400 Loading @@ -171,9 +187,12 @@ TC_MEC_MEC015_SRV_MTS_003_BR TC_MEC_MEC015_SRV_MTS_004_OK [Documentation] ... Check that the IUT responds with a configured Multi-access Traffic Steering session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with a configured Multi-access Traffic Steering session ... when queried by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -191,18 +210,23 @@ TC_MEC_MEC015_SRV_MTS_004_OK [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # TC_MEC_MEC015_SRV_MTS_004_BR # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 # ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml # Retrieve single MTS session ${WRONG_SESSION_ID} # Check HTTP Response Status Code Is 400 TC_MEC_MEC015_SRV_MTS_004_BR [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml Retrieve single MTS session ${WRONG_SESSION_ID} Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_MTS_004_NF [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Retrieve single MTS session ${NOT_EXISTING_SESSION_ID} Loading @@ -211,10 +235,11 @@ TC_MEC_MEC015_SRV_MTS_004_NF TC_MEC_MEC015_SRV_MTS_005_OK [Documentation] ... Check that the IUT updates the information about an individual MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... Check that the IUT updates the information about an individual MTS session ... when commanded by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -223,12 +248,10 @@ TC_MEC_MEC015_SRV_MTS_005_OK Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate appInsId ${requestType} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate requestType ${qosD} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate qosD ${mtsMode} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate mtsMode ${trafficDirection} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate trafficDirection Should Be Equal As Strings ${response['body']['appInsId']} ${appInsId} Should Be Equal As Strings ${response['body']['requestType']} ${requestType} Should Be Equal As Strings ${response['body']['qosD']} ${qosD} Should Be Equal As Strings ${response['body']['mtsMode']} ${mtsMode} Should Be Equal As Strings ${response['body']['trafficDirection']} ${trafficDirection} [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} Loading @@ -237,9 +260,9 @@ TC_MEC_MEC015_SRV_MTS_005_OK TC_MEC_MEC015_SRV_MTS_005_BR [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Loading @@ -252,21 +275,23 @@ TC_MEC_MEC015_SRV_MTS_005_BR TC_MEC_MEC015_SRV_MTS_005_NF [Documentation] ... Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} #[Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Update requested requirements on the MTS Service ${NOT_EXISTING_SESSION_ID} MtsSessionInfoApplicationSpecificUpdate Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_MTS_006_OK [Documentation] ... Check that the IUT deregisters a MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.8 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.3 ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -275,10 +300,12 @@ TC_MEC_MEC015_SRV_MTS_006_OK TC_MEC_MEC015_SRV_MTS_006_NF [Documentation] ... Check that the IUT deregisters a MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.8 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.3 ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Check HTTP Response Status Code Is 404 Loading @@ -304,21 +331,19 @@ Create new App Instance Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ${content} .json ${body}= Get File ${file} POST http://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances ${body} POST ${APP_INST_SCHEMA}://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances ${body} ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${APP_INSTANCE_ID} ${response['body']['id']} Delete APP Instance [Arguments] ${app_instance_id} Log Get single App Instance Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} DELETE http://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances${app_instance_id} DELETE ${APP_INST_SCHEMA}://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances${app_instance_id} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -330,7 +355,8 @@ Retrieve MTS capability information Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Content-Length":"0"} Get ${apiRoot}/${apiName}/${apiVersion}/mts_info Log ${apiRoot}/${apiName}/${apiVersion}/mts_capability_info Get ${apiRoot}/${apiName}/${apiVersion}/mts_capability_info ${output}= Output response Set Suite Variable ${response} ${output} Loading Loading @@ -392,7 +418,6 @@ Register MTS session wrong URI Retrieve single MTS session [Arguments] ${sessionId} Should Be True ${PIC_MEC_PLAT} == 1 Loading MEC015/SRV/MTS/environment/variables_sandbox.txt 0 → 100644 +38 −0 Original line number Diff line number Diff line *** Variables *** # Generic variables ${SCHEMA} https ${HOST} try-mec.etsi.org ${PORT} 443 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${apiRoot} /<your_token_here>/mep1 ${apiName} mts ${apiVersion} v1 # Specific variables ${APP_INSTANCE_ID} 81c51643-8c6f-4781-ad45-f8a457ca549b ${NOT_EXISTING_APP_INSTANCE_ID} NOT_EXISTING_APP_INS_ID ${CORRECT_FILTER} app_instance_id ${APP_NAME_FILTER} app_name ${SESSION_ID_FILTER} session_id ${BAD_FILTER} appInsId ${APP_NAME} app_name ${SESSION_ID} 5 ${WRONG_SESSION_ID} WRONG_SESSION_ID ${NOT_EXISTING_SESSION_ID} NOT_EXISTING_SESSION_ID ${REQUEST_TYPE_APPLICATION} 1 ${MTS_LOW_MODE_COST} 0 ${TRAFFIC_DIRECTION_DL} 00 ##Variables for App Instances management ${APP_INST_SCHEMA} https ${APP_INST_HOST} try-mec.etsi.org ${APP_INST_PORT} 443 ${apiRoot_APP_INST} ${apiName_APP_INST} app_lcm ${apiVersion_APP_INST} v1 ${elements} No newline at end of file MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json +2 −2 Original line number Diff line number Diff line { "appInsId": "myAppInstId", "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "qosD": { "minTpt": 10 }, "mtsMode": 0, "mtsMode": 4, "trafficDirection": "00", "qosD":{ "minTpt":10 Loading MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json +2 −8 Original line number Diff line number Diff line { "appInsId": "myAppInstId", "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "qosD": { "minTpt": 30 }, "mtsMode": 0, "trafficDirection": "00", "qosD":{ "minTpt":10 } "trafficDirection": "00" } No newline at end of file MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json +0 −2 Original line number Diff line number Diff line Loading @@ -7,9 +7,7 @@ "mtsMode": 0, "trafficDirection": "00", "flowFilter": [{ "dstPort": [8081], "protocol": 41, "sourcePort": [8081], "dstIp": "10.10.0.10", "dscp": 40, "sourceIp": "10.10.0.30" Loading Loading
MEC015/SRV/MTS/MultiAccessTrafficSteering.robot +123 −98 Original line number Diff line number Diff line ''[Documentation] robot --outputdir ../../../outputs ./MultiAccessTrafficSteering.robot ... Test Suite to validate Multi-access traffic steering API (MTS) operations. ... Test Suite to validate Multi-access Traffic Steering (MTS) API operations. *** Settings *** Resource environment/variables.txt Resource environment/variables_sandbox.txt Resource ../../../pics.txt Resource ../../../GenericKeywords.robot Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false Loading @@ -12,10 +12,12 @@ Library String *** Test Cases *** TC_MEC_MEC015_SRV_MTS_001_OK [Documentation] ... Check that the IUT responds with the Multi-access Traffic Steering information when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.4, ... ETSI GS MEC 015 V2.1.1, clause 9.3.3.1 ... Check that the IUT responds with the Multi-access Traffic Steering information ... when queried by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.4, ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 Retrieve MTS capability information Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsCapabilityInfo Loading @@ -23,10 +25,12 @@ TC_MEC_MEC015_SRV_MTS_001_OK TC_MEC_MEC015_SRV_MTS_002_OK_01 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.3.3.1 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - none ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.3.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -38,17 +42,18 @@ TC_MEC_MEC015_SRV_MTS_002_OK_01 TC_MEC_MEC015_SRV_MTS_002_OK_02 [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_instance_id ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo LOG ${response} FOR ${mstSessionInfo} IN @{response['body']} ${passed} Run Keyword And Return Status Should Be Equal As Strings ${mstSessionInfo['appInsId']} ${APP_INSTANCE_ID} Exit For Loop If ${passed} Loading @@ -56,43 +61,46 @@ TC_MEC_MEC015_SRV_MTS_002_OK_02 Should Be True ${passed} [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # TC_MEC_MEC015_SRV_MTS_002_OK_03 # ##TODO the corresponding TP must be fixed: appName is not a property of mtsSessionInfo # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, # ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, # ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 # [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific # ${APP_NAME} Get value entry from JSON file MtsSessionInfoApplicationSpecific appName # Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_NAME} # Check HTTP Response Status Code Is 200 # Check HTTP Response Body Json Schema Is MtsSessionInfo # [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_OK_03 [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - app_name ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific # TC_MEC_MEC015_SRV_MTS_002_OK_04 # ##TODO the corresponding TP must be fixed: sessionId is not a property of mtsSessionInfo # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 6.2.6, # ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, # ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 # [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${APP_NAME_FILTER} ${APP_NAME} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # Check HTTP Response Status Code Is 200 # Check HTTP Response Body Json Schema Is MtsSessionInfo # [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_OK_04 [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering ... when queried by a MEC Application - session_id ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific Retrieve MTS session list information using filter ${SESSION_ID_FILTER} ${SESSION_ID} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is MtsSessionInfo [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_MTS_002_BR [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific LOG ${response} ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -103,8 +111,9 @@ TC_MEC_MEC015_SRV_MTS_002_BR TC_MEC_MEC015_SRV_MTS_002_NF [Documentation] ... Check that the IUT responds with the list of configured Multi-access Traffic Steering when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.1 ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Delete APP Instance ${NOT_EXISTING_APP_INSTANCE_ID} Retrieve MTS session list information using filter ${CORRECT_FILTER} ${NOT_EXISTING_APP_INSTANCE_ID} Loading @@ -115,13 +124,14 @@ TC_MEC_MEC015_SRV_MTS_002_NF TC_MEC_MEC015_SRV_MTS_003_OK_01 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.7, ... ETSI GS MEC 015 V2.1.1, clause 7.2.5, ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.6, ... ETSI GS MEC 015 V2.2.1, clause 7.2.5, ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoApplicationSpecific appInsId ${requestType} Get value entry from JSON file MtsSessionInfoApplicationSpecific requestType Loading @@ -139,10 +149,13 @@ TC_MEC_MEC015_SRV_MTS_003_OK_01 TC_MEC_MEC015_SRV_MTS_003_OK_02 [Documentation] ... Check that the IUT creates a MTS session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 #[Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoSessionSpecific Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoSessionSpecific appInsId ${requestType} Get value entry from JSON file MtsSessionInfoSessionSpecific requestType Loading @@ -161,9 +174,12 @@ TC_MEC_MEC015_SRV_MTS_003_OK_02 TC_MEC_MEC015_SRV_MTS_003_BR [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.5.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.7 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.5.3.2 [Setup] Create new App Instance CreateAppInstanceRequest Register MTS session MtsSessionInfoApplicationSpecific_BR Check HTTP Response Status Code Is 400 Loading @@ -171,9 +187,12 @@ TC_MEC_MEC015_SRV_MTS_003_BR TC_MEC_MEC015_SRV_MTS_004_OK [Documentation] ... Check that the IUT responds with a configured Multi-access Traffic Steering session when queried by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml ... Check that the IUT responds with a configured Multi-access Traffic Steering session ... when queried by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -191,18 +210,23 @@ TC_MEC_MEC015_SRV_MTS_004_OK [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} # TC_MEC_MEC015_SRV_MTS_004_BR # [Documentation] # ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application # ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 # ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml # Retrieve single MTS session ${WRONG_SESSION_ID} # Check HTTP Response Status Code Is 400 TC_MEC_MEC015_SRV_MTS_004_BR [Documentation] ... Check that the IUT responds with an error ... when a request with incorrect parameters is sent by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.10 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml Retrieve single MTS session ${WRONG_SESSION_ID} Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_MTS_004_NF [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.1 ... Check that the IUT responds with an error ... when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.1 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Retrieve single MTS session ${NOT_EXISTING_SESSION_ID} Loading @@ -211,10 +235,11 @@ TC_MEC_MEC015_SRV_MTS_004_NF TC_MEC_MEC015_SRV_MTS_005_OK [Documentation] ... Check that the IUT updates the information about an individual MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... Check that the IUT updates the information about an individual MTS session ... when commanded by a MEC Application ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -223,12 +248,10 @@ TC_MEC_MEC015_SRV_MTS_005_OK Check HTTP Response Body Json Schema Is MtsSessionInfo ${appInsId} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate appInsId ${requestType} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate requestType ${qosD} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate qosD ${mtsMode} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate mtsMode ${trafficDirection} Get value entry from JSON file MtsSessionInfoApplicationSpecificUpdate trafficDirection Should Be Equal As Strings ${response['body']['appInsId']} ${appInsId} Should Be Equal As Strings ${response['body']['requestType']} ${requestType} Should Be Equal As Strings ${response['body']['qosD']} ${qosD} Should Be Equal As Strings ${response['body']['mtsMode']} ${mtsMode} Should Be Equal As Strings ${response['body']['trafficDirection']} ${trafficDirection} [TearDown] Unregister from the MTS Service And Delete APP Instance ${SESSION_ID} ${APP_INSTANCE_ID} Loading @@ -237,9 +260,9 @@ TC_MEC_MEC015_SRV_MTS_005_OK TC_MEC_MEC015_SRV_MTS_005_BR [Documentation] ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Loading @@ -252,21 +275,23 @@ TC_MEC_MEC015_SRV_MTS_005_BR TC_MEC_MEC015_SRV_MTS_005_NF [Documentation] ... Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.9 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.2 ... ETSI GS MEC 015 V2.2.1, clause 6.2.9 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.2 ... https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} #[Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Update requested requirements on the MTS Service ${NOT_EXISTING_SESSION_ID} MtsSessionInfoApplicationSpecificUpdate Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_MTS_006_OK [Documentation] ... Check that the IUT deregisters a MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.8 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.3 ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 [Setup] Create new App Instance and Register MTS session CreateAppInstanceRequest MtsSessionInfoApplicationSpecific ${elements} = Split String ${response['headers']['Location']} / Set Suite Variable ${SESSION_ID} ${elements}[3] Loading @@ -275,10 +300,12 @@ TC_MEC_MEC015_SRV_MTS_006_OK TC_MEC_MEC015_SRV_MTS_006_NF [Documentation] ... Check that the IUT deregisters a MTS session when commanded by a MEC Application ... ETSI GS MEC 015 V2.1.1, clause 6.2.8 ... ETSI GS MEC 015 V2.1.1, clause 7.2.5 ... ETSI GS MEC 015 V2.1.1, clause 9.4.3.3 ... Check that the IUT deregisters a MTS session ... when commanded by a MEC Application ... ... ETSI GS MEC 015 V2.2.1, clause 6.2.8 ... ETSI GS MEC 015 V2.2.1, clause 7.2.5 ... ETSI GS MEC 015 V2.2.1, clause 9.4.3.3 [Setup] Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Unregister from the MTS Service ${NOT_EXISTING_SESSION_ID} Check HTTP Response Status Code Is 404 Loading @@ -304,21 +331,19 @@ Create new App Instance Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ${content} .json ${body}= Get File ${file} POST http://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances ${body} POST ${APP_INST_SCHEMA}://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances ${body} ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${APP_INSTANCE_ID} ${response['body']['id']} Delete APP Instance [Arguments] ${app_instance_id} Log Get single App Instance Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} DELETE http://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances${app_instance_id} DELETE ${APP_INST_SCHEMA}://${APP_INST_HOST}:${APP_INST_PORT}/${apiRoot_APP_INST}/${apiName_APP_INST}/${apiVersion_APP_INST}/app_instances${app_instance_id} ${output}= Output response Set Suite Variable ${response} ${output} Loading @@ -330,7 +355,8 @@ Retrieve MTS capability information Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Content-Length":"0"} Get ${apiRoot}/${apiName}/${apiVersion}/mts_info Log ${apiRoot}/${apiName}/${apiVersion}/mts_capability_info Get ${apiRoot}/${apiName}/${apiVersion}/mts_capability_info ${output}= Output response Set Suite Variable ${response} ${output} Loading Loading @@ -392,7 +418,6 @@ Register MTS session wrong URI Retrieve single MTS session [Arguments] ${sessionId} Should Be True ${PIC_MEC_PLAT} == 1 Loading
MEC015/SRV/MTS/environment/variables_sandbox.txt 0 → 100644 +38 −0 Original line number Diff line number Diff line *** Variables *** # Generic variables ${SCHEMA} https ${HOST} try-mec.etsi.org ${PORT} 443 ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${apiRoot} /<your_token_here>/mep1 ${apiName} mts ${apiVersion} v1 # Specific variables ${APP_INSTANCE_ID} 81c51643-8c6f-4781-ad45-f8a457ca549b ${NOT_EXISTING_APP_INSTANCE_ID} NOT_EXISTING_APP_INS_ID ${CORRECT_FILTER} app_instance_id ${APP_NAME_FILTER} app_name ${SESSION_ID_FILTER} session_id ${BAD_FILTER} appInsId ${APP_NAME} app_name ${SESSION_ID} 5 ${WRONG_SESSION_ID} WRONG_SESSION_ID ${NOT_EXISTING_SESSION_ID} NOT_EXISTING_SESSION_ID ${REQUEST_TYPE_APPLICATION} 1 ${MTS_LOW_MODE_COST} 0 ${TRAFFIC_DIRECTION_DL} 00 ##Variables for App Instances management ${APP_INST_SCHEMA} https ${APP_INST_HOST} try-mec.etsi.org ${APP_INST_PORT} 443 ${apiRoot_APP_INST} ${apiName_APP_INST} app_lcm ${apiVersion_APP_INST} v1 ${elements} No newline at end of file
MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json +2 −2 Original line number Diff line number Diff line { "appInsId": "myAppInstId", "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "qosD": { "minTpt": 10 }, "mtsMode": 0, "mtsMode": 4, "trafficDirection": "00", "qosD":{ "minTpt":10 Loading
MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json +2 −8 Original line number Diff line number Diff line { "appInsId": "myAppInstId", "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "qosD": { "minTpt": 30 }, "mtsMode": 0, "trafficDirection": "00", "qosD":{ "minTpt":10 } "trafficDirection": "00" } No newline at end of file
MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json +0 −2 Original line number Diff line number Diff line Loading @@ -7,9 +7,7 @@ "mtsMode": 0, "trafficDirection": "00", "flowFilter": [{ "dstPort": [8081], "protocol": 41, "sourcePort": [8081], "dstIp": "10.10.0.10", "dscp": 40, "sourceIp": "10.10.0.30" Loading