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
a41456b9
Commit
a41456b9
authored
Jan 24, 2020
by
root
Committed by
Michele Carignani
Mar 11, 2020
Browse files
bug-fixes
parent
02145d84
Changes
6
Hide whitespace changes
Inline
Side-by-side
SOL002/VNFFaultManagement-API/Subscriptions.robot
View file @
a41456b9
...
@@ -292,6 +292,6 @@ Check HTTP Response Body Json Schema Is
...
@@ -292,6 +292,6 @@ Check HTTP Response Body Json Schema Is
Check resource existance
Check resource existance
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${
subscriptionId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
/
${
response['body']['id']}
Integer
response status
200
Integer
response status
200
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
a41456b9
...
@@ -12,6 +12,12 @@ Library Process
...
@@ -12,6 +12,12 @@ Library Process
${original_etag}
1234
${original_etag}
1234
*** Keywords ***
*** Keywords ***
Check created Subscription existance
${subscriptionId}
=
${response['body']['id']}
Set Headers
{"Accept":"
${ACCEPT}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Integer
response status
200
Check Operation Occurrence Id
Check Operation Occurrence Id
${opOccId}
=
Get Value From Json
${response.headers}
$..Location
${opOccId}
=
Get Value From Json
${response.headers}
$..Location
Should Not Be Empty
${opOccId}
Should Not Be Empty
${opOccId}
...
...
SOL003/VNFFaultManagement-API/Subscriptions.robot
View file @
a41456b9
...
@@ -21,6 +21,7 @@ Create a new Fault Management alarm subscription
...
@@ -21,6 +21,7 @@ Create a new Fault Management alarm subscription
Check HTTP Response Status Code Is
201
Check HTTP Response Status Code Is
201
Check Operation Occurrence Id
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is
FmSubscription
Check HTTP Response Body Json Schema Is
FmSubscription
Check created Subscription existance
Create a new alarm subscription - DUPLICATION
Create a new alarm subscription - DUPLICATION
...
@@ -50,6 +51,7 @@ Create a new alarm subscription - NO DUPLICATION
...
@@ -50,6 +51,7 @@ Create a new alarm subscription - NO DUPLICATION
Check HTTP Response Status Code Is
303
Check HTTP Response Status Code Is
303
Check Operation Occurrence Id
Check Operation Occurrence Id
Check HTTP Response Body Json Schema Is
FmSubscription
Check HTTP Response Body Json Schema Is
FmSubscription
Check created Subscription existance
Retrieve a list of alarm subscriptions
Retrieve a list of alarm subscriptions
[
Documentation
]
Test ID: 7.3.5.3.4
[
Documentation
]
Test ID: 7.3.5.3.4
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
a41456b9
...
@@ -1148,7 +1148,11 @@ GET test endpoint
...
@@ -1148,7 +1148,11 @@ GET test endpoint
Sleep
${sleep_interval}
Sleep
${sleep_interval}
Verify Mock Expectation
${req}
Verify Mock Expectation
${req}
Clear Requests
${callback_endpoint}
Clear Requests
${callback_endpoint}
Verify Resources not Deleted
Verify Resources not Deleted
GET multiple vnfInstances
log
Trying to get information about an individual VNF instance
Check HTTP Response Status Code Is
200
Set Headers
{"Accept":"
${ACCEPT}
"}
Check HTTP Response Body Json Schema Is
vnfInstances
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
\ No newline at end of file
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/vnf_instances/
${response['body']['id']}
${outputResponse}
=
Output
response
Set Global Variable
@{response}
${outputResponse}
\ No newline at end of file
SOL005/NSLifecycleManagement-API/DeleteNSInstanceWorkflow.robot
View file @
a41456b9
...
@@ -19,4 +19,5 @@ NS Instance Deletion
...
@@ -19,4 +19,5 @@ NS Instance Deletion
Check resource not_instantiated
Check resource not_instantiated
DELETE IndividualNSInstance
DELETE IndividualNSInstance
Check HTTP Response Status Code Is
204
Check HTTP Response Status Code Is
204
Check HTTP Response Body Json Schema Is
NsIdentifierDeletionNotification
Check HTTP Response Body Json Schema Is
NsIdentifierDeletionNotification
\ No newline at end of file
Check Instance Deleted
\ No newline at end of file
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
View file @
a41456b9
...
@@ -30,6 +30,13 @@ Check subscription existence
...
@@ -30,6 +30,13 @@ Check subscription existence
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/subscriptions/
${subscriptionId}
Integer
response status
200
Integer
response status
200
Check Instance Deleted
Set Headers
{"Accept":"
${ACCEPT}
"}
Set Headers
{"Content-Type": "
${CONTENT_TYPE}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Delete
${apiRoot}
/
${apiName}
/
${apiVersion}
/ns_instances/
${nsInstanceId}
Integer
response status
400
Check Fail not supported
Check Fail not supported
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"Authorization":"
${AUTHORIZATION}
"}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/ns_lcm_op_occs/
${nsLcmOpOccId}
Get
${apiRoot}
/
${apiName}
/
${apiVersion}
/ns_lcm_op_occs/
${nsLcmOpOccId}
...
...
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