Commit a5a81119 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Fixed notification TDs to align with new mock server library version

parent 615fff85
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -16,8 +16,8 @@ Deliver a notification - Alarm
    ${json}=	Get File	schemas/alarmNotification.schema.json
    ${json}=	Get File	schemas/alarmNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}    body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -30,8 +30,8 @@ Deliver a notification - Alarm Clearance
    ${json}=	Get File	schemas/alarmClearedNotification.schema.json
    ${json}=	Get File	schemas/alarmClearedNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -44,8 +44,8 @@ Deliver a notification - Alarm List Rebuilt
    ${json}=	Get File	schemas/alarmListRebuiltNotification.schema.json
    ${json}=	Get File	schemas/alarmListRebuiltNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -55,8 +55,8 @@ Deliver a notification - Alarm List Rebuilt


Test a notification end point
Test a notification end point
    log    The GET method allows the server to test the notification endpoint
    log    The GET method allows the server to test the notification endpoint
    &{req}=  Create Mock Request Matcher Schema	GET  ${notification_ep}    
    &{req}=  Create Mock Request Matcher    GET  ${notification_ep}    
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
+12 −12
Original line number Original line Diff line number Diff line
@@ -12,8 +12,8 @@ Library String


*** Test Cases ***
*** Test Cases ***
Check Notification Endpoint
Check Notification Endpoint
    &{req}=  Create Mock Request Matcher Schema	GET  ${callback_endpoint}    
    &{req}=  Create Mock Request Matcher	GET  ${callback_endpoint}    
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
@@ -23,8 +23,8 @@ Post VNF Indicator Notification
    ${json}=	Get File	schemas/VnfIndicatorValueChangeNotification.schema.json
    ${json}=	Get File	schemas/VnfIndicatorValueChangeNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle VNF Indicator Notification
    Log  Creating mock request and response to handle VNF Indicator Notification
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -36,8 +36,8 @@ Post VNF Indicator Notification Negative 404
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle VNF Indicator Notification to handle 404 error
    Log  Creating mock request and response to handle VNF Indicator Notification to handle 404 error
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint_error}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint_error}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=404
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=404
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -49,8 +49,8 @@ Post VNF Indicator Notification Negative 404
    
    
PUT VNF Indicator Notification 
PUT VNF Indicator Notification 
    Log  PUT Method not implemented
    Log  PUT Method not implemented
    &{req}=  Create Mock Request Matcher Schema	PUT  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	PUT  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -61,8 +61,8 @@ PUT VNF Indicator Notification
    
    
PATCH VNF Indicator Notification 
PATCH VNF Indicator Notification 
    Log  PATCH Method not implemented
    Log  PATCH Method not implemented
    &{req}=  Create Mock Request Matcher Schema	PATCH  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	PATCH  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -73,8 +73,8 @@ PATCH VNF Indicator Notification
    
    
DELETE VNF Indicator Notification 
DELETE VNF Indicator Notification 
    Log  PATCH Method not implemented
    Log  PATCH Method not implemented
    &{req}=  Create Mock Request Matcher Schema	DELETE  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	DELETE  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
+8 −8
Original line number Original line Diff line number Diff line
@@ -16,8 +16,8 @@ Deliver a notification - Operation Occurence
    ${json}=	Get File	schemas/vnfLcmOperationOccurrenceNotification.schema.json
    ${json}=	Get File	schemas/vnfLcmOperationOccurrenceNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -30,8 +30,8 @@ Deliver a notification - Id Creation
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -44,8 +44,8 @@ Deliver a notification - Id deletion
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    Log  Creating mock request and response to handle vnfLcmOperationOccurrenceNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -55,8 +55,8 @@ Deliver a notification - Id deletion


Test a notification end point
Test a notification end point
    log    The GET method allows the server to test the notification endpoint
    log    The GET method allows the server to test the notification endpoint
    &{req}=  Create Mock Request Matcher Schema	GET  ${notification_ep}    
    &{req}=  Create Mock Request Matcher	GET  ${notification_ep}    
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
+16 −16
Original line number Original line Diff line number Diff line
@@ -11,8 +11,8 @@ Library String


