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
4ef10a07
Commit
4ef10a07
authored
6 years ago
by
Giacomo Bernini
Browse files
Options
Downloads
Patches
Plain Diff
updated HL code example
parent
d1eb274c
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/InstantiateVNFTaskWithCheckAndNotifications.robot
+20
-12
20 additions, 12 deletions
...API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
with
20 additions
and
12 deletions
SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
+
20
−
12
View file @
4ef10a07
...
...
@@ -22,24 +22,24 @@ ${vnfInstanceId}
*** Test Cases ***
VNF Instantiation
[Documentation]
Test ID: 5.x.y.x
...
Test title: VNF Instantiation
...
Test objective: The objective is to test the instantiation of a VNF instance
...
Pre-conditions: VNF instance resources is created (Test ID: 5.a.b.c)
...
Reference: section 5.x.y - SOL003 v2.4.1
...
Config ID: Config_prod_VNFM
...
Applicability: VNFM is in direct mode
...
Post-Conditions: VNF instance in INSTANTIATED state
Send VNF Instantiation Request
Check HTTP Response Status Code Is
202
Check HTTP Response Header Contains
Location
Check Operation Occurrence Id
Check Operation Notification STARTING
Check Operation Notification PROCESSING
Check Operation Notification COMPLETED
Check Operation Notification
STARTING
Check Operation Notification
PROCESSING
Check Operation Notification
COMPLETED
Check Postcondition
*** Keywords ***
Create VNF Resource
Log
Create VNF instance by POST to
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
${body}
=
Get File
json/createVnfRequest.json
${response}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances
${body}
Send VNF Instantiation Request
Log
Instantiate a VNF Instance
Set Headers
{"Accept":"
${ACCEPT}
"}
...
...
@@ -108,6 +108,14 @@ Verify Notification COMPLETED
[
Arguments
]
${status}
Verify Mock Expectation
${notification_request}
Create VNF Resource
Log
Create VNF instance by POST to
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
${body}
=
Get File
json/createVnfRequest.json
${response}
=
Post
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances
${body}
Initialize System
Create Sessions
Configure Notification Handler
VnfIdentifierCreationNotification
${callback_endpoint}
...
...
@@ -125,4 +133,4 @@ Check Postcondition
Should Be Equal
${response.body.id}
${vnfInstanceId}
Check HTTP Response Header Contains
Content-Type
Check HTTP Response Json Schema
${response.body}
vnfInstance.schema.json
Check VNF Status
${response.body.instantiationState}
INSTANTIATED
\ No newline at end of file
Check VNF Status
${response.body.instantiationState}
INSTANTIATED
\ 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