Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miguel Angel Reina Ortega
api-tests
Commits
0b283d6c
Commit
0b283d6c
authored
6 years ago
by
mengxuan.zhao
Browse files
Options
Downloads
Patches
Plain Diff
VNF LCM Instantiate
parent
16b2b757
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTask.robot
+63
-0
63 additions, 0 deletions
...3/VNFLifecycleManagement-API_egm/InstantiateVNFTask.robot
with
63 additions
and
0 deletions
SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTask.robot
0 → 100644
+
63
−
0
View file @
0b283d6c
*** Settings ***
Resource
variables.txt
Library
REST
http://
${VNFM_HOST}
:
${VNFM_PORT}
...
spec=SOL003-VNFLifecycleManagement-API.yaml
*** Test Cases ***
Instantiate a vnfInstance
[
Documentation
]
Instantiate VNF The POST method instantiates a VNF instance.
Log
Trying to Instantiate a vnf Instance
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
${INSTANTIATE_VNF_REQUEST}
Output
response
Integer
response status
202
Log
Status code validated
Instantiate a vnfInstance Conflict
# TODO: Need to set the pre-condition of the test. VNF instance shall be in INSTANTIATED state
[
Documentation
]
Conflict.
...
The operation cannot be executed currently, due to a conflict with the state of the VNF instance resource.
...
Typically, this is due to the fact that the VNF instance resource is in INSTANTIATED state.
...
The response body shall contain a ProblemDetails structure, in which the “detail” attribute should convey more information about the error.
Log
Trying to Instantiate a vnf Instance
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
${INSTANTIATE_VNF_REQUEST}
Output
response
Integer
response status
409
Log
Status code validated
GET Instantiate VNFInstance - Method not implemented
log
Trying to perform a GET. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
Log
Validate Status code
Output
response
Integer
response status
405
PUT Instantiate VNFInstance - Method not implemented
log
Trying to perform a PUT. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Put
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
Log
Validate Status code
Output
response
Integer
response status
405
PATCH Instantiate VNFInstance - Method not implemented
log
Trying to perform a PATCH. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Patch
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
Log
Validate Status code
Output
response
Integer
response status
405
DELETE Instantiate VNFInstance - Method not implemented
log
Trying to perform a DELETE. This method should not be implemented
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${vnfInstanceId}
/instantiate
Log
Validate Status code
Output
response
Integer
response status
405
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment