Loading SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot +14 −0 Original line number Diff line number Diff line Loading @@ -479,6 +479,20 @@ Check Postcondition Subscription Is Set Check HTTP Response Status Code Is 200 Send Post Request for Duplicated Subscription Log POST request for duplicated subscription Pass Execution If ${NFVMANO_ALLOWS_DUPLICATE_SUBS}==0 Skipping test as duplicate subscription is not enabled Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${template}= Get File jsons/subscriptions.json ${body}= Format String ${template} callback_uri=${callback_uri} callback_endpoint=${callback_endpoint} POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false ${output}= Output response Set Suite Variable ${response} ${output} Send Post Request for No Duplicated Subscription Log POST request for duplicated subscription Pass Execution If ${NFVMANO_ALLOWS_DUPLICATE_SUBS}==1 Skipping test as duplicate subscription is enabled Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Loading SOL009/NFVMANOLogManagement-API/Subscriptions.robot +2 −2 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ POST Create request for duplicated Subscription not creating duplicated subscrip ... Config ID: Config_prod_NFV-MANO ... Applicability: The NFV-MANO does not support the creation of duplicated subscriptions ... Post-Conditions: The existing Subscription returned is available in the NFV-MANO Send Post Request for Duplicated Subscription Send Post Request for No Duplicated Subscription Check HTTP Response Status Code Is 303 Check HTTP Response Body Is Empty Check HTTP Response Header Contains Location Loading Loading @@ -210,5 +210,5 @@ POST Create new Subscription - Unprocessable entity ... Applicability: Notification endpoint is unreachable by the NFV-MANO. ... Post-Conditions: none Send Post Request for Subscription with unreachable callbackUri Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 422 Check HTTP Response Body Json Schema Is ProblemDetails SOL009/NFVMANOLogManagement-API/environment/variables.txt +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ ${AUTH_USAGE} 1 #${FIELD_USAGE} 1 ${NFVMANO_CHECKS_NOTIF_ENDPOINT} 1 ## If true, during subscription, the FUT performs a get to the notification endpoint #${NFVMANO_ALLOWS_DUPLICATE_SUBS} 1 ${NFVMANO_ALLOWS_DUPLICATE_SUBS} 1 ${apiRoot} / ${apiMajorVersion} v1 Loading Loading
SOL009/NFVMANOLogManagement-API/NFVMANOLogManagementKeywords.robot +14 −0 Original line number Diff line number Diff line Loading @@ -479,6 +479,20 @@ Check Postcondition Subscription Is Set Check HTTP Response Status Code Is 200 Send Post Request for Duplicated Subscription Log POST request for duplicated subscription Pass Execution If ${NFVMANO_ALLOWS_DUPLICATE_SUBS}==0 Skipping test as duplicate subscription is not enabled Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} ${template}= Get File jsons/subscriptions.json ${body}= Format String ${template} callback_uri=${callback_uri} callback_endpoint=${callback_endpoint} POST ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions ${body} allow_redirects=false ${output}= Output response Set Suite Variable ${response} ${output} Send Post Request for No Duplicated Subscription Log POST request for duplicated subscription Pass Execution If ${NFVMANO_ALLOWS_DUPLICATE_SUBS}==1 Skipping test as duplicate subscription is enabled Set headers {"Content-Type": "${CONTENT_TYPE_JSON}"} Set headers {"Accept": "${ACCEPT_JSON}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Loading
SOL009/NFVMANOLogManagement-API/Subscriptions.robot +2 −2 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ POST Create request for duplicated Subscription not creating duplicated subscrip ... Config ID: Config_prod_NFV-MANO ... Applicability: The NFV-MANO does not support the creation of duplicated subscriptions ... Post-Conditions: The existing Subscription returned is available in the NFV-MANO Send Post Request for Duplicated Subscription Send Post Request for No Duplicated Subscription Check HTTP Response Status Code Is 303 Check HTTP Response Body Is Empty Check HTTP Response Header Contains Location Loading Loading @@ -210,5 +210,5 @@ POST Create new Subscription - Unprocessable entity ... Applicability: Notification endpoint is unreachable by the NFV-MANO. ... Post-Conditions: none Send Post Request for Subscription with unreachable callbackUri Check HTTP Response Status Code Is 201 Check HTTP Response Status Code Is 422 Check HTTP Response Body Json Schema Is ProblemDetails
SOL009/NFVMANOLogManagement-API/environment/variables.txt +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ ${AUTH_USAGE} 1 #${FIELD_USAGE} 1 ${NFVMANO_CHECKS_NOTIF_ENDPOINT} 1 ## If true, during subscription, the FUT performs a get to the notification endpoint #${NFVMANO_ALLOWS_DUPLICATE_SUBS} 1 ${NFVMANO_ALLOWS_DUPLICATE_SUBS} 1 ${apiRoot} / ${apiMajorVersion} v1 Loading