Changes for SOL002/VNFIndicator-API/Subscriptions.robot: 65 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -141,6 +141,45 @@ GET VNF Indicators Subscriptions - Bad Request Response too Big
Check HTTP Response Status Code Is400
Check HTTP Response Body Json Schema IsProblemDetails
POST Create a new Subscription - Unprocessable Entity
[Documentation]Test ID: 6.3.2.4.11
...Test title: POST Create a new Subscription - Unprocessable Entity
...Test objective: The objective is to test that content type of the payload body is supported and the payload body of a request contains syntactically correct data but the data cannot be processed.
...re-conditions: none
...Reference: Clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VE
...Applicability: none
...Post-Conditions: none
Send Post Request for VNF Indicator Subscription
Check HTTP Response Status Code Is422
Check HTTP Response Body Json Schema IsProblemDetails
Create new VNF indicator Subscription - DUPLICATION
[Documentation]Test ID: 6.3.2.4.12
...Test title: POST Create a new subscription - DUPLICATION
...Test objective: The POST method creates a new subscription even if an existing subscription to same content exist
...Pre-conditions: none
...Reference: Clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VE
...Applicability: SUT should support duplication of subscription creation
...Post-Conditions: in response header Location shall not be null
Post Create subscription - DUPLICATION
Check HTTP Response Status Code Is201
Check HTTP Response Body Json Schema IsVnfIndicatorSubscription
Create new VNF indicator Subscription - NO-DUPLICATION
[Documentation]Test ID: 6.3.2.4.13
...Test title: POST Create a new subscription - NO-DUPLICATION
...Test objective: The POST method creates a new subscription even if an existing subscription to same content exist
...Pre-conditions: none
...Reference: Clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
...Config ID: Config_prod_VE
...Applicability: SUT should not support duplication of subscription creation
...Post-Conditions: in response header Location shall not be null
Post Create subscription - NO-DUPLICATION
Check HTTP Response Status Code Is303
Check Operation Occurrence Id
*** Keywords ***
Get VNF Indicators Subscriptions
LogTrying to get the list of subscriptions
@@ -266,3 +305,29 @@ Check Notification Endpoint
Check LINK in Header
${linkURL}=Get Value From Json${response['headers']}$..Link
Should Not Be Empty${linkURL}
Post Create subscription - DUPLICATION
LogTrying to create a subscription with an already created content
Pass Execution If${VNFM_CHECKS_NOTIF_ENDPOINT}== 0VNFM is not permitting duplication. Skipping the test
Set Headers{"Accept": "${ACCEPT_JSON}"}
Set Headers{"Content-Type": "${CONTENT_TYPE_JSON}"}
Run Keyword If${AUTH_USAGE}== 1Set Headers{"Authorization": "${AUTHORIZATION}"}