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
9a61e995
Commit
9a61e995
authored
Oct 08, 2021
by
Giacomo Bernini
Browse files
Update NSLCMOperationKeywords.robot
parent
8107a526
Changes
1
Hide whitespace changes
Inline
Side-by-side
SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot
View file @
9a61e995
...
@@ -1132,7 +1132,7 @@ POST subscriptions
...
@@ -1132,7 +1132,7 @@ POST subscriptions
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
nsdId=
${NS_DescriptorID}
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
Log
Creating mock request and response to handle GET operation on notification endpoint
Log
Creating mock request and response to handle GET operation on notification endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
status_code=204
&{notification_response}
=
Create Mock Response
status_code=204
...
@@ -1151,7 +1151,7 @@ POST subscriptions DUPLICATION
...
@@ -1151,7 +1151,7 @@ POST subscriptions DUPLICATION
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
nsdId=
${NS_DescriptorID}
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
Log
Creating mock request and response to handle GET operation on notification endpoint
Log
Creating mock request and response to handle GET operation on notification endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
status_code=204
&{notification_response}
=
Create Mock Response
status_code=204
...
@@ -1170,7 +1170,7 @@ POST subscriptions NO DUPLICATION
...
@@ -1170,7 +1170,7 @@ POST subscriptions NO DUPLICATION
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${AUTH_USAGE}
=
= 1
Set Headers
{"
${AUTHORIZATION_HEADER}
":"
${AUTHORIZATION_TOKEN}
"}
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
Run Keyword If
${check_descriptors}
=
= 1
PARSE the NS Descriptor File
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${template}
=
Get File
jsons/LccnSubscriptionRequest.json
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
nsdId=
${NS_DescriptorID}
${body}
=
Format String
${template}
callbackUri=
${callback_uri}
callbackEndpoint=
${callback_endpoint}
callbackPort=
${callback_port}
Log
Creating mock request and response to handle GET operation on notification endpoint
Log
Creating mock request and response to handle GET operation on notification endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
status_code=204
&{notification_response}
=
Create Mock Response
status_code=204
...
...
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