Loading SRV/BWA/PlatBandwidthManager.robot +116 −117 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -197,13 +196,13 @@ 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 Loading Loading @@ -277,7 +276,7 @@ Request to unregister bandwidth Management Service with wrong parameters Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"${ETAG_LABEL}":"${ETAG}"} Set Headers {"ETag":"${ETAG_VALUE}"} Set Headers {"Content-Length":"0"} Put /exampleAPI/bwm/v1/bw_allocations/${allocation_id} ${content} ${output}= Output response Loading SRV/BWA/environment/variables.txt +2 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ ${MEC-APP_SCHEMA} http #${MEC-APP_HOST} 127.0.0.1 ${MEC-APP_HOST} 192.168.56.1 ${MEC-APP_PORT} 8081 ${ETAG_LABEL} Location ${INVALID_ETAG} invalid_etag ${APP_INSTANCE_ID} appInst01 ${NON_EXISTENT_APP_INSTANCE_ID} appInst99 Loading @@ -17,3 +16,5 @@ ${REQUEST_FOR_DELTAS_CHANGES} { "appInsId": "${APP_INSTANCE_ID}", "request ${REQUEST_FOR_DELTAS_CHANGES_BR} { "appInsId": "${APP_INSTANCE_ID}", "requestType": "UNKNOWN", "fixedBWPriority": "not defined in the present document", "fixedAllocation": "string", "allocationDirection": "00 = Downlink (towards the UE)"} ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${ETAG_VALUE} SRV/BWA/resources/BandwidthManagerAPI.robot +33 −32 Original line number Diff line number Diff line Loading @@ -21,10 +21,11 @@ Library JSONSchemaLibrary schemas/ Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is bwInfo # Extract ETAG_VALUE ${etag_value}= ${response['status']['${etag_label}']} # TODO Extract allocationId ${allocation_id}= 'todo' [return] ${allocation_id} ${etag_value} Set Suite Variable ${ETAG_VALUE} ${response['status']['ETag']} Should Not Be Empty ${ETAG_VALUE} # TODO Extract allocationId not possible, information is missing in the standard doc Set Suite Variable ${ALLOCATION_ID} ${response['body']['bwInfo']['allocationId']} Should Not Be Empty ${ALLOCATION_ID} Unregister Bandwidth Management Service Loading Loading
SRV/BWA/PlatBandwidthManager.robot +116 −117 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -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 Loading @@ -197,13 +196,13 @@ 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 Loading Loading @@ -277,7 +276,7 @@ Request to unregister bandwidth Management Service with wrong parameters Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"${ETAG_LABEL}":"${ETAG}"} Set Headers {"ETag":"${ETAG_VALUE}"} Set Headers {"Content-Length":"0"} Put /exampleAPI/bwm/v1/bw_allocations/${allocation_id} ${content} ${output}= Output response Loading
SRV/BWA/environment/variables.txt +2 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ ${MEC-APP_SCHEMA} http #${MEC-APP_HOST} 127.0.0.1 ${MEC-APP_HOST} 192.168.56.1 ${MEC-APP_PORT} 8081 ${ETAG_LABEL} Location ${INVALID_ETAG} invalid_etag ${APP_INSTANCE_ID} appInst01 ${NON_EXISTENT_APP_INSTANCE_ID} appInst99 Loading @@ -17,3 +16,5 @@ ${REQUEST_FOR_DELTAS_CHANGES} { "appInsId": "${APP_INSTANCE_ID}", "request ${REQUEST_FOR_DELTAS_CHANGES_BR} { "appInsId": "${APP_INSTANCE_ID}", "requestType": "UNKNOWN", "fixedBWPriority": "not defined in the present document", "fixedAllocation": "string", "allocationDirection": "00 = Downlink (towards the UE)"} ${response} {} ${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l ${ETAG_VALUE}
SRV/BWA/resources/BandwidthManagerAPI.robot +33 −32 Original line number Diff line number Diff line Loading @@ -21,10 +21,11 @@ Library JSONSchemaLibrary schemas/ Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is bwInfo # Extract ETAG_VALUE ${etag_value}= ${response['status']['${etag_label}']} # TODO Extract allocationId ${allocation_id}= 'todo' [return] ${allocation_id} ${etag_value} Set Suite Variable ${ETAG_VALUE} ${response['status']['ETag']} Should Not Be Empty ${ETAG_VALUE} # TODO Extract allocationId not possible, information is missing in the standard doc Set Suite Variable ${ALLOCATION_ID} ${response['body']['bwInfo']['allocationId']} Should Not Be Empty ${ALLOCATION_ID} Unregister Bandwidth Management Service Loading