Commit 54e84c50 authored by Eisha Ayaz's avatar Eisha Ayaz
Browse files

[test-new][SOL002][VNF-LCM][v5.3.1][6.3.5.5.11 Test-ID][NFVSOL(25)000166] New...

[test-new][SOL002][VNF-LCM][v5.3.1][6.3.5.5.11 Test-ID][NFVSOL(25)000166] New test for attribute PowerProfileId
parent f665c24a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -136,6 +136,19 @@ POST Scale a vnfInstance to level with Attribute instantiationLevelId - Unauthor
    POST Scale a vnfInstance to level with Attribute instantiationLevelId - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails 
POST Scale a vnfInstance to level with attribute powerProfileId
    [Documentation]    Test ID: 6.3.5.5.11
    ...    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 002 [2] v5.3.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Scale vnfInstance to level with attribute powerProfileId   
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location
    Check Operation Occurrence Resource Available
*** Keywords ***
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}
+12 −1
Original line number Diff line number Diff line
@@ -654,6 +654,17 @@ POST Scale vnfInstance to level with instantiationLevelId
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 

POST Scale vnfInstance to level with attribute powerProfileId
    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/scaleVnfToLevelRequestWithPowerProfileId.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} 
GET Scale vnfInstance to level
    log    Trying to perform a GET. This method should not be implemented
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
+2 −1
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ ${flavourId} vnf flavour
${scaleVnfRequesttype}    SCALE_OUT
${scaleVnfRequestAspect}    Aspect
${instantiationLevelId} 
${powerProfileId}    

${newFlavourId}    5a7d81f-e602-4afa-8e13-962fb5a7d81f

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