Commit 1080de01 authored by Ayesha Ayub's avatar Ayesha Ayub
Browse files

resolve minor issues in SOL003 VNF LCM API

parent 071d0055
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,5 +2,5 @@

This folder includes the NFV API conformance test descriptions for NFV SOL003 APIs.

The reference spec version is v3.6.1: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/03.06.01_60/gs_nfv-sol003v030601p.pdf
The reference spec version is v4.3.1: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/04.03.01_60/gs_nfv-sol003v040301p.pdf
+2 −2
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ VNF Instantiation

VNF Instantiation with attribute instantiationLevelId
    [Documentation]    Test ID: 7.3.1.26.2
    ...    Test title: VNF Instantiation workflow
    ...    Test title: VNF Instantiation workflow with attribute instantiationLevelId
    ...    Test objective: The objective is to test the workflow for the instantiation of a VNF instance
    ...    Pre-conditions: VNF instance resources is already created. NFVO is subscribed to VNF LCM Operation Occurrence notifications 
    ...    Reference: Clause 5.4.4 - ETSI GS NFV-SOL 003 [1] v4.3.1
@@ -53,7 +53,7 @@ VNF Instantiation with attribute instantiationLevelId

VNF Instantiation with attribute targetScaleLevelInfo 
    [Documentation]    Test ID: 7.3.1.26.3
    ...    Test title: VNF Instantiation workflow
    ...    Test title: VNF Instantiation workflow with attribute targetScaleLevelInfo 
    ...    Test objective: The objective is to test the workflow for the instantiation of a VNF instance
    ...    Pre-conditions: VNF instance resources is already created. NFVO is subscribed to VNF LCM Operation Occurrence notifications 
    ...    Reference: Clause 5.4.4 - ETSI GS NFV-SOL 003 [1] v4.3.1
+15 −15
Original line number Diff line number Diff line
@@ -20,19 +20,6 @@ POST Scale a vnfInstance to level - with InstantiationLevelId attribute
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id existence   

POST Scale a vnfInstance to level - with scaleInfo attribute 
    [Documentation]    Test ID: 7.3.1.5.1
    ...    Test title: POST Scale a vnfInstance to level
    ...    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] v4.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Scale vnfInstance to level with scaleInfo attribute    
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id existence    

POST Scale a vnfInstance to level Conflict (Not-Instantiated)
    [Documentation]    Test ID: 7.3.1.5.2
    ...    Test title: POST Scale a vnfInstance to level Conflict (Not-Instantiated)
@@ -106,3 +93,16 @@ DELETE Scale to level VNFInstance - Method not implemented
    ...    Post-Conditions: none
    DELETE Scale vnfInstance to level
    Check HTTP Response Status Code Is    405

POST Scale a vnfInstance to level - with scaleInfo attribute 
    [Documentation]    Test ID: 7.3.1.5.8
    ...    Test title: POST Scale a vnfInstance to level with scaleInfo 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] v4.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Scale vnfInstance to level with scaleInfo attribute    
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id existence     
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -714,7 +714,7 @@ POST Scale vnfInstance to level with InstantiationLevelId attribute
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template}=    Get File    jsons/scaleVnfToLevelRequest.json
    ${template}=    Get File    jsons/scaleVnfToLevelRequestInstantiationLevelId.json
    ${body}=        Format String   ${template}     instantiationLevelId=${instantiationLevelId}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale_to_level    ${body}
    ${outputResponse}=    Output    response
@@ -724,7 +724,7 @@ POST Scale vnfInstance to level with scaleInfo attribute
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template}=    Get File    jsons/scaleVnfToLevelRequest1.json
    ${template}=    Get File    jsons/scaleVnfToLevelRequestScaleInfo.json
    ${body}=        Format String   ${template}    aspectId=${scaleAspectId}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/scale_to_level    ${body}
    ${outputResponse}=    Output    response
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
    "flavourId": "myFlavour",
    "targetScaleLevelInfo": [
        {
            "aspectId": "{scaleAspectId}",
            "aspectId": "{aspectId}",
            "vnfdId":  "string",
            "scaleToLevel": "1"  
        }
Loading