Skip to content
Snippets Groups Projects
Commit 78ac2369 authored by piscione's avatar piscione
Browse files

Fixes on MEC015 TCs: updated referenced specification version, enhancement to...

Fixes on MEC015 TCs: updated referenced specification version, enhancement to some TCs and minor fixes on payload JSONs
parent 01c22fff
No related branches found
No related tags found
1 merge request!3Merge of TT027 branch into master
Showing
with 333 additions and 218 deletions
''[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}
......
*** 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
{
"appInsId": "myAppInstId",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 0,
"qosD": {
"minTpt": 10
},
"mtsMode": 0,
"mtsMode": 4,
"trafficDirection": "00",
"qosD":{
"minTpt":10
......
{
"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
......@@ -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"
......
{
"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":{
......
This diff is collapsed.
*** Variables ***
# Generic variables
${SCHEMA} https
${HOST} try-mec.etsi.org
${PORT} 443
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot} /<your_token_here>/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
{
"appInsId": "appInstanceId",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 0,
"fixedAllocation": "32",
"allocationDirection": "00"
......
{
"appInsId": "appInstanceId",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 0,
"fixedAllocation": "32",
"allocationDirection": "01"
......
{
"appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f",
"requestType": "0",
"requestType": 0,
"sessionFilter":"someValues",
"fixedAllocation": "32",
"allocationDirection": "01"
......
{
"appInsId": "appInstanceId",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 0,
"fixedAllocation": "32",
"allocationDirection": "01"
......
{
"appInsId": "appInstanceId",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 1,
"fixedAllocation": "64"
}
\ No newline at end of file
{
"appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 0,
"sessionFlter":"someValues",
"fixedAllocation": "INVALID_VALUE",
......
{
"appInsId": "5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f",
"appInsId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"requestType": 1,
"fixedAllocation": "-30",
"allocationDirection": "00"
......
{
"appDId": "e0deee2b-6e50-4f33-ab09-8bf0585025d3",
"appDId": "81c51643-8c6f-4781-ad45-f8a457ca549b",
"appInstanceDescription": "description",
"appInstanceName": "name"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment