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
......@@ -10,7 +10,7 @@ Library JSONSchemaLibrary schemas/
POST Create a new vnfInstance
[Documentation] Test ID: 6.3.5.1.1
... 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
... Reference: Clause 5.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.8.1
... Config ID: Config_prod_VE
......@@ -160,4 +160,17 @@ GET information about multiple VNF instances with "exclude_default" and "fields"
... Post-Conditions: none
GET multiple vnfInstances with exclude_default and fields attribute selector
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfInstances
\ No newline at end of file
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
......@@ -93,6 +93,17 @@ POST Create a new vnfInstance
${outputResponse}= Output response
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
Log Query VNF The GET method queries information about multiple VNF instances.
Set Headers {"Accept":"${ACCEPT}"}
......@@ -211,7 +222,7 @@ PATCH individual vnfInstance
Set Headers {"If-Match": "${original_etag}"}
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
${body}= Get File jsons/patchBodyRequest.json
${body}= Get File jsons/VnfInfoModificationRequest.json
#${body}= Format String ${template} vnfdId=${descriptor_id}
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId} ${body}
${outputResponse}= Output response
......
......@@ -64,6 +64,7 @@ ${fields}
${original_etag} some_etag
${vnfdId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfdId_notEnabled} vnfdId-referring-to-the-VNFPackage-which-is-not-in-ENABLED-state
${flavourId} vnf flavour
${scaleVnfRequesttype} SCALE_OUT
......
{{
"terminationType": "{terminationType}",
"gracefulTerminationTimeout": 5,
"additionalParams": {}
}}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment