Commit 74cc0614 authored by Eisha Ayaz's avatar Eisha Ayaz
Browse files

[test-new][SOL003][VNF-LCM][v5.3.1][7.3.1.5.12 Test-ID][NFVSOL(25)000165] New...

[test-new][SOL003][VNF-LCM][v5.3.1][7.3.1.5.12 Test-ID][NFVSOL(25)000165] New test for attribute PowerProfileId
parent 8e67aebd
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -146,3 +146,16 @@ POST Scale a vnfInstance to level - Unauthorized
    POST scale vnfInstance to level with InstantiationLevelId attribute - Unauthorized  
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails
POST Scale a vnfInstance to level with powerProfileId attribute 
    [Documentation]    Test ID: 7.3.1.5.12
    ...    Test title: POST Scale a vnfInstance to level with powerProfileId attribute 
    ...    Test objective: The objective is to scale a VNF instance to a target level.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.6.3.1 - ETSI GS NFV-SOL 003 [1] v5.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Scale vnfInstance to level with powerProfileId attribute    
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Resource Available
 No newline at end of file
+12 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,18 @@ POST Scale vnfInstance to level with VNF NOT-INSTANTIATED
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${notInstantiatedVnfInstanceId}/scale_to_level    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 

POST Scale vnfInstance to level with powerProfileId attribute 
    Log    Trying to scale a vnf Instance to level
    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}"}
    ${template}=    Get File    jsons/scaleVnfToLevelRequestPowerProfileId.json
    ${body}=        Format String   ${template}    powerProfileId=${powerProfileId}    
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale_to_level    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}   
POST Scale vnfInstance to level with not existing VNF
    Log    Trying to scale a vnf Instance to level
    Set Headers  {"Accept":"${ACCEPT}"}
+1 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@ ${HEADER_TEST_SUPPORTED} 0
${scaleInfo}
${element}
${aspectId}
${powerProfileId}

${callbackResp}    localhost

+3 −0
Original line number Diff line number Diff line
{{
  "powerProfileId": "{powerProfileId}"
}}
 No newline at end of file