From 78ac2369a1f9a08b9f0e803bee6713fc84153442 Mon Sep 17 00:00:00 2001 From: piscione Date: Fri, 17 May 2024 14:43:36 +0200 Subject: [PATCH] Fixes on MEC015 TCs: updated referenced specification version, enhancement to some TCs and minor fixes on payload JSONs --- .../SRV/MTS/MultiAccessTrafficSteering.robot | 221 ++++++++++-------- .../SRV/MTS/environment/variables_sandbox.txt | 38 +++ .../MtsSessionInfoApplicationSpecific.json | 4 +- ...sSessionInfoApplicationSpecificUpdate.json | 10 +- .../MtsSessionInfoApplicationSpecific_BR.json | 2 - .../jsons/MtsSessionInfoSessionSpecific.json | 11 +- MEC015/SRV/TM/TrafficManagement.robot | 200 ++++++++-------- .../SRV/TM/environment/variables_sandbox.txt | 49 ++++ .../TM/jsons/BwInfoApplicationSpecific.json | 2 +- MEC015/SRV/TM/jsons/BwInfoDeltas.json | 2 +- MEC015/SRV/TM/jsons/BwInfoDeltas_BR.json | 2 +- MEC015/SRV/TM/jsons/BwInfoUpdate.json | 2 +- MEC015/SRV/TM/jsons/BwInfoUpdate_BR2.json | 2 +- MEC015/SRV/TM/jsons/BwInfo_BR.json | 2 +- MEC015/SRV/TM/jsons/BwInfo_BR2.json | 2 +- .../TM/jsons/CreateAppInstanceRequest.json | 2 +- 16 files changed, 333 insertions(+), 218 deletions(-) create mode 100644 MEC015/SRV/MTS/environment/variables_sandbox.txt create mode 100644 MEC015/SRV/TM/environment/variables_sandbox.txt diff --git a/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot b/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot index cc0c916..46bf70e 100644 --- a/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot +++ b/MEC015/SRV/MTS/MultiAccessTrafficSteering.robot @@ -1,8 +1,8 @@ ''[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 @@ -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 @@ -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] @@ -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} @@ -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_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 - - # 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 + + 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_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] @@ -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} @@ -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 @@ -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 @@ -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 @@ -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] @@ -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} @@ -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] @@ -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} @@ -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']} / @@ -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] @@ -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 @@ -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} @@ -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} @@ -390,8 +416,7 @@ Register MTS session wrong URI ${output}= Output response Set Suite Variable ${response} ${output} - - + Retrieve single MTS session [Arguments] ${sessionId} diff --git a/MEC015/SRV/MTS/environment/variables_sandbox.txt b/MEC015/SRV/MTS/environment/variables_sandbox.txt new file mode 100644 index 0000000..3901782 --- /dev/null +++ b/MEC015/SRV/MTS/environment/variables_sandbox.txt @@ -0,0 +1,38 @@ +*** Variables *** +# Generic variables +${SCHEMA} https +${HOST} try-mec.etsi.org +${PORT} 443 +${response} {} +${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l +${apiRoot} //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 diff --git a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json index f8ec281..93cbbb0 100644 --- a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json +++ b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific.json @@ -1,10 +1,10 @@ { - "appInsId": "myAppInstId", + "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "qosD": { "minTpt": 10 }, - "mtsMode": 0, + "mtsMode": 4, "trafficDirection": "00", "qosD":{ "minTpt":10 diff --git a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json index 16d8774..c113400 100644 --- a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json +++ b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecificUpdate.json @@ -1,12 +1,6 @@ { - "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 diff --git a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json index 814cd50..ca3280d 100644 --- a/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json +++ b/MEC015/SRV/MTS/jsons/MtsSessionInfoApplicationSpecific_BR.json @@ -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" diff --git a/MEC015/SRV/MTS/jsons/MtsSessionInfoSessionSpecific.json b/MEC015/SRV/MTS/jsons/MtsSessionInfoSessionSpecific.json index d2429bc..9308f2d 100644 --- a/MEC015/SRV/MTS/jsons/MtsSessionInfoSessionSpecific.json +++ b/MEC015/SRV/MTS/jsons/MtsSessionInfoSessionSpecific.json @@ -1,20 +1,17 @@ { - "appInsId": "myAppInstId", + "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 1, "mtsMode":4, "trafficDirection":"00", "qosD": { - "minTpt": 10 + "minTpt": 15 }, - "mtsMode": 0, "trafficDirection": "00", "flowFilter": [{ - "dstPort": [8081], "protocol": 41, - "sourcePort": [8081], - "dstIp": "10.10.0.10", + "dstIp": "10.10.0.1", "dscp": 40, - "sourceIp": "10.10.0.30" + "sourceIp": "10.10.0.2" } ], "qosD":{ diff --git a/MEC015/SRV/TM/TrafficManagement.robot b/MEC015/SRV/TM/TrafficManagement.robot index a964fd0..18d908a 100644 --- a/MEC015/SRV/TM/TrafficManagement.robot +++ b/MEC015/SRV/TM/TrafficManagement.robot @@ -1,8 +1,8 @@ ''[Documentation] robot --outputdir ../../../outputs ./TrafficManagement.robot -... Test Suite to validate Bandwidth Management allocations (BWA) operations. +... Test Suite to validate Bandwidth Management Allocations (BWA) 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 @@ -13,10 +13,11 @@ Library String TC_MEC_MEC015_SRV_TM_001_OK_01 [Documentation] - ... Check that the IUT responds with the list of configured bandwidth allocations when queried by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.1 + ... Check that the IUT responds with the list of configured bandwidth allocations + ... when queried by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth allocations Check HTTP Response Status Code Is 200 @@ -26,10 +27,11 @@ TC_MEC_MEC015_SRV_TM_001_OK_01 TC_MEC_MEC015_SRV_TM_001_OK_02 [Documentation] - ... Check that the IUT responds with the list of configured bandwidth allocations when queried by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.1 + ... Check that the IUT responds with the list of configured bandwidth allocations + ... when queried by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${CORRECT_FILTER} ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 @@ -44,35 +46,37 @@ TC_MEC_MEC015_SRV_TM_001_OK_02 TC_MEC_MEC015_SRV_TM_001_OK_03 [Documentation] - ... Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.1 + ... Check that the IUT responds with a configured bandwidth allocation + ... when queried by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${APP_NAME_FILTER} ${APP_NAME} Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is BwInfoList [TearDown] Unregister bw Service And Delete APP Instance ${ALLOCATION_ID} ${APP_INSTANCE_ID} -# TC_MEC_MEC015_SRV_TM_001_OK_04 - ##TODO To discuss the corresponding TP: the sessionId is not attribute of BwInfo data type - # [Documentation] - # ... Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - # ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - # ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - # ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.1 - # [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific - # Retrieve the list of configured bandwidth using filter ${SESSION_ID_FILTER} ${SESSION_ID} - # Check HTTP Response Status Code Is 200 - # Check HTTP Response Body Json Schema Is BwInfoList - # [TearDown] Unregister bw Service And Delete APP Instance ${ALLOCATION_ID} ${APP_INSTANCE_ID} +TC_MEC_MEC015_SRV_TM_001_OK_04 + [Documentation] + ... Check that the IUT responds with a configured bandwidth allocation + ... when queried by a MEC Application - session_id + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 + [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific + Retrieve the list of configured bandwidth using filter ${SESSION_ID_FILTER} ${SESSION_ID} + Check HTTP Response Status Code Is 200 + Check HTTP Response Body Json Schema Is BwInfoList + [TearDown] Unregister bw Service And Delete APP Instance ${ALLOCATION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_TM_001_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 015 V2.1.1, clause 8.4.3.1 + ... Check that the IUT responds with an error + ... when a request with incorrect parameters is sent by a MEC Application + ... Reference ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Retrieve the list of configured bandwidth using filter ${BAD_FILTER} ${APP_INSTANCE_ID} @@ -84,27 +88,29 @@ TC_MEC_MEC015_SRV_TM_001_NF_01 [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.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.1 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${CORRECT_FILTER} ${NON_EXISTENT_APP_INSTANCE_ID} Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_TM_001_NF_02 [Documentation] - ... Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_name - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.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 - app_name + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${APP_NAME_FILTER} ${NON_EXISTENT_APP_NAME} Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_TM_001_NF_03 [Documentation] - ... Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - session_id - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.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 - session_id + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.1 Retrieve the list of configured bandwidth using filter ${SESSION_ID_FILTER} ${NON_EXISTENT_SESSION_ID} Check HTTP Response Status Code Is 404 @@ -112,13 +118,13 @@ TC_MEC_MEC015_SRV_TM_001_NF_03 TC_MEC_MEC015_SRV_TM_002_OK [Documentation] ... Check that the IUT acknowledges a creation of a bandwidthAllocation resource - ... ETSI GS MEC 015 V2.1.1, clause 6.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2, - ... ETSI GS MEC 015 V2.1.1, clause 8.4.3.4 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2, + ... ETSI GS MEC 015 V2.2.1, clause 8.4.3.4 [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfoApplicationSpecific Check HTTP Response Status Code Is 201 - Check HTTP Response Body Json Schema Is BwInfo + Check HTTP Response Body Json Schema Is BwInfo ${appInsId} Get value entry from JSON file BwInfoApplicationSpecific appInsId ${requestType} Get value entry from JSON file BwInfoApplicationSpecific requestType ${fixedAllocation} Get value entry from JSON file BwInfoApplicationSpecific fixedAllocation @@ -132,8 +138,9 @@ TC_MEC_MEC015_SRV_TM_002_OK TC_MEC_MEC015_SRV_TM_002_BR_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 8.4.3.4 + ... 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 8.4.3.4 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfo_BR @@ -142,8 +149,9 @@ TC_MEC_MEC015_SRV_TM_002_BR_01 TC_MEC_MEC015_SRV_TM_002_BR_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 8.4.3.4 + ... 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 8.4.3.4 ... Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json [Setup] Create new App Instance CreateAppInstanceRequest Registration for bandwidth services ${APP_INSTANCE_ID} BwInfo_BR2 @@ -154,10 +162,11 @@ TC_MEC_MEC015_SRV_TM_002_BR_02 TC_MEC_MEC015_SRV_TM_003_OK [Documentation] - ... Check that the IUT responds with the configured bandwidth allocation when queried by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.1 + ... Check that the IUT responds with the configured bandwidth allocation + ... when queried by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.1 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Get a bandwidth allocation ${ALLOCATION_ID} Check HTTP Response Status Code Is 200 @@ -168,10 +177,11 @@ TC_MEC_MEC015_SRV_TM_003_OK TC_MEC_MEC015_SRV_TM_003_NF [Documentation] - ... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.5 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.1 + ... Check that the IUT responds with an error + ... when a request for an unknown URI is sent by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.5 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.1 [Setup] Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Get a bandwidth allocation ${NON_EXISTENT_ALLOCATION_ID} Check HTTP Response Status Code Is 404 @@ -180,11 +190,12 @@ TC_MEC_MEC015_SRV_TM_003_NF TC_MEC_MEC015_SRV_TM_004_OK [Documentation] - ... Check that the IUT updates the requested bandwidth requirements when commanded by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.2 - [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific + ... Check that the IUT updates the requested bandwidth requirements + ... when commanded by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 + #[Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate ${appInsId} Get value entry from JSON file BwInfoUpdate appInsId ${fixedAllocation} Get value entry from JSON file BwInfoUpdate fixedAllocation @@ -194,16 +205,15 @@ TC_MEC_MEC015_SRV_TM_004_OK Should Be Equal As Strings ${response['body']['appInsId']} ${appInsId} Should Be Equal As Strings ${response['body']['fixedAllocation']} ${fixedAllocation} Should Be Equal As Strings ${response['body']['allocationDirection']} ${allocationDirection} - [TearDown] Unregister bw Service And Delete APP Instance ${ALLOCATION_ID} ${APP_INSTANCE_ID} + #[TearDown] Unregister bw Service And Delete APP Instance ${ALLOCATION_ID} ${APP_INSTANCE_ID} TC_MEC_MEC015_SRV_TM_004_BR_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.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.2 - + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate_BR Check HTTP Response Status Code Is 400 @@ -213,9 +223,9 @@ TC_MEC_MEC015_SRV_TM_004_BR_01 TC_MEC_MEC015_SRV_TM_004_BR_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.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.2 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Update a bandwidth allocation ${ALLOCATION_ID} BwInfoUpdate_BR2 Check HTTP Response Status Code Is 400 @@ -225,21 +235,22 @@ TC_MEC_MEC015_SRV_TM_004_BR_02 TC_MEC_MEC015_SRV_TM_004_NF [Documentation] ... Check that the IUT responds with an error when a request sent by a MEC Application doesn't comply with a required condition - ... ETSI GS MEC 015 V2.1.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.2 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.2 - [Setup] Delete APP Instance ${NON_EXISTENT_ALLOCATION_ID} + #[Setup] Delete APP Instance ${NON_EXISTENT_ALLOCATION_ID} Update a bandwidth allocation ${NON_EXISTENT_ALLOCATION_ID} BwInfoUpdate Check HTTP Response Status Code Is 404 TC_MEC_MEC015_SRV_TM_005_OK [Documentation] - ... Check that the IUT when provided with just the changes (deltas) updates the requested bandwidth requirements when commanded by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.3 + ... Check that the IUT when provided with just the changes (deltas) + ... updates the requested bandwidth requirements when commanded by a MEC Application + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas @@ -255,20 +266,22 @@ TC_MEC_MEC015_SRV_TM_005_OK TC_MEC_MEC015_SRV_TM_005_BR_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.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.3 + ... 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.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas_BR Check HTTP Response Status Code Is 400 TC_MEC_MEC015_SRV_TM_005_BR_02 [Documentation] - ... Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present - ... ETSI GS MEC 015 V2.1.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.3 + ... Check that the IUT responds with an error + ... when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Request a deltas changes ${ALLOCATION_ID} BwInfoDeltas_BR2 Check HTTP Response Status Code Is 400 @@ -277,9 +290,9 @@ TC_MEC_MEC015_SRV_TM_005_BR_02 TC_MEC_MEC015_SRV_TM_005_NF [Documentation] ... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.4 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.3 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.4 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.3 [Setup] Delete APP Instance ${NON_EXISTENT_ALLOCATION_ID} Request a deltas changes ${NON_EXISTENT_ALLOCATION_ID} BwInfoDeltas Check HTTP Response Status Code Is 404 @@ -288,9 +301,9 @@ TC_MEC_MEC015_SRV_TM_005_NF TC_MEC_MEC015_SRV_TM_006_OK [Documentation] ... Check that the IUT unregisters from the Bandwidth Management Service when commanded by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.3 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.5 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.3 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.5 [Setup] Create new App Instance and Register for bw service CreateAppInstanceRequest BwInfoApplicationSpecific Unregister Bandwidth Management Service ${ALLOCATION_ID} Check HTTP Response Status Code Is 204 @@ -299,9 +312,9 @@ TC_MEC_MEC015_SRV_TM_006_OK TC_MEC_MEC015_SRV_TM_006_NF [Documentation] ... Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application - ... ETSI GS MEC 015 V2.1.1, clause 6.2.3 - ... ETSI GS MEC 015 V2.1.1, clause 7.2.2 - ... ETSI GS MEC 015 V2.1.1, clause 8.3.3.5 + ... ETSI GS MEC 015 V2.2.1, clause 6.2.3 + ... ETSI GS MEC 015 V2.2.1, clause 7.2.2 + ... ETSI GS MEC 015 V2.2.1, clause 8.3.3.5 [Setup] Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Unregister Bandwidth Management Service ${NON_EXISTENT_ALLOCATION_ID} Check HTTP Response Status Code Is 404 @@ -353,6 +366,7 @@ Retrieve the list of configured bandwidth allocations Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Content-Length":"0"} + Log ${apiRoot}/${apiName}/${apiVersion}/bw_allocations GET ${apiRoot}/${apiName}/${apiVersion}/bw_allocations ${output}= Output response Set Suite Variable ${response} ${output} diff --git a/MEC015/SRV/TM/environment/variables_sandbox.txt b/MEC015/SRV/TM/environment/variables_sandbox.txt new file mode 100644 index 0000000..6e72164 --- /dev/null +++ b/MEC015/SRV/TM/environment/variables_sandbox.txt @@ -0,0 +1,49 @@ +*** Variables *** + +# Generic variables +${SCHEMA} https +${HOST} try-mec.etsi.org +${PORT} 443 +${response} {} +${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l +${apiRoot} //mep1 +${apiName} bwm +${apiVersion} v1 + +# Specific variables + + + + +${CORRECT_FILTER} app_instance_id +${BAD_FILTER} appInsId +${APP_INSTANCE_ID} 81c51643-8c6f-4781-ad45-f8a457ca549b +${NON_EXISTENT_APP_INSTANCE_ID} NON_EXISTENT_INSTANCE_ID +${SESSION_ID} 5 +${APP_NAME_FILTER} app_name +${APP_NAME} appName +${NON_EXISTENT_APP_NAME} NON_EXISTENT_APP_NAME + +${SESSION_ID_FILTER} session_id +${NON_EXISTENT_SESSION_ID} NON_EXISTENT_SESSION_ID + + +${FIXED_ALLOCATION} 32 +${ALLOCATION_DIRECTION} 00 + +${APP_SRVSUB_NOTIF_CALLBACK_URI} http://127.0.0.1/subscribe +${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 +${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID +${ALLOCATION_ID} 6 +${NON_EXISTENT_ALLOCATION_ID} NON_EXISTENT_ALLOCATION_ID +${INVALID_ETAG} INVALID_ETAG +${ETAG_VALUE} +${ETAG} + +##Variables for App Instances management +${APP_INST_HOST} 127.0.0.1 +${APP_INST_PORT} 8081 +${apiRoot_APP_INST} +${apiName_APP_INST} app_lcm +${apiVersion_APP_INST} v1 +${elements} \ No newline at end of file diff --git a/MEC015/SRV/TM/jsons/BwInfoApplicationSpecific.json b/MEC015/SRV/TM/jsons/BwInfoApplicationSpecific.json index 9746f32..a0688f8 100644 --- a/MEC015/SRV/TM/jsons/BwInfoApplicationSpecific.json +++ b/MEC015/SRV/TM/jsons/BwInfoApplicationSpecific.json @@ -1,5 +1,5 @@ { - "appInsId": "appInstanceId", + "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "fixedAllocation": "32", "allocationDirection": "00" diff --git a/MEC015/SRV/TM/jsons/BwInfoDeltas.json b/MEC015/SRV/TM/jsons/BwInfoDeltas.json index 4bcc10f..d2d8d10 100644 --- a/MEC015/SRV/TM/jsons/BwInfoDeltas.json +++ b/MEC015/SRV/TM/jsons/BwInfoDeltas.json @@ -1,5 +1,5 @@ { -"appInsId": "appInstanceId", +"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "fixedAllocation": "32", "allocationDirection": "01" diff --git a/MEC015/SRV/TM/jsons/BwInfoDeltas_BR.json b/MEC015/SRV/TM/jsons/BwInfoDeltas_BR.json index 0a8c388..fdca335 100644 --- a/MEC015/SRV/TM/jsons/BwInfoDeltas_BR.json +++ b/MEC015/SRV/TM/jsons/BwInfoDeltas_BR.json @@ -1,6 +1,6 @@ { "appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f", - "requestType": "0", + "requestType": 0, "sessionFilter":"someValues", "fixedAllocation": "32", "allocationDirection": "01" diff --git a/MEC015/SRV/TM/jsons/BwInfoUpdate.json b/MEC015/SRV/TM/jsons/BwInfoUpdate.json index 4bcc10f..d2d8d10 100644 --- a/MEC015/SRV/TM/jsons/BwInfoUpdate.json +++ b/MEC015/SRV/TM/jsons/BwInfoUpdate.json @@ -1,5 +1,5 @@ { -"appInsId": "appInstanceId", +"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "fixedAllocation": "32", "allocationDirection": "01" diff --git a/MEC015/SRV/TM/jsons/BwInfoUpdate_BR2.json b/MEC015/SRV/TM/jsons/BwInfoUpdate_BR2.json index a4f6dac..27e6975 100644 --- a/MEC015/SRV/TM/jsons/BwInfoUpdate_BR2.json +++ b/MEC015/SRV/TM/jsons/BwInfoUpdate_BR2.json @@ -1,5 +1,5 @@ { -"appInsId": "appInstanceId", +"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 1, "fixedAllocation": "64" } \ No newline at end of file diff --git a/MEC015/SRV/TM/jsons/BwInfo_BR.json b/MEC015/SRV/TM/jsons/BwInfo_BR.json index af487d2..1b3e26f 100644 --- a/MEC015/SRV/TM/jsons/BwInfo_BR.json +++ b/MEC015/SRV/TM/jsons/BwInfo_BR.json @@ -1,5 +1,5 @@ { -"appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f", + "appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 0, "sessionFlter":"someValues", "fixedAllocation": "INVALID_VALUE", diff --git a/MEC015/SRV/TM/jsons/BwInfo_BR2.json b/MEC015/SRV/TM/jsons/BwInfo_BR2.json index 8f616f0..9736c06 100644 --- a/MEC015/SRV/TM/jsons/BwInfo_BR2.json +++ b/MEC015/SRV/TM/jsons/BwInfo_BR2.json @@ -1,5 +1,5 @@ { -"appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f", +"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "requestType": 1, "fixedAllocation": "-30", "allocationDirection": "00" diff --git a/MEC015/SRV/TM/jsons/CreateAppInstanceRequest.json b/MEC015/SRV/TM/jsons/CreateAppInstanceRequest.json index 3691ba6..2e28c82 100644 --- a/MEC015/SRV/TM/jsons/CreateAppInstanceRequest.json +++ b/MEC015/SRV/TM/jsons/CreateAppInstanceRequest.json @@ -1,5 +1,5 @@ { - "appDId": "e0deee2b-6e50-4f33-ab09-8bf0585025d3", + "appDId": "81c51643-8c6f-4781-ad45-f8a457ca549b", "appInstanceDescription": "description", "appInstanceName": "name" } \ No newline at end of file -- GitLab