Loading SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot +42 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,48 @@ POST Scale a vnfInstance with not permitted authorization scope POST Scale vnfInstance with not permitted authorization scope Check HTTP Response Status Code Is 403 Check HTTP Response Body Json Schema Is ProblemDetails POST Scale a vnfInstance Scale Vertical - Compute [Documentation] Test ID: 7.3.1.4.10 ... Test title: POST Scale a vnfInstance Scale Vertical - Compute ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of compute ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Compute Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING POST Scale a vnfInstance Scale Vertical - Storage [Documentation] Test ID: 7.3.1.4.11 ... Test title: POST Scale a vnfInstance Scale Vertical - Storage ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of storage ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Storage Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING POST Scale a vnfInstance Scale Vertical - Oscontainer [Documentation] Test ID: 7.3.1.4.12 ... Test title: POST Scale a vnfInstance Scale Vertical - Oscontainer ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of oscontainer ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Oscontainer Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING *** Keywords *** Check resource existence Set Headers {"Accept":"${ACCEPT}"} Loading SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +33 −0 Original line number Diff line number Diff line Loading @@ -3083,3 +3083,36 @@ POST Create a new vnfInstance with Invalid vnfdId Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Compute Log Trying to scale a vnf Instance vertically by scaling the compute Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalComputeRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Storage Log Trying to scale a vnf Instance vertically by scaling the storage Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalStorageRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Oscontainer Log Trying to scale a vnf Instance vertically by scaling the oscontainer Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalOscontainerRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} No newline at end of file SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalComputeRequest.json 0 → 100644 +18 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [ { "type": "COMPUTE", "virtualComputeDescData": { "resourceTemplateId": "string", "numVirtualCpu": 4, "virtualMemSize": 8.0, "sizeOfVirtualDisk": 10.0, "hugePagesRequirements": { "hugepage_size": 1024, "requested_size": 1024 } } } ] }} No newline at end of file SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalOscontainerRequest.json 0 → 100644 +25 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [{ "type": "OSCONTAINER", "osContainerDescData":[ { "resourceTemplateId":"string", "requestedCpuResources": 1, "requestedMemoryResources": 1024, "requestedEphemeralStorageResources":1024, "extendedResourceRequests": { "extended_resource":"string", "amount":1 }, "cpuResourceLimit": 1, "memoryResourceLimit": 1024, "ephemeralStorageResourceLimit":1024, "hugePageResources":{ "hugepage_size":1024, "requested_size":1024 } }] } ] }} No newline at end of file SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalStorageRequest.json 0 → 100644 +12 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [{ "type": "STORAGE", "virtualStorageDescData":[ { "resourceTemplateId":"string", "sizeOfStorage": 10.0 } ] }] }} No newline at end of file Loading
SOL003/VNFLifecycleManagement-API/ScaleVNFTask.robot +42 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,48 @@ POST Scale a vnfInstance with not permitted authorization scope POST Scale vnfInstance with not permitted authorization scope Check HTTP Response Status Code Is 403 Check HTTP Response Body Json Schema Is ProblemDetails POST Scale a vnfInstance Scale Vertical - Compute [Documentation] Test ID: 7.3.1.4.10 ... Test title: POST Scale a vnfInstance Scale Vertical - Compute ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of compute ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Compute Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING POST Scale a vnfInstance Scale Vertical - Storage [Documentation] Test ID: 7.3.1.4.11 ... Test title: POST Scale a vnfInstance Scale Vertical - Storage ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of storage ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Storage Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING POST Scale a vnfInstance Scale Vertical - Oscontainer [Documentation] Test ID: 7.3.1.4.12 ... Test title: POST Scale a vnfInstance Scale Vertical - Oscontainer ... Test objective: The objective is to scale a VNF instance with vertical scaling in terms of oscontainer ... Pre-conditions: none ... Reference: Clause 5.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v5.1.1 ... Config ID: Config_prod_VNFM ... Applicability: none ... Post-Conditions: none POST Scale vnfInstance Scale Vertical Oscontainer Check HTTP Response Status Code Is 202 Check HTTP Response Header Contains Location Check Individual VNF LCM operation occurrence operationState is STARTING *** Keywords *** Check resource existence Set Headers {"Accept":"${ACCEPT}"} Loading
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot +33 −0 Original line number Diff line number Diff line Loading @@ -3083,3 +3083,36 @@ POST Create a new vnfInstance with Invalid vnfdId Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Compute Log Trying to scale a vnf Instance vertically by scaling the compute Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalComputeRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Storage Log Trying to scale a vnf Instance vertically by scaling the storage Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalStorageRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} POST Scale vnfInstance Scale Vertical Oscontainer Log Trying to scale a vnf Instance vertically by scaling the oscontainer Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Version": "${API_VERSION}"} Set Headers {"Content-Type": "${CONTENT_TYPE}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${body}= Get File jsons/scaleVnfScaleVerticalOscontainerRequest.json Post ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale ${body} ${outputResponse}= Output response Set Global Variable ${response} ${outputResponse} No newline at end of file
SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalComputeRequest.json 0 → 100644 +18 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [ { "type": "COMPUTE", "virtualComputeDescData": { "resourceTemplateId": "string", "numVirtualCpu": 4, "virtualMemSize": 8.0, "sizeOfVirtualDisk": 10.0, "hugePagesRequirements": { "hugepage_size": 1024, "requested_size": 1024 } } } ] }} No newline at end of file
SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalOscontainerRequest.json 0 → 100644 +25 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [{ "type": "OSCONTAINER", "osContainerDescData":[ { "resourceTemplateId":"string", "requestedCpuResources": 1, "requestedMemoryResources": 1024, "requestedEphemeralStorageResources":1024, "extendedResourceRequests": { "extended_resource":"string", "amount":1 }, "cpuResourceLimit": 1, "memoryResourceLimit": 1024, "ephemeralStorageResourceLimit":1024, "hugePageResources":{ "hugepage_size":1024, "requested_size":1024 } }] } ] }} No newline at end of file
SOL003/VNFLifecycleManagement-API/jsons/scaleVnfScaleVerticalStorageRequest.json 0 → 100644 +12 −0 Original line number Diff line number Diff line {{ "type": "SCALE_VERTICAL", "resourceCapacityDefinition": [{ "type": "STORAGE", "virtualStorageDescData":[ { "resourceTemplateId":"string", "sizeOfStorage": 10.0 } ] }] }} No newline at end of file