Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
api-tests
Commits
fe1f0f44
Commit
fe1f0f44
authored
Sep 28, 2021
by
Elian Kraja
Committed by
Giacomo Bernini
Oct 05, 2021
Browse files
Fix issue
#193
parent
ca8975bb
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
25 deletions
+25
-25
SOL002/VNFFaultManagement-API/Subscriptions.robot
SOL002/VNFFaultManagement-API/Subscriptions.robot
+1
-1
SOL002/VNFIndicator-API/Subscriptions.robot
SOL002/VNFIndicator-API/Subscriptions.robot
+2
-2
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
.../VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
+2
-2
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
...anceManagement-API/VNFPerformanceManagementKeywords.robot
+2
-2
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
...3/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
+3
-3
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
+2
-2
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
...FLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
+2
-2
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
...FPackageManagement-API/VNFPackageManagementKeywords.robot
+2
-2
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/VRQANOperationKeywords.robot
...otaAvailableNotification-API/VRQANOperationKeywords.robot
+2
-2
SOL005/NSDManagement-API/NSDManagementKeywords.robot
SOL005/NSDManagement-API/NSDManagementKeywords.robot
+2
-2
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
...05/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
+3
-3
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
...FPackageManagement-API/VNFPackageManagementKeywords.robot
+2
-2
No files found.
SOL002/VNFFaultManagement-API/Subscriptions.robot
View file @
fe1f0f44
...
...
@@ -317,7 +317,7 @@ Post Create subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Clear Requests
${callback_endpoint}
...
...
SOL002/VNFIndicator-API/Subscriptions.robot
View file @
fe1f0f44
...
...
@@ -338,7 +338,7 @@ Post Create subscription - DUPLICATION
&{notification_response}=
Create
Mock
Response
status_code=204
Log
Issue
the
subscription
request
Create
Mock
Expectation
${notification_request}
${notification_response}
Post
${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${body}
Post
${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${body}
allow_redirects=false
${outputResponse}=
Output
response
Set
Global
Variable
${response}
${outputResponse}
Clear
Requests
${callback_endpoint}
...
...
@@ -358,7 +358,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}=
Create
Mock
Response
status_code=204
Log
Issue
the
subscription
request
Create
Mock
Expectation
${notification_request}
${notification_response}
Post
${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${body}
Post
${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
${body}
allow_redirects=false
${outputResponse}=
Output
response
Set
Global
Variable
${response}
${outputResponse}
Clear
Requests
${callback_endpoint}
...
...
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
View file @
fe1f0f44
...
...
@@ -856,7 +856,7 @@ Post Create subscription - DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Clear Requests
${callback_endpoint}
...
...
@@ -874,7 +874,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Clear Requests
${callback_endpoint}
...
...
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
fe1f0f44
...
...
@@ -106,7 +106,7 @@ Send Post Request for VNF Performance Subscription
Set headers
{"Accept": "
${ACCEPT_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
${body_request}
=
Get File
jsons/subscriptions.json
POST
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body_request}
POST
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body_request}
allow_redirects=false
${output}
=
Output
response
Set Suite Variable
${response}
${output}
Run Keyword If
${VNFM_CHECKS_NOTIF_ENDPOINT}
=
= 1
...
...
@@ -137,7 +137,7 @@ Send Post Request for Duplicated VNF Performance Subscription
Set headers
{"Accept": "
${ACCEPT_JSON}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
${body_request}
=
Get File
jsons/subscriptions.json
POST
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body_request}
POST
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body_request}
allow_redirects=false
${output}
=
Output
response
Set Suite Variable
${response}
${output}
# Integer response status 303
...
...
SOL003/VNFFaultManagement-API/FaultManagement-APIKeyword.robot
View file @
fe1f0f44
...
...
@@ -273,7 +273,7 @@ POST Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify the notification endpoint has been tested
...
...
@@ -293,7 +293,7 @@ Send POST Request for duplicated subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify the notification endpoint has been tested
...
...
@@ -313,7 +313,7 @@ Send POST Request for duplicated subscription not permitted
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify the notification endpoint has been tested
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
fe1f0f44
...
...
@@ -106,7 +106,7 @@ Send Post Request for VNF Indicator Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Log
Verify the notification endpoint has been tested
...
...
@@ -129,7 +129,7 @@ Send Post Request for Duplicated VNF indicator Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Log
Verify the notification endpoint has been tested
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
fe1f0f44
...
...
@@ -1289,7 +1289,7 @@ Post Create subscription - DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify notification endpoint is tested
...
...
@@ -1311,7 +1311,7 @@ Post Create subscription - NO-DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify notification endpoint is tested
...
...
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
fe1f0f44
...
...
@@ -418,7 +418,7 @@ Send Post Request for VNF Package Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Log
Verify that the notification endpoint has been tested
...
...
@@ -439,7 +439,7 @@ Send Post Request for Duplicated VNF Package Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Log
Verify that the notification endpoint has been tested
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/VRQANOperationKeywords.robot
View file @
fe1f0f44
...
...
@@ -123,7 +123,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify that the notification endpoint has been tested
...
...
@@ -143,7 +143,7 @@ Send Post request for new Virtualised Resources Quota Available Notification sub
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify that the notification endpoint has been tested
...
...
SOL005/NSDManagement-API/NSDManagementKeywords.robot
View file @
fe1f0f44
...
...
@@ -801,7 +801,7 @@ Send Post Request for NSD Management Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Clear Requests
${callback_endpoint}
...
...
@@ -822,7 +822,7 @@ Send POST Request for Duplicated NSD Management Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Clear Requests
${callback_endpoint}
...
...
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
View file @
fe1f0f44
...
...
@@ -1150,7 +1150,7 @@ POST subscriptions
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify that NFVO tested the notification endpoint
...
...
@@ -1171,7 +1171,7 @@ POST subscriptions DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify that NFVO tested the notification endpoint
...
...
@@ -1192,7 +1192,7 @@ POST subscriptions NO DUPLICATION
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${outputResponse}
=
Output
response
Set Global Variable
${response}
${outputResponse}
Log
Verify that NFVO tested the notification endpoint
...
...
SOL005/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
fe1f0f44
...
...
@@ -903,7 +903,7 @@ Send Post Request for VNF Package Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Clear Requests
${callback_endpoint}
...
...
@@ -922,7 +922,7 @@ Send Post Request for Duplicated VNF Package Subscription
&{notification_response}
=
Create Mock Response
status_code=204
Log
Issue the subscription request
Create Mock Expectation
${notification_request}
${notification_response}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
Post
${apiRoot}
/
${apiName}
/
${apiMajorVersion}
/subscriptions
${body}
allow_redirects=false
${output}
=
Output
response
Set Global Variable
${response}
${output}
Clear Requests
${callback_endpoint}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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