Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
0faa7460
Commit
0faa7460
authored
Oct 01, 2021
by
Giacomo Bernini
Committed by
Giacomo Bernini
Oct 05, 2021
Browse files
fixed issue
#194
in 3.3.1-fix-plu
parent
0e3bb2dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
SOL003/VNFLifecycleManagement-API/IndividualVNFInstance.robot
View file @
0faa7460
...
...
@@ -84,7 +84,7 @@ PATCH Individual VNFInstance Conflict
...
Config ID: Config_prod_VNFM
...
Applicability: none
...
Post-Conditions: VNFInstance not modified
PATCH individual vnfInstance
PATCH individual vnfInstance
with conflict
Check HTTP Response Status Code Is
409
Check HTTP Response Body Json Schema Is
ProblemDetails
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
0faa7460
...
...
@@ -580,9 +580,31 @@ PATCH individual vnfInstance
${template}
=
Get File
jsons/patchBodyRequest.json
${body}
=
Format String
${template}
vnfdId=
${Descriptor_ID}
vnfdVersion=
${Descriptor_Version}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_instances/
${vnfInstanceId}
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
POST conflicting operation
Log
Trying to create conflicting operation.
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/terminateVnfRequest.json
${body}
=
Format String
${template}
terminationType=
${terminationType}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_instances/
${anotherInstantiatedVnfInstanceId}
/terminate
${body}
PATCH individual vnfInstance with conflict
POST conflicting operation
log
Trying to modify an individual VNF instance with conflict
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE_PATCH}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${check_descriptors}
=
= 1
PARSE the Descriptor File
${template}
=
Get File
jsons/patchBodyRequest.json
${body}
=
Format String
${template}
vnfdId=
${Descriptor_ID}
vnfdVersion=
${Descriptor_Version}
Patch
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_instances/
${anotherInstantiatedVnfInstanceId}
${body}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
PATCH individual vnfInstance - Etag mismatch
log
Trying to modify an individual VNF instance
Set Headers
{"Accept":"
${ACCEPT}
"}
...
...
@@ -603,6 +625,7 @@ DELETE individual vnfInstance
Delete
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/vnf_instances/
${vnfInstanceId}
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
DELETE individual vnfInstance in INSTANTIATED state
log
Trying to delete an individual VNF instance
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
...
...
SOL003/VNFLifecycleManagement-API/environment/variables.txt
View file @
0faa7460
...
...
@@ -44,11 +44,12 @@ ${erroneousRange} bytes=10000000-1000000000 # Requesting a out of range nu
${full_length} 2000 #Full size of the content file to be transmitted using partial downloads
${instantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${anotherInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notInstantiatedVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notExistingVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${subscriptionId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${conflicVnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${conflic
tOperation
VnfInstanceId} 6fc3539c-e602-4afa-8e13-962fb5a7d81f
${vnfInstanceId_NoSnapshotTask} no-snapshot-task-supported
${vnfSnapshotInfoId}
${vnfSnapshotInfoId_InUse} snapshotId-of-a-resource-AlreadyInUse-bySomeOther-operation
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment