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

create mock response header fix for v2.6.1

parent 0d96b359
...@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler ...@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Alarm Handler Configure Notification Alarm Handler
...@@ -124,7 +125,8 @@ Configure Notification Alarm Handler ...@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Alarm Cleareance Handler Configure Notification Alarm Cleareance Handler
...@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler ...@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -264,7 +264,8 @@ Create Sessions ...@@ -264,7 +264,8 @@ Create Sessions
Check Notification Endpoint Check 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 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} Create Mock Expectation ${notification_request} ${notification_response}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request} Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
......
...@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler ...@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -98,7 +98,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler ...@@ -98,7 +98,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF LCM Operation Occurrence Result Notification Http POST Request Body Json Schema Is 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 ...@@ -120,7 +121,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is
...@@ -142,7 +144,8 @@ Configure Notification VNF Identifier Creation Handler ...@@ -142,7 +144,8 @@ Configure Notification VNF Identifier Creation Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is
...@@ -164,7 +167,8 @@ Configure Notification VNF Identifier Deletion Handler ...@@ -164,7 +167,8 @@ Configure Notification VNF Identifier Deletion Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is
......
...@@ -957,7 +957,8 @@ POST Operation occurrence ...@@ -957,7 +957,8 @@ POST Operation occurrence
${BODY}= evaluate json.loads('''${json}''') json ${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -970,7 +971,8 @@ POST Id creation ...@@ -970,7 +971,8 @@ POST Id creation
${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 POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -983,7 +985,8 @@ POST Id deletion ...@@ -983,7 +985,8 @@ POST Id deletion
${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 POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -993,7 +996,8 @@ POST Id deletion ...@@ -993,7 +996,8 @@ POST Id deletion
GET test endpoint GET test endpoint
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 GET ${callback_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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Verify Mock Expectation ${req} Verify Mock Expectation ${req}
......
...@@ -338,7 +338,8 @@ Create Sessions ...@@ -338,7 +338,8 @@ Create Sessions
Check Notification Endpoint Check 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 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} Create Mock Expectation ${notification_request} ${notification_response}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request} Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
......
...@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler ...@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Threshold Crossed Handler Configure Notification Threshold Crossed Handler
...@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler ...@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler ...@@ -114,7 +114,8 @@ Configure Notification Alarm List Rebuilt Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Alarm Handler Configure Notification Alarm Handler
...@@ -124,7 +125,8 @@ Configure Notification Alarm Handler ...@@ -124,7 +125,8 @@ Configure Notification Alarm Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Alarm Cleareance Handler Configure Notification Alarm Cleareance Handler
...@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler ...@@ -134,7 +136,8 @@ Configure Notification Alarm Cleareance Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -566,7 +566,8 @@ Create Sessions ...@@ -566,7 +566,8 @@ Create Sessions
Check Notification Endpoint Check 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 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} Create Mock Expectation ${notification_request} ${notification_response}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request} Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
......
...@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler ...@@ -50,7 +50,8 @@ Configure Notification Indicator Value Change Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -99,7 +99,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler ...@@ -99,7 +99,8 @@ Configure Notification VNF LCM Operation Occurrence Start Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF LCM Operation Occurrence Result Notification Http POST Request Body Json Schema Is 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 ...@@ -121,7 +122,8 @@ Configure Notification VNF LCM Operation Occurrence Result Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is Check VNF Identifier Creation Notification Http POST Request Body Json Schema Is
...@@ -143,7 +145,8 @@ Configure Notification VNF Identifier Creation Handler ...@@ -143,7 +145,8 @@ Configure Notification VNF Identifier Creation Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is Check VNF Identifier Deletion Notification Http POST Request Body Json Schema Is
...@@ -165,7 +168,8 @@ Configure Notification VNF Identifier Deletion Handler ...@@ -165,7 +168,8 @@ Configure Notification VNF Identifier Deletion Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is Check VNF LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is
......
...@@ -1371,7 +1371,8 @@ POST Operation occurrence ...@@ -1371,7 +1371,8 @@ POST Operation occurrence
${BODY}= evaluate json.loads('''${json}''') json ${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification Log Creating mock request and response to handle NSLcmOperationOccurrenceNotification
&{req}= Create Mock Request Matcher POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -1384,7 +1385,8 @@ POST Id creation ...@@ -1384,7 +1385,8 @@ POST Id creation
${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 POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -1397,7 +1399,8 @@ POST Id deletion ...@@ -1397,7 +1399,8 @@ POST Id deletion
${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 POST ${callback_endpoint} body_type="JSON_SCHEMA" body=${BODY} &{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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Log Verifying results Log Verifying results
...@@ -1407,7 +1410,8 @@ POST Id deletion ...@@ -1407,7 +1410,8 @@ POST Id deletion
GET test endpoint GET test endpoint
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 GET ${callback_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} Create Mock Expectation ${req} ${rsp}
Sleep ${sleep_interval} Sleep ${sleep_interval}
Verify Mock Expectation ${req} Verify Mock Expectation ${req}
......
...@@ -119,7 +119,8 @@ Configure Notification Onboarding Handler ...@@ -119,7 +119,8 @@ Configure Notification Onboarding Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Delete Handler Configure Notification Delete Handler
...@@ -129,7 +130,8 @@ Configure Notification Delete Handler ...@@ -129,7 +130,8 @@ Configure Notification Delete Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Change Status Handler Configure Notification Change Status Handler
...@@ -139,7 +141,8 @@ Configure Notification Change Status Handler ...@@ -139,7 +141,8 @@ Configure Notification Change Status Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -800,7 +800,8 @@ Create Sessions ...@@ -800,7 +800,8 @@ Create Sessions
Check Notification Endpoint Check 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 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} Create Mock Expectation ${notification_request} ${notification_response}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request} Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
......
...@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler ...@@ -87,7 +87,8 @@ Configure Notification Performance Information Available Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Threshold Crossed Handler Configure Notification Threshold Crossed Handler
...@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler ...@@ -97,7 +98,8 @@ Configure Notification Threshold Crossed Handler
${BODY}= evaluate json.dumps(${json}) json ${BODY}= evaluate json.dumps(${json}) json
Log Creating mock request and response to handle status notification Log Creating mock request and response to handle status notification
&{notification_request}= Create Mock Request Matcher POST ${endpoint} body_type="JSON" body=${BODY} &{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} Create Mock Expectation ${notification_request} ${notification_response}
Configure Notification Forward Configure Notification Forward
......
...@@ -341,7 +341,8 @@ Create Sessions ...@@ -341,7 +341,8 @@ Create Sessions
Check Notification Endpoint Check 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 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} Create Mock Expectation ${notification_request} ${notification_response}
Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request} Wait Until Keyword Succeeds ${total_polling_time} ${polling_interval} Verify Mock Expectation ${notification_request}
Clear Requests ${callback_endpoint} Clear Requests ${callback_endpoint}
......
...@@ -25,7 +25,8 @@ Deliver a notification - Vr Quota Availibility ...@@ -25,7 +25,8 @@ Deliver a notification - Vr Quota Availibility
${BODY}= evaluate json.loads('''${json}''') json ${BODY}= evaluate json.loads('''${json}''') json
Log Creating mock request and response to handle Vr Quota AvailibilityNotification 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} &{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