Loading SOL002/VNFIndicator-API/Subscriptions.robot +22 −2 Original line number Original line Diff line number Diff line Loading @@ -4,7 +4,11 @@ Resource environment/variables.txt # Generic Parameters Resource environment/subscriptions.txt Resource environment/subscriptions.txt Library OperatingSystem Library OperatingSystem Library JSONLibrary Library JSONLibrary Library REST ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT} Library Process Library MockServerLibrary Library REST ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT} ssl_verify=false Suite Setup Create Sessions Suite Teardown Terminate All Processes kill=true *** Test Cases *** *** Test Cases *** GET VNF Indicators Subscriptions GET VNF Indicators Subscriptions Loading Loading @@ -152,6 +156,8 @@ Send Post Request for VNF Indicator Subscription POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} ${output}= Output response ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output} Run Keyword If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 1 ... Check Notification Endpoint Send Put Request for VNF Indicator Subscriptions Send Put Request for VNF Indicator Subscriptions Log Trying to create a new subscription Log Trying to create a new subscription Loading Loading @@ -215,3 +221,17 @@ Check Postcondition VNF Indicator Subscription Is Set Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter Log Check Response includes VNF Indicators according to filter Log Check Response includes VNF Indicators according to filter #todo #todo Create Sessions Pass Execution If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 0 MockServer not necessary to run Start Process java -jar ${MOCK_SERVER_JAR} -serverPort ${callback_port} alias=mockInstance Wait For Process handle=mockInstance timeout=5s on_timeout=continue Create Mock Session ${callback_uri}:${callback_port} 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 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} No newline at end of file SOL002/VNFIndicator-API/environment/subscriptions.txt +2 −0 Original line number Original line Diff line number Diff line Loading @@ -5,3 +5,5 @@ ${erroneousIndicatorId} erroneousIndicatorId ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe ${response}= httpresponse ${response}= httpresponse ${total_polling_time} 2 min ${polling_interval} 10 sec SOL002/VNFIndicator-API/environment/variables.txt +9 −0 Original line number Original line Diff line number Diff line Loading @@ -14,3 +14,12 @@ ${AUTH_USAGE} 1 ${apiRoot} / ${apiRoot} / ${apiVersion} v1 ${apiVersion} v1 ${apiName} vnfind ${apiName} vnfind ${VNFM_CHECKS_NOTIF_ENDPOINT} 0 ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar ${callback_uri} http://localhost ${callback_port} 9091 ${callback_endpoint} /endpoint ${callback_endpoint_error} /endpoint_404 No newline at end of file SOL002/VNFPerformanceManagement-API/Subscriptions.robot +1 −1 Original line number Original line Diff line number Diff line *** Settings *** *** Settings *** Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/ Resource environment/variables.txt # Generic Parameters Resource environment/variables.txt # Generic Parameters Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false Library OperatingSystem Library OperatingSystem Library JSONLibrary Library JSONLibrary Resource VNFPerformanceManagementKeywords.robot Resource VNFPerformanceManagementKeywords.robot Loading SOL003/VNFPackageManagement-API/Subscriptions.robot +2 −0 Original line number Original line Diff line number Diff line Loading @@ -44,6 +44,7 @@ Create new VNF Package subscription Create duplicated VNF Package subscription with duplication handler Create duplicated VNF Package subscription with duplication handler [Tags] no-duplicated-subs Send Post Request for Duplicated VNF Package Subscription Send Post Request for Duplicated VNF Package Subscription Check HTTP Response Status Code Is 303 Check HTTP Response Status Code Is 303 Check HTTP Response Body Is Empty Check HTTP Response Body Is Empty Loading @@ -52,6 +53,7 @@ Create duplicated VNF Package subscription with duplication handler Create duplicated VNF Package subscription without duplication handler Create duplicated VNF Package subscription without duplication handler [Tags] duplicated-subs Send Post Request for Duplicated VNF Package Subscription Send Post Request for Duplicated VNF Package Subscription Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is PmSubscription Check HTTP Response Body Json Schema Is PmSubscription Loading Loading
SOL002/VNFIndicator-API/Subscriptions.robot +22 −2 Original line number Original line Diff line number Diff line Loading @@ -4,7 +4,11 @@ Resource environment/variables.txt # Generic Parameters Resource environment/subscriptions.txt Resource environment/subscriptions.txt Library OperatingSystem Library OperatingSystem Library JSONLibrary Library JSONLibrary Library REST ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT} Library Process Library MockServerLibrary Library REST ${EM-VNF_SCHEMA}://${EM-VNF_HOST}:${EM-VNF_PORT} ssl_verify=false Suite Setup Create Sessions Suite Teardown Terminate All Processes kill=true *** Test Cases *** *** Test Cases *** GET VNF Indicators Subscriptions GET VNF Indicators Subscriptions Loading Loading @@ -152,6 +156,8 @@ Send Post Request for VNF Indicator Subscription POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} POST ${apiRoot}/${apiName}/${apiVersion}/subscriptions ${body} ${output}= Output response ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output} Run Keyword If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 1 ... Check Notification Endpoint Send Put Request for VNF Indicator Subscriptions Send Put Request for VNF Indicator Subscriptions Log Trying to create a new subscription Log Trying to create a new subscription Loading Loading @@ -215,3 +221,17 @@ Check Postcondition VNF Indicator Subscription Is Set Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter Check HTTP Response Body Subscriptions Match the requested Attribute-Based Filter Log Check Response includes VNF Indicators according to filter Log Check Response includes VNF Indicators according to filter #todo #todo Create Sessions Pass Execution If ${VNFM_CHECKS_NOTIF_ENDPOINT} == 0 MockServer not necessary to run Start Process java -jar ${MOCK_SERVER_JAR} -serverPort ${callback_port} alias=mockInstance Wait For Process handle=mockInstance timeout=5s on_timeout=continue Create Mock Session ${callback_uri}:${callback_port} 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 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} No newline at end of file
SOL002/VNFIndicator-API/environment/subscriptions.txt +2 −0 Original line number Original line Diff line number Diff line Loading @@ -5,3 +5,5 @@ ${erroneousIndicatorId} erroneousIndicatorId ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${POS_FILTER} callbackUri=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe ${NEG_FILTER} callback=http://127.0.0.1/subscribe ${response}= httpresponse ${response}= httpresponse ${total_polling_time} 2 min ${polling_interval} 10 sec
SOL002/VNFIndicator-API/environment/variables.txt +9 −0 Original line number Original line Diff line number Diff line Loading @@ -14,3 +14,12 @@ ${AUTH_USAGE} 1 ${apiRoot} / ${apiRoot} / ${apiVersion} v1 ${apiVersion} v1 ${apiName} vnfind ${apiName} vnfind ${VNFM_CHECKS_NOTIF_ENDPOINT} 0 ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar ${callback_uri} http://localhost ${callback_port} 9091 ${callback_endpoint} /endpoint ${callback_endpoint_error} /endpoint_404 No newline at end of file
SOL002/VNFPerformanceManagement-API/Subscriptions.robot +1 −1 Original line number Original line Diff line number Diff line *** Settings *** *** Settings *** Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/ Resource environment/variables.txt # Generic Parameters Resource environment/variables.txt # Generic Parameters Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false Library OperatingSystem Library OperatingSystem Library JSONLibrary Library JSONLibrary Resource VNFPerformanceManagementKeywords.robot Resource VNFPerformanceManagementKeywords.robot Loading
SOL003/VNFPackageManagement-API/Subscriptions.robot +2 −0 Original line number Original line Diff line number Diff line Loading @@ -44,6 +44,7 @@ Create new VNF Package subscription Create duplicated VNF Package subscription with duplication handler Create duplicated VNF Package subscription with duplication handler [Tags] no-duplicated-subs Send Post Request for Duplicated VNF Package Subscription Send Post Request for Duplicated VNF Package Subscription Check HTTP Response Status Code Is 303 Check HTTP Response Status Code Is 303 Check HTTP Response Body Is Empty Check HTTP Response Body Is Empty Loading @@ -52,6 +53,7 @@ Create duplicated VNF Package subscription with duplication handler Create duplicated VNF Package subscription without duplication handler Create duplicated VNF Package subscription without duplication handler [Tags] duplicated-subs Send Post Request for Duplicated VNF Package Subscription Send Post Request for Duplicated VNF Package Subscription Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 201 Check HTTP Response Body Json Schema Is PmSubscription Check HTTP Response Body Json Schema Is PmSubscription Loading