Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC Robot Test Suite
Commits
9614fd21
Commit
9614fd21
authored
Sep 18, 2019
by
Elian Kraja
Browse files
Merge branch 'master' of
https://forge.etsi.org/gitlab/mec/gs032p3-robot-test-suite
parents
6dc57c2b
f8337756
Pipeline
#1545
failed with stage
in 0 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.jenkins.sh
0 → 100644
View file @
9614fd21
#!/bin/bash
# Copyright ETSI 2018
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt
#set -vx
#set -e
cd
"
$(
dirname
"
$0
"
)
"
run_dir
=
"
$(
pwd
)
"
./scripts/build-container.sh
./scripts/run-container.sh
"
${
run_dir
}
"
exit
$?
MEO/UEAPPCTX/SysUeAppsContext.robot
View file @
9614fd21
''[Documentation] robot --outputdir ../../outputs ./
PlatBandwidthManager
.robot
''[Documentation] robot --outputdir ../../outputs ./
SysUeAppContext
.robot
...
Test
Suite
to
validate
Bandwidth
Management
API
(BWA)
operations.
*** Settings ***
Resource
environment/variables.txt
Resource
../../pics.txt
Resource
../../GenericKeywords.robot
Resource
resources/U
E
App
I
nte
rface
API.robot
Resource
resources/U
e
App
Co
nte
xt
API.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
*** Test Cases ***
Creation of the application context
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_001_OK
...
Check that the IUT acknowledges the creation of the application context when requested by an UE Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.4.3.4
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
Create application context
${CREATE_APP_CTX}
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
AppContext
Should Be True
${response['body']['appContext']['appInfo']['appName']}
=
=
${APP_NAME}
# Postamble
Delete an application context
${APP_CTX_ID}
Creation of the application context with wrong parameters
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_001_BR
...
Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.4.3.4
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
Create application context
${CREATE_APP_CTX_BR}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
Update of the application context
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_002_OK
...
Check that the IUT updates the application callback reference when commanded by an UE Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.5.3.2
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
${CREATE_APP_CTX['callbackReference']}
=
${CALLBACK_REFERENCE_1}
Update application context
${APP_CTX_ID}
${CREATE_APP_CTX}
Check HTTP Response Status Code Is
204
Check HTTP Response Body Json Schema Is
AppContext
Should Be True
${response['body']['appContext']['callbackReference']}
=
=
${CALLBACK_REFERENCE_1}
# Postamble
Delete an application context
${APP_CTX_ID}
Update of the application context with wrong parameters
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_002_BR
...
Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.5.3.2
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
${CREATE_APP_CTX['callbackReference']}
=
'' # Empty string
Update application context
${APP_CTX_ID}
${CREATE_APP_CTX}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
# Postamble
Delete an application context
${APP_CTX_ID}
Update of the application context with unknown URI
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_002_NF
...
Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.5.3.2
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
${CREATE_APP_CTX['callbackReference']}
=
${CALLBACK_REFERENCE_1}
Update application context
${NON_EXISTENT_APP_CTX_ID}
${CREATE_APP_CTX}
Check HTTP Response Status Code Is
404
Check ProblemDetails
404
# Postamble
Delete an application context
${APP_CTX_ID}
Delete of the application context
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_003_OK
...
Check that the IUT deletes the application context when commanded by an UE Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.5.3.5
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
Delete application context
${APP_CTX_ID}
Check HTTP Response Status Code Is
204
Delete of the application context
[
Documentation
]
TC_MEC_MEO_UEAPPCTX_003_NF
...
Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.5.3.5
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
# AppCtx not created!
# Test Body
Delete application context
${APP_CTX_ID}
Check HTTP Response Status Code Is
404
Check ProblemDetails
404
*** Keywords ***
Create application context
[
Arguments
]
${content}
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Post
/exampleAPI/mx2/v2/app_contexts
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Update application context
[
Arguments
]
${context_id}
${content}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Put
/exampleAPI/mx2/v2/app_contexts/
${context_id}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Delete application context
[
Arguments
]
${context_id}
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Delete
/exampleAPI/mx2/v2/app_contexts/
${context_id}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
MEO/UEAPPCTX/environment/variables.txt
View file @
9614fd21
...
...
@@ -4,3 +4,13 @@ ${MEC-APP_SCHEMA} http
#${MEC-APP_HOST} 127.0.0.1
${MEC-APP_HOST} 192.168.56.1
${MEC-APP_PORT} 8081
${APP_CTX_ID} appCtx01
${NON_EXISTENT_APP_CTX_ID} appCtx99
${UE_APP_ID} ueIdAppCtx01
${APP_NAME} MyWornderfulApp
${WRONG_CREATE_APP_CTX} UnknownApp
${CALLBACK_REFERENCE} http://www.acme.com/MyWonderfulApp/v1
${CALLBACK_REFERENCE_1} http://www.acme.com/MyWonderfulApp/v2
${CREATE_APP_CTX} { "contextId": "${CREATE_APP_CTX}", "associateUeAppId": "${UE_APP_ID}", "callbackReference": "${CALLBACK_REFERENCE}", "appInfo": { "appName": "${APP_NAME}", "appProvider": "ACME & Co", "appSoftVersion": "1.0.0.1", "appDescription": "This is a wonderful test application", "referenceURL": "http://www.acme.com/MyWonderfulPackage", "appPackageSource": "MyWonderfulPackage" } }
${CREATE_APP_CTX_BR} { "context": "${CREATE_APP_CTX}", "associateUeAppId": "${UE_APP_ID}", "callbackReference": "${CALLBACK_REFERENCE}", "appInfo": { "appName": "${APP_NAME}", "appProvider": "ACME & Co", "appSoftVersion": "1.0.0.1", "appDescription": "This is a wonderful test application", "referenceURL": "http://www.acme.com/MyWonderfulPackage", "appPackageSource": "MyWonderfulPackage" } }
${SERVICE_CONT_BR} UnknownServiceCont
MEO/UEAPPCTX/resources/UEAppInterfaceAPI.robot
deleted
100644 → 0
View file @
6dc57c2b
*** Settings ***
Resource
../environment/variables.txt
Resource
../../../pics.txt
Resource
../../../GenericKeywords.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
*** Keywords ***
MEO/UEAPPCTX/resources/UeAppsContextAPI.robot
0 → 100644
View file @
9614fd21
*** Settings ***
Resource
../environment/variables.txt
Resource
../../../pics.txt
Resource
../../../GenericKeywords.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
Library
JSONSchemaLibrary
schemas/
*** Keywords ***
Create an application context
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Post
/exampleAPI/mx2/v2/app_contexts
${CREATE_APP_CTX}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Check HTTP Response Status Code Is
201
Check HTTP Response Body Json Schema Is
AppContext
Set Suite Variable
${APP_CTX_ID}
${response['body']['contextId']
Should Not Be Empty ${APP_CTX_ID}
Delete an application context
[Arguments] ${context_id}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Length":"0"}
Delete /exampleAPI/mx2/v2/app_contexts/${context_id}
${output}= Output response
Set Suite Variable ${response} ${output}
Check HTTP Response Status Code Is 204
MEO/UEAPPS/SysUeApplications.robot
0 → 100644
View file @
9614fd21
''[Documentation] robot --outputdir ../../outputs ./SysUeApplications.robot
...
Test
Suite
to
validate
Bandwidth
Management
API
(BWA)
operations.
*** Settings ***
Resource
../UEAPPCTX/environment/variables.txt
Resource
../../pics.txt
Resource
../../GenericKeywords.robot
Resource
../UEAPPCTX/resources/UeAppContextAPI.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
*** Test Cases ***
Get the list of the application contexts
[
Documentation
]
TC_MEC_MEO_UEAPPS_001_OK
...
Check that the IUT responds with the list of user applications available when requested by an UE Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.3.3.1
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
Retrieve the application contexts list
${APP_NAME}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
AppInfo
Should Be True
${response['body']['appInfo']['appInfo'][0]['appName']}
=
=
${APP_NAME}
# Postamble
Delete an application context
${APP_CTX_ID}
Get the list of the application contexts with wrong parameter
[
Documentation
]
TC_MEC_MEO_UEAPPS_001_BR
...
Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.3.3.1
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Create an application context
# Test Body
Retrieve the application contexts list with serviceCont
${SERVICE_CONT_BR}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
# Postamble
Delete an application context
${APP_CTX_ID}
Get the list of the application contexts with wrong parameter
[
Documentation
]
TC_MEC_MEO_UEAPPS_001_NF
...
Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application
...
Reference ETSI GS MEC 016 V1.1.1, clause 7.3.3.1
...
Reference https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList
# Preamble
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
# AppInfo not created
# Test Body
Retrieve the application contexts list
${APP_NAME}
Check HTTP Response Status Code Is
404
Check ProblemDetails
404
*** Keywords ***
Retrieve the application contexts list
[
Arguments
]
${app_name}
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Post
/exampleAPI/mx2/v2/app_list?appName=
${app_name}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Retrieve the application contexts list with serviceCont
[
Arguments
]
${service_cont}
Should Be True
${PIC_MEC_SYSTEM}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Post
/exampleAPI/mx2/v2/app_list?serviceCont=
${service_cont}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
SRV/BWA/PlatBandwidthManager.robot
View file @
9614fd21
...
...
@@ -9,7 +9,6 @@ Resource resources/BandwidthManagerAPI.robot
Library
REST
${MEC-APP_SCHEMA}
://
${MEC-APP_HOST}
:
${MEC-APP_PORT}
ssl_verify=false
*** Test Cases ***
Request the list of configured bandwidth allocations
[
Documentation
]
TC_MEC_SRV_BWA_001_OK
...
...
@@ -80,15 +79,15 @@ Updates the requested bandwidth requirements
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.2
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Update a bandwidth allocation
${
allocation_id
}
${REQUEST_FOR_BW_REQUIREMENTS}
Update a bandwidth allocation
${
ALLOCATION_ID
}
${REQUEST_FOR_BW_REQUIREMENTS}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
bwInfo
Check AppInstanceId
${APP_INSTANCE_ID}
Check Allocation
${
allocation_id
}
Check Allocation
${
ALLOCATION_ID
}
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Updates the requested bandwidth requirements using wrong allocationDirection
...
...
@@ -97,13 +96,13 @@ Updates the requested bandwidth requirements using wrong allocationDirection
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.2
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Update a bandwidth allocation
${
allocation_id
}
${REQUEST_FOR_BW_REQUIREMENTS_BR}
Update a bandwidth allocation
${
ALLOCATION_ID
}
${REQUEST_FOR_BW_REQUIREMENTS_BR}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Updates the requested bandwidth requirements using wrong allocationId
...
...
@@ -123,13 +122,13 @@ Updates the requested bandwidth requirements using wrong parameters
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# TODO Application doesn't comply with a required condition???
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Update a bandwidth allocation with invalid ETAG
${
allocation_id
}
${REQUEST_FOR_BW_REQUIREMENTS}
Update a bandwidth allocation with invalid ETAG
${
ALLOCATION_ID
}
${REQUEST_FOR_BW_REQUIREMENTS}
Check HTTP Response Status Code Is
412
Check ProblemDetails
412
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Request for deltas changes
...
...
@@ -138,15 +137,15 @@ Request for deltas changes
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.3
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Request a deltas changes
${
allocation_id
}
${REQUEST_FOR_DELTAS_CHANGES}
Request a deltas changes
${
ALLOCATION_ID
}
${REQUEST_FOR_DELTAS_CHANGES}
Check HTTP Response Status Code Is
200
Check HTTP Response Body Json Schema Is
bwInfo
Check AppInstanceId
${APP_INSTANCE_ID}
Check Allocation
${
allocation_id
}
Check Allocation
${
ALLOCATION_ID
}
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Request for deltas changes using invalid requestType
...
...
@@ -155,13 +154,13 @@ Request for deltas changes using invalid requestType
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.3
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Request a deltas changes
${
allocation_id
}
${REQUEST_FOR_DELTAS_CHANGES_BR}
Request a deltas changes
${
ALLOCATION_ID
}
${REQUEST_FOR_DELTAS_CHANGES_BR}
Check HTTP Response Status Code Is
400
Check ProblemDetails
400
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Request for deltas changes using an unknown URI
...
...
@@ -180,13 +179,13 @@ Request for deltas changes using wrong parameters
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.3
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Request a deltas changes with invalid ETAG
${
allocation_id
}
${REQUEST_FOR_DELTAS_CHANGES}
Request a deltas changes with invalid ETAG
${
ALLOCATION_ID
}
${REQUEST_FOR_DELTAS_CHANGES}
Check HTTP Response Status Code Is
412
Check ProblemDetails
412
# Postamble
Unregister Bandwidth Management Service
${allocation_id}
Unregister Bandwidth Management Service
Request to unregister bandwidth Management Service
...
...
@@ -197,21 +196,21 @@ Request to unregister bandwidth Management Service
# Preamble
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
${allocation_id}
${etag_value}
=
Register Bandwidth Management Service
Register Bandwidth Management Service
# Test body
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Delete
/exampleAPI/bwm/v1/bw_allocations/
${
allocation_id
}
Delete
/exampleAPI/bwm/v1/bw_allocations/
${
ALLOCATION_ID
}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Check HTTP Response Status Code Is
204
Request to unregister bandwidth Management Service with wrong parameters
[
Documentation
]
TC_MEC_SRV_BWA_006_
OK
...
Check that the IUT
unregisters from the Band
wi
d
th
M
an
agement Service when commanded
by a MEC Application
[
Documentation
]
TC_MEC_SRV_BWA_006_
NF
...
Check that the IUT
responds
with an
error when a request for an unknown URI is sent
by a MEC Application
...
Reference ETSI GS MEC 015 V1.1.1, clause 8.3.3.5
...
Reference https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.json
# Preamble
...
...
@@ -230,97 +229,97 @@ Request to unregister bandwidth Management Service with wrong parameters
*** Keywords ***
Retrieve the list of configured bandwidth allocations
[
Arguments
]
${app_instance_id}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/bwm/v1/bw_allocations/
${app_instance_id}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Registration for bandwidth services
[
Arguments
]
${app_instance_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
log
${content}
Post
/exampleAPI/bwm/v1/bw_allocations/
${APP_INSTANCE_ID}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get a bandwidth allocation
[
Arguments
]
${allocation_id}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Update a bandwidth allocation
[
Arguments
]
${allocation_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"
${ETAG_LABEL}
":"
${ETAG}
"}
Set Headers
{"Content-Length":"0"}
Put
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Update a bandwidth allocation with invalid ETAG
[
Arguments
]
${allocation_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"
${ETAG_LABEL}
":"
${INVALID_ETAG}
"}
Set Headers
{"Content-Length":"0"}
Put
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Request a deltas changes
[
Arguments
]
${allocation_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"
${ETAG_LABEL}
":"
${ETAG}
"}
Set Headers
{"Content-Length":"0"}
Patch
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Request a deltas changes with invalid ETAG
[
Arguments
]
${allocation_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"
${ETAG_LABEL}
":"
${INVALID_ETAG}
"}
Set Headers
{"Content-Length":"0"}
Patch
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Retrieve the list of configured bandwidth allocations
[
Arguments
]
${app_instance_id}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/bwm/v1/bw_allocations/
${app_instance_id}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Registration for bandwidth services
[
Arguments
]
${app_instance_id}
${content}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
log
${content}
Post
/exampleAPI/bwm/v1/bw_allocations/
${APP_INSTANCE_ID}
${content}
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Get a bandwidth allocation
[
Arguments
]
${allocation_id}
Should Be True
${PIC_MEC_PLAT}
=
= 1
Should Be True
${PIC_SERVICES}
=
= 1
Set Headers
{"Accept":"application/json"}
Set Headers
{"Content-Type":"application/json"}
Set Headers
{"Authorization":"
${TOKEN}
"}
Set Headers
{"Content-Length":"0"}
Get
/exampleAPI/bwm/v1/bw_allocations/
${allocation_id}