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
c0d00346
Commit
c0d00346
authored
Feb 24, 2021
by
Giacomo Bernini
Browse files
create mock response header fix for v2.6.1
parent
0d96b359
Changes
17
Show whitespace changes
Inline
Side-by-side
SOL002/VNFFaultManagement-API/NotificationEndpoint.robot
View file @
c0d00346
...
...
@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Alarm Handler
...
...
@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Alarm Cleareance Handler
...
...
@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL002/VNFIndicator-API/Subscriptions.robot
View file @
c0d00346
...
...
@@ -264,7 +264,8 @@ Create Sessions
Check
Notification
Endpoint
&{notification_request}=
Create
Mock
Request
Matcher
GET
${callback_endpoint}
&{notification_response}=
Create
Mock
Response
headers="Content-Type:
application/json"
status_code=204
&{headers}
=
Create
Dictionary
Content-Type=application/json
&{notification_response}=
Create
Mock
Response
headers=${headers}
status_code=204
Create
Mock
Expectation
${notification_request}
${notification_response}
Wait
Until
Keyword
Succeeds
${total_polling_time}
${polling_interval}
Verify
Mock
Expectation
${notification_request}
Clear
Requests
${callback_endpoint}
...
...
SOL002/VNFIndicatorNotification-API/VnfIndicatorNotification.robot
View file @
c0d00346
...
...
@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL002/VNFLifecycleManagement-API/NotificationEndpoint.robot
View file @
c0d00346
...
...
@@ -98,7 +98,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF LCM Operation Occurrence Result Notification Http POST Request Body Json Schema Is
...
...
@@ -120,7 +121,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is
...
...
@@ -142,7 +144,8 @@ Configure Notification VNF Identifier Creation Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is
...
...
@@ -164,7 +167,8 @@ Configure Notification VNF Identifier Deletion Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is
...
...
SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
View file @
c0d00346
...
...
@@ -957,7 +957,8 @@ POST Operation occurrence
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle NSLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -970,7 +971,8 @@ POST Id creation
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -983,7 +985,8 @@ POST Id deletion
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -993,7 +996,8 @@ POST Id deletion
GET test endpoint
log
The GET method allows the server to test the notification endpoint
&{req}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Verify Mock Expectation
${req}
...
...
SOL002/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
c0d00346
...
...
@@ -338,7 +338,8 @@ Create Sessions
Check Notification Endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${notification_request}
Clear Requests
${callback_endpoint}
...
...
SOL002/VNFPerformanceManagementNotification-API/PerformanceManagementNotification.robot
View file @
c0d00346
...
...
@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Threshold Crossed Handler
...
...
@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL003/VNFFaultManagementNotification-API/NotificationEndpoint.robot
View file @
c0d00346
...
...
@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Alarm Handler
...
...
@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Alarm Cleareance Handler
...
...
@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL003/VNFIndicator-API/VNFIndicatorsKeywords.robot
View file @
c0d00346
...
...
@@ -566,7 +566,8 @@ Create Sessions
Check Notification Endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${notification_request}
Clear Requests
${callback_endpoint}
...
...
SOL003/VNFIndicator-API/VnfIndicatorNotification.robot
View file @
c0d00346
...
...
@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL003/VNFLifecycleManagement-API/NotificationEndpoint.robot
View file @
c0d00346
...
...
@@ -99,7 +99,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF LCM Operation Occurrence Result Notification Http POST Request Body Json Schema Is
...
...
@@ -121,7 +122,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is
...
...
@@ -143,7 +145,8 @@ Configure Notification VNF Identifier Creation Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is
...
...
@@ -165,7 +168,8 @@ Configure Notification VNF Identifier Deletion Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is
...
...
SOL003/VNFLifecycleManagement-API/VnfLcmMntOperationKeywords.robot
View file @
c0d00346
...
...
@@ -1371,7 +1371,8 @@ POST Operation occurrence
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle NSLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -1384,7 +1385,8 @@ POST Id creation
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -1397,7 +1399,8 @@ POST Id deletion
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -1407,7 +1410,8 @@ POST Id deletion
GET test endpoint
log
The GET method allows the server to test the notification endpoint
&{req}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Verify Mock Expectation
${req}
...
...
SOL003/VNFPackageManagement-API/PackageManagementNotification.robot
View file @
c0d00346
...
...
@@ -119,7 +119,8 @@ Configure Notification Onboarding Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Delete Handler
...
...
@@ -129,7 +130,8 @@ Configure Notification Delete Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Change Status Handler
...
...
@@ -139,7 +141,8 @@ Configure Notification Change Status Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
View file @
c0d00346
...
...
@@ -800,7 +800,8 @@ Create Sessions
Check Notification Endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${notification_request}
Clear Requests
${callback_endpoint}
...
...
SOL003/VNFPerformanceManagement-API/PerformanceManagementNotification.robot
View file @
c0d00346
...
...
@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Threshold Crossed Handler
...
...
@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
${BODY}
=
evaluate
json.dumps(
${json}
)
json
Log
Creating mock request and response to handle status notification
&{notification_request}
=
Create Mock Request Matcher
POST
${endpoint}
body_type="JSON"
body=
${BODY}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Configure Notification Forward
...
...
SOL003/VNFPerformanceManagement-API/VNFPerformanceManagementKeywords.robot
View file @
c0d00346
...
...
@@ -341,7 +341,8 @@ Create Sessions
Check Notification Endpoint
&{notification_request}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{notification_response}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{notification_response}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${notification_request}
${notification_response}
Wait Until Keyword Succeeds
${total_polling_time}
${polling_interval}
Verify Mock Expectation
${notification_request}
Clear Requests
${callback_endpoint}
...
...
SOL003/VirtualisedResourcesQuotaAvailableNotification-API/NotificationEndpoint.robot
View file @
c0d00346
...
...
@@ -25,7 +25,8 @@ Deliver a notification - Vr Quota Availibility
${BODY}
=
evaluate
json.loads('''
${json}
''')
json
Log
Creating mock request and response to handle Vr Quota AvailibilityNotification
&{req}
=
Create Mock Request Matcher
POST
${callback_endpoint}
body_type="JSON_SCHEMA"
body=
${BODY}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Log
Verifying results
...
...
@@ -36,7 +37,8 @@ Deliver a notification - Vr Quota Availibility
Test a notification end point
log
The GET method allows the server to test the notification endpoint
&{req}
=
Create Mock Request Matcher
GET
${callback_endpoint}
&{rsp}
=
Create Mock Response
headers="Content-Type: application/json"
status_code=204
&{headers}
=
Create Dictionary
Content-Type=application/json
&{rsp}
=
Create Mock Response
headers=
${headers}
status_code=204
Create Mock Expectation
${req}
${rsp}
Sleep
${sleep_interval}
Verify Mock Expectation
${req}
...
...
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