Commit 099ab079 authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

implemented deltas between v2.8.1 and v2.7.1 for VNF LCM API

parent d00e5e8d
Loading
Loading
Loading
Loading
+15 −2
Original line number Original line Diff line number Diff line
@@ -10,7 +10,7 @@ Library JSONSchemaLibrary schemas/
POST Create a new vnfInstance
POST Create a new vnfInstance
    [Documentation]    Test ID: 6.3.5.1.1
    [Documentation]    Test ID: 6.3.5.1.1
    ...    Test title: POST Create a new vnfInstance
    ...    Test title: POST Create a new vnfInstance
    ...    Test objective: The objective is to create a new VNF instance resource
    ...    Test objective: The objective is to create a new VNF instance resource based on a VNF package that is onboarded and in "ENABLED" state.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.8.1
    ...    Reference: Clause 5.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.8.1
    ...    Config ID: Config_prod_VE
    ...    Config ID: Config_prod_VE
@@ -161,3 +161,16 @@ GET information about multiple VNF instances with "exclude_default" and "fields"
    GET multiple vnfInstances with exclude_default and fields attribute selector
    GET multiple vnfInstances with exclude_default and fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances
    Check HTTP Response Body Json Schema Is    vnfInstances
    
POST Create a new vnfInstance - not in ENABLED state
    [Documentation]    Test ID: 6.3.5.1.13
    ...    Test title: POST Create a new vnfInstance - not in ENABLED state
    ...    Test objective: The objective is to test that an error is returned if the VNF package referenced in the Request is not in the "ENABLED" state or does not exist.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.8.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: none
    ...    Post-Conditions: VNF instance created
    POST Create a new vnfInstance - VNF Package is not in ENABLED state
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file
+12 −1
Original line number Original line Diff line number Diff line
@@ -93,6 +93,17 @@ POST Create a new vnfInstance
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 	
	Set Global Variable    ${response}    ${outputResponse} 	


POST Create a new vnfInstance - VNF Package is not in ENABLED state
    Log    Trying to create a VNF instance when the VNF package referenced by the vnfdId attribute in the CreateVNFRequest is not in ENABLED state
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template} =    Get File    jsons/createVnfRequest.json
    ${body}=        Format String   ${template}     vnfdId=${vnfdId_notEnabled}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 	
	
GET multiple vnfInstances	
GET multiple vnfInstances	
     Log    Query VNF The GET method queries information about multiple VNF instances.
     Log    Query VNF The GET method queries information about multiple VNF instances.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -211,7 +222,7 @@ PATCH individual vnfInstance
    Set Headers    {"If-Match": "${original_etag}"}
    Set Headers    {"If-Match": "${original_etag}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    #Run Keyword If    ${check_descriptors} == 1    Add VNF Descriptor Content to VNF Instance
    #Run Keyword If    ${check_descriptors} == 1    Add VNF Descriptor Content to VNF Instance
    ${body}=    Get File    jsons/patchBodyRequest.json
    ${body}=    Get File    jsons/VnfInfoModificationRequest.json
    #${body}=        Format String   ${template}     vnfdId=${descriptor_id}
    #${body}=        Format String   ${template}     vnfdId=${descriptor_id}
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}    ${body}	
    Patch    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}    ${body}	
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
+1 −0
Original line number Original line Diff line number Diff line
@@ -64,6 +64,7 @@ ${fields}
${original_etag}    some_etag
${original_etag}    some_etag


${vnfdId}    6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfdId}    6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfdId_notEnabled}    vnfdId-referring-to-the-VNFPackage-which-is-not-in-ENABLED-state
${flavourId}    vnf flavour
${flavourId}    vnf flavour


${scaleVnfRequesttype}    SCALE_OUT
${scaleVnfRequesttype}    SCALE_OUT
+1 −0
Original line number Original line Diff line number Diff line
{{
{{
  "terminationType": "{terminationType}",
  "terminationType": "{terminationType}",
  "gracefulTerminationTimeout": 5,
  "additionalParams": {}
  "additionalParams": {}
}}
}}
 No newline at end of file
Loading