*** Test Cases ***
*** Test Cases ***
Check Notification Endpoint
Check Notification Endpoint
    &{req}=  Create Mock Request Matcher Schema	GET  ${callback_endpoint}    
    &{req}=  Create Mock Request Matcher	GET  ${callback_endpoint}    
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
@@ -22,8 +22,8 @@ Post Performance Information Available Notification
    ${json}=	Get File	schemas/PerformanceInformationAvailableNotification.schema.json
    ${json}=	Get File	schemas/PerformanceInformationAvailableNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle Performance Information Available Notification
    Log  Creating mock request and response to handle Performance Information Available Notification
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -36,8 +36,8 @@ Post Performance Information Available Notification Negative 404
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle Performance Information Available Notification to handle 404 error
    Log  Creating mock request and response to handle Performance Information Available Notification to handle 404 error
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint_error}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint_error}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=404
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=404
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -49,8 +49,8 @@ Post Threshold Crossed Notification
    ${json}=	Get File	schema/ThresholdCrossedNotification.schema.json
    ${json}=	Get File	schema/ThresholdCrossedNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle Threshold Crossed Notification
    Log  Creating mock request and response to handle Threshold Crossed Notification
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -63,8 +63,8 @@ PostThreshold Crossed Notification Negative 404
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${json}=	Get File	schemas/ProblemDetails.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handleThreshold Crossed Notification to handle 404 error
    Log  Creating mock request and response to handleThreshold Crossed Notification to handle 404 error
    &{req}=  Create Mock Request Matcher Schema	POST  ${callback_endpoint_error}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${callback_endpoint_error}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=404
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=404
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -75,8 +75,8 @@ PostThreshold Crossed Notification Negative 404
    
    
PUT Performance Notification 
PUT Performance Notification 
    Log  PUT Method not implemented
    Log  PUT Method not implemented
    &{req}=  Create Mock Request Matcher Schema	PUT  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	PUT  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -87,8 +87,8 @@ PUT Performance Notification
    
    
PATCH Performance Notification 
PATCH Performance Notification 
    Log  PATCH Method not implemented
    Log  PATCH Method not implemented
    &{req}=  Create Mock Request Matcher Schema	PATCH  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	PATCH  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -99,8 +99,8 @@ PATCH Performance Notification
    
    
DELETE Performance Notification 
DELETE Performance Notification 
    Log  PATCH Method not implemented
    Log  PATCH Method not implemented
    &{req}=  Create Mock Request Matcher Schema	DELETE  ${callback_endpoint}
    &{req}=  Create Mock Request Matcher	DELETE  ${callback_endpoint}
    &{rsp}=  Create Mock Response Schema  status_code=405
    &{rsp}=  Create Mock Response  status_code=405
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
+8 −8
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@ Deliver a notification - Alarm
    ${json}=	Get File	schemas/alarmNotification.schema.json
    ${json}=	Get File	schemas/alarmNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -28,8 +28,8 @@ Deliver a notification - Alarm Clearance
    ${json}=	Get File	schemas/alarmClearedNotification.schema.json
    ${json}=	Get File	schemas/alarmClearedNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher	POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -42,8 +42,8 @@ Deliver a notification - Alarm List Rebuilt
    ${json}=	Get File	schemas/alarmListRebuiltNotification.schema.json
    ${json}=	Get File	schemas/alarmListRebuiltNotification.schema.json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    ${BODY}=	evaluate	json.loads('''${json}''')	json
    Log  Creating mock request and response to handle alarmNotification
    Log  Creating mock request and response to handle alarmNotification
    &{req}=  Create Mock Request Matcher Schema	POST  ${notification_ep}  body=${BODY}
    &{req}=  Create Mock Request Matcher  POST  ${notification_ep}  body_type="JSON_SCHEMA"    body=${BODY}
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Log  Verifying results
    Log  Verifying results
@@ -53,8 +53,8 @@ Deliver a notification - Alarm List Rebuilt


Test a notification end point
Test a notification end point
    log    The GET method allows the server to test the notification endpoint
    log    The GET method allows the server to test the notification endpoint
    &{req}=  Create Mock Request Matcher Schema	GET  ${notification_ep}    
    &{req}=  Create Mock Request Matcher	GET  ${notification_ep}    
    &{rsp}=  Create Mock Response Schema	headers="Content-Type: application/json"  status_code=204
    &{rsp}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    Create Mock Expectation  ${req}  ${rsp}
    Create Mock Expectation  ${req}  ${rsp}
    Sleep  ${sleep_interval}
    Sleep  ${sleep_interval}
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
Loading