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
4ef10a07
Commit
4ef10a07
authored
Dec 12, 2018
by
Giacomo Bernini
Browse files
updated HL code example
parent
d1eb274c
Changes
1
Show whitespace changes
Inline
Side-by-side
SOL003/VNFLifecycleManagement-API_egm/InstantiateVNFTaskWithCheckAndNotifications.robot
View file @
4ef10a07
...
...
@@ -22,6 +22,14 @@ ${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
...
...
@@ -32,14 +40,6 @@ VNF Instantiation
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}
...
...
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