Skip to content
Snippets Groups Projects
Commit b2b9fd1e authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Merge branch '2.6.1-dev' into '2.6.1-dev-SOL002-VNFIndicator-API'

# Conflicts:
#   SOL002/VNFIndicator-API/VNFIndicators.robot
#   SOL002/VNFIndicator-API/VnfIndicatorsInVnfInstanceId.robot
parent a1c9ac93
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ GET Individual VNF Indicator Subscription
... Test title: Get individual subscription to VNF performance indicators
... Test objective: The objective is to test the retrieval of individual VNF performance indicator subscription and perform a JSON schema validation of the returned subscription data structure
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......@@ -24,7 +24,7 @@ GET Individual VNF Indicator Subscription with invalid resource identifier
... Test title: Get individual subscription to VNF performance indicators
... Test objective: The objective is to test that the retrieval of individual VNF performance indicator subscription fails when using an invalid resource identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......@@ -37,7 +37,7 @@ PUT Individual VNF Indicator Subscription - Method not implemented
... Test title: PUT individual VNF indicator subscription - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify an individual VNF performance indicator subscription
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: The individual VNF indicator subscription is not modified by the operation
......@@ -50,7 +50,7 @@ PATCH Individual VNF Indicator Subscription - Method not implemented
... Test title: PUT individual VNF indicator subscription - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update an individual VNF performance indicator subscription
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: The individual VNF indicator subscription is not modified by the operation
......@@ -63,7 +63,7 @@ POST Individual VNF Indicator Subscription - Method not implemented
... Test title: PUT individual VNF indicator subscription - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify an individual VNF performance indicator subscription
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: The individual VNF indicator subscription is not created by the operation
......@@ -76,7 +76,7 @@ DELETE Individual VNF Indicator Subscription
... Test title: Delete individual subscription to VNF performance indicators
... Test objective: The objective is to test the deletion of an individual VNF performance indicator subscription.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: The subscription to VNF performance indicators is deleted
......@@ -89,7 +89,7 @@ DELETE Individual VNF Indicator Subscription with invalid resource identifier
... Test title: Delete individual subscription to VNF performance indicators
... Test objective: The objective is to test that the deletion of an individual VNF performance indicator subscription fails when using an invalid resource identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.6.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......
......@@ -10,7 +10,7 @@ Get Individual Indicator for VNF Instance
... Test title: Get individual performance indicator for a VNF instance
... Test objective: The objective is to test the retrieval of a performance indicator for a given VNF instance and perform a JSON schema validation of the returned indicator data structure
... Pre-conditions: A VNF instance is instantiated. At least one measure of performance indicator is available for the given VNF instance.
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......@@ -25,7 +25,7 @@ Get Individual Indicator for VNF Instance with invalid indicator identifier
... Test title: Get individual performance indicator for a VNF instance with invalid indicator identifier
... Test objective: The objective is to test that the retrieval of a performance indicator for a given VNF instance fails when using an invalid resource identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. At least one measure of performance indicator is available for the given VNF instance.
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -38,7 +38,7 @@ POST Individual VNF Indicator - Method not implemented
... Test title: POST individual performance indicator for VNF instance - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create a new performance indicator for a VNF instance
... Pre-conditions: A VNF instance is instantiated.
... Reference: clause 8.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -50,7 +50,7 @@ PUT Individual VNF Indicator - Method not implemented
... Test title: PUT individual performance indicator for VNF instance - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify an existing performance indicator for a VNF instance
... Pre-conditions: A VNF instance is instantiated. At least one measure of performance indicator is available for the given VNF instance.
... Reference: clause 8.4.4.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.4.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -62,7 +62,7 @@ PATCH Individual VNF Indicator - Method not implemented
... Test title: PATCH individual performance indicator for VNF instance - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update an existing performance indicator for a VNF instance
... Pre-conditions: A VNF instance is instantiated. At least one measure of performance indicator is available for the given VNF instance.
... Reference: clause 8.4.4.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.4.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -74,7 +74,7 @@ DELETE Individual VNF Indicator - Method not implemented
... Test title: DELETE individual performance indicator indicators for VNF instance - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete an existing performance indicator for a VNF instance
... Pre-conditions: A VNF instance is instantiated. At least one measure of performance indicator is available for the given VNF instance.
... Reference: clause 8.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: The individual performance indicator for the VNF instance is not deleted by the unsuccessful operation
......@@ -82,6 +82,82 @@ DELETE Individual VNF Indicator - Method not implemented
Check HTTP Response Status Code Is 405
Check Postcondition Indicator for VNF instance Exist
Get Individual Performance Indicator
[Documentation] Test ID: 6.3.2.3.7
... Test title: Get Individual Performance Indicator
... Test objective: The objective is to test the retrieval of a performance indicator and perform a JSON schema validation of the returned indicator data structure
... Pre-conditions: At least one measure of performance indicator is available..
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
Get Individual Indicator
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is vnfIndicator
Check HTTP Response Body Includes Requested Indicator ID
Get Individual Performance Indicator with invalid indicator identifier
[Documentation] Test ID: 6.3.2.3.8
... Test title: Get Individual Performance Indicator with invalid indicator identifier
... Test objective: The objective is to test that the retrieval of a performance indicator fails when using an invalid resource identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: At least one measure of performance indicator is available.
... Reference: clause 8.4.4.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Get Individual Indicator with invalid indicator identifier
Check HTTP Response Status Code Is 404
Check HTTP Response Body Json Schema Is ProblemDetails
POST Individual Performance Indicator - Method not implemented
[Documentation] Test ID: 6.3.2.3.9
... Test title: POST Individual Performance Indicator - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create a new performance indicator.
... Pre-conditions:
... Reference: clause 8.4.4.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Send POST Request for individual indicator
Check HTTP Response Status Code Is 405
PUT Individual Performance Indicator - Method not implemented
[Documentation] Test ID: 6.3.2.3.10
... Test title: PUT Individual Performance Indicator - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify an existing performance indicator.
... Pre-conditions: At least one measure of performance indicator is available.
... Reference: clause 8.4.4.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Send PUT Request for individual indicator
Check HTTP Response Status Code Is 405
PATCH Individual Performance Indicator - Method not implemented
[Documentation] Test ID: 6.3.2.3.11
... Test title: PATCH Individual Performance Indicator - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update an existing performance indicator.
... Pre-conditions: At least one measure of performance indicator is available.
... Reference: clause 8.4.4.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Send PATCH Request for individual indicator
Check HTTP Response Status Code Is 405
DELETE Individual Performance Indicator - Method not implemented
[Documentation] Test ID: 6.3.2.3.12
... Test title: DELETE Individual Performance Indicator - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete an existing performance indicator.
... Pre-conditions: At least one measure of performance indicator is available.
... Reference: clause 8.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions:
Send DELETE Request for individual indicator
Check HTTP Response Status Code Is 405
Check PostCondition Individual Indicator exist
*** Keywords ***
Get Individual Indicator for a VNF instance
Log This resource represents a VNF indicator related to a VNF instance.
......@@ -163,3 +239,58 @@ Check Postcondition Indicator for VNF instance Exist
Get Individual Indicator for a VNF instance
Should Be Equal As Strings ${response['body']['vnfInstanceId']} ${vnfInstanceId}
Should Be Equal As Strings ${response['body']['id']} ${indicatorId}
Get Individual Indicator
Log This resource represents a VNF indicator related to a VNF instance.
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/indicators/${indicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Get Individual Indicator with invalid indicator identifier
Log Trying to perform a negative get, using wrong identifier
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/indicators/${erroneousIndicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Send POST Request for individual indicator
Log Trying to perform a POST (method should not be implemented)
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
POST ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}/${notAllowedIndicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Send PUT Request for individual indicator
Log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PUT ${apiRoot}/${apiName}/${apiVersion}/indicators/${indicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Send PATCH Request for individual indicator
Log Trying to perform a PATCH. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PATCH ${apiRoot}/${apiName}/${apiVersion}/indicators/${indicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Send DELETE Request for individual indicator
Log Trying to perform a DELETE. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
DELETE ${apiRoot}/${apiName}/${apiVersion}/indicators/${indicatorId}
${output}= Output response
Set Suite Variable ${response} ${output}
Check PostCondition Individual Indicator exist
Log This resource represents a VNF indicator related to a VNF instance.
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/indicators/${vnfInstanceId}/${indicatorId}
Integer response status 200
\ No newline at end of file
......@@ -17,7 +17,7 @@ GET VNF Indicators Subscriptions
... Test title: GET VNF Indicators Subscriptions
... Test objective: The objective is to test the retrieval of all VNF indicators subscriptions and perform a JSON schema validation of the returned subscriptions data structure
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators
... Post-Conditions: none
......@@ -30,7 +30,7 @@ GET VNF Indicators Subscriptions with attribute-based filter
... Test title: GET VNF Indicators Subscriptions with attribute-based filter
... Test objective: The objective is to test the retrieval of all VNF indicators subscriptions using attribute-based filter and perform a JSON schema and content validation of the returned subscriptions data structure
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators
... Post-Conditions: none
......@@ -44,7 +44,7 @@ GET VNF Indicators Subscriptions with invalid attribute-based filter
... Test title: GET VNF Indicators Subscriptions with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of all VNF indicators subscriptions fails when using invalid attribute-based filter. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators
... Post-Conditions: none
......@@ -57,7 +57,7 @@ GET VNF Indicators Subscriptions with invalid resource endpoint
... Test title: GET VNF Indicators Subscriptions with invalid resource endpoint
... Test objective: The objective is to test that the retrieval of all VNF indicators subscriptions fails when using invalid resource endpoint.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators.
... Post-Conditions: none
......@@ -69,7 +69,7 @@ Create new VNF indicator subscription
... Test title: Create new VNF indicator subscription
... Test objective: The objective is to test the creation of a new VNF indicator subscription perform a JSON schema and content validation of the returned subscriptions data structure
... Pre-conditions: A VNF instance is instantiated.
... Reference: clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators.
... Post-Conditions: The VNF indicator subscription is successfully set and it matches the issued subscription
......@@ -84,7 +84,7 @@ PUT VNF Indicator Subscriptions - Method not implemented
... Test title: PUT VNF Indicator Subscriptions - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify VNF indicator subscriptions
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators.
... Post-Conditions: none
......@@ -96,7 +96,7 @@ PATCH VNF Indicator Subscriptions - Method not implemented
... Test title: PATCH VNF Indicator Subscriptions - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update VNF indicator subscriptions
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators.
... Post-Conditions: none
......@@ -108,13 +108,39 @@ DELETE VNF Indicator Subscriptions - Method not implemented
... Test title: DELETE VNF Indicator Subscriptions - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete VNF indicator subscriptions
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.5.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators.
... Post-Conditions: none
Send Delete Request for VNF Indicator Subscriptions
Check HTTP Response Status Code Is 405
GET VNF Indicators Subscriptions to get Paged Response
[Documentation] Test ID: 6.3.2.4.9
... Test title: GET VNF Indicators Subscriptions to get Paged Response
... Test objective: The objective is to test the retrieval of all VNF indicators subscriptions to get Paged Response.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators
... Post-Conditions: none
Get VNF Indicators Subscriptions
Check HTTP Response Status Code Is 200
Check LINK in Header
GET VNF Indicators Subscriptions - Bad Request Response too Big
[Documentation] Test ID: 6.3.2.4.10
... Test title: GET VNF Indicators Subscriptions - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of all VNF indicators subscriptions fails because response is too big. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. At least one VNF indicator subscription is available in the VNF.
... Reference: clause 8.4.5.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of indicators
... Post-Conditions: none
Get VNF Indicators Subscriptions
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords ***
Get VNF Indicators Subscriptions
Log Trying to get the list of subscriptions
......@@ -235,4 +261,8 @@ Check Notification 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
Clear Requests ${callback_endpoint}
Check LINK in Header
${linkURL}= Get Value From Json ${response.headers} $..Link
Should Not Be Empty ${linkURL}
\ No newline at end of file
......@@ -13,7 +13,7 @@ Get all VNF Indicators
... Test title: Get all VNF Indicators
... Test objective: The objective is to test the retrieval of all the available VNF indicators and perform a JSON schema validation of the collected indicators data structure
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -26,7 +26,7 @@ Get VNF Indicators with attribute-based filter
... Test title: Get VNF Indicators with attribute-based filter
... Test objective: The objective is to test the retrieval of VNF indicators using attribute-based filter, perform a JSON schema validation of the collected indicators data structure, and verify that the retrieved information matches the issued attribute-based filters
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -40,7 +40,7 @@ Get VNF Indicators with invalid attribute-based filter
... Test title: Get VNF Indicators with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of VNF indicators fails when using invalid attribute-based filters, and perform the JSON schema validation of the failed operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -53,7 +53,7 @@ Get all VNF Indicators with malformed authorization token
... Test title: GET all VNF Indicators with malformed authrization token.
... Test objective: The objective is to test that the retrieval of VNF indicators fails when using malformed authorization token
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators. The VNF requires the usage of access tokens for authorizing the API requests.
... Post-Conditions: none
......@@ -65,7 +65,7 @@ Get all VNF Indicators without authorization token
... Test title: GET all VNF Indicators without authorization token
... Test objective: The objective is to test that the retrieval of VNF indicators fails when omitting the authorization token
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators. The VNF requires the usage of access tokens for authorizing the API requests.
... Post-Conditions: none
......@@ -77,7 +77,7 @@ GET all VNF Indicators with expired or revoked authorization token
... Test title: GET all VNF Indicators with expired or revoked authorization token
... Test objective: The objective is to test that the retrieval of VNF indicators fails when using expired or revoked authorization token
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 4.5.3.3, 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators. The VNF requires the usage of access tokens for authorizing the API requests.
... Post-Conditions: none
......@@ -89,7 +89,7 @@ Get all VNF Indicators with invalid resource endpoint
... Test title: GET all VNF Indicators with invalid resource endpoint
... Test objective: The objective is to test that the retrieval of VNF indicators fails when using invalid resource endpoint
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -101,7 +101,7 @@ POST all VNF Indicators - Method not implemented
... Test title: POST all VNF Indicators - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new VNF indicators
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF
... Reference: clause 8.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -113,7 +113,7 @@ PUT all VNF Indicators - Method not implemented
... Test title: PUT all VNF Indicators - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify VNF indicators
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF
... Reference: clause 8.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -125,7 +125,7 @@ PATCH all VNF Indicators - Method not implemented
... Test title: PATCH all VNF Indicators - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update VNF indicators
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF
... Reference: clause 8.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -137,7 +137,7 @@ DELETE all VNF Indicators - Method not implemented
... Test title: DELETE all VNF Indicators - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete VNF indicators
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF
... Reference: clause 8.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.2.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -145,6 +145,32 @@ DELETE all VNF Indicators - Method not implemented
Check HTTP Response Status Code Is 405
Check Postcondition VNF Indicators Exist
Get VNF Indicators to get Paged Response
[Documentation] Test ID: 6.3.2.1.12
... Test title: Get VNF Indicators to get Paged Response
... Test objective: The objective is to test the retrieval of all the available VNF indicators with Paged Response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Get all VNF indicators
Check HTTP Response Status Code Is 200
Check LINK in Header
Get VNF Indicators - Bad Request Response too Big
[Documentation] Test ID: 6.3.2.1.13
... Test title: Get VNF Indicators - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of VNF indicators fails when response is too big, and perform the JSON schema validation of the failed operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of VNF performance indicators are available in the VNF.
... Reference: clause 8.4.2.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Get all VNF indicators
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords ***
Get all VNF indicators
Log The GET method queries multiple VNF indicators
......@@ -273,4 +299,4 @@ Check HTTP Response Body vnfIndicators Matches the requested attribute-based fil
@{attr} = Split String ${POS_FILTER} ,${VAR_SEPERATOR}
@{var_name} = Split String @{attr}[0] ,${SEPERATOR}
@{var_id} = Split String @{attr}[1] ,${SEPERATOR}
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
\ No newline at end of file
Should Be True "${response['body'][0]['name']}"=="@{var_name}[1]" and "${response['body'][0]['vnfInstanceId']}"=="@{var_id}[1]"
......@@ -13,7 +13,7 @@ Get Indicators for VNF Instance
... Test title: Get all performance indicators for a VNF instance
... Test objective: The objective is to test the retrieval of all performance indicators for a given VNF instance and perform a JSON schema validation of the returned indicators data structure
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......@@ -27,7 +27,7 @@ GET Indicators for VNF Instance with attribute-based filter
... Test title: Get all performance indicators for a VNF instance with attribute-based filter
... Test objective: The objective is to test the retrieval of all performance indicators for a given VNF instance using attribute-based filter and perform a JSON schema validation of the returned indicators data structure
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
......@@ -41,7 +41,7 @@ Get Indicators for VNF Instance with invalid attribute-based filter
... Test title: Get all performance indicators for a VNF instance with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of all performance indicators for a given VNF instance fails using invalid attribute-based filter. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -54,7 +54,7 @@ Get Indicators for VNF Instance with invalid resource identifier
... Test title: Get all performance indicators for a VNF instance with invalid resource identifier
... Test objective: The objective is to test that the retrieval of all performance indicators for a given VNF instance fails when using invalid resource identifier. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -67,7 +67,7 @@ POST Indicators for VNF instance - Method not implemented
... Test title: POST performance indicators for VNF instance - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new performance indicators for a VNF instance
... Pre-conditions: A VNF instance is instantiated.
... Reference: clause 8.4.3.3.1 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.1 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -79,7 +79,7 @@ PUT Indicators for VNF instance - Method not implemented
... Test title: PUT performance indicators for VNF instance - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify existing performance indicators for a VNF instance
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -91,7 +91,7 @@ PATCH Indicators for VNF instance - Method not implemented
... Test title: PATCH performance indicators for VNF instance - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update existing performance indicators for a VNF instance
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.4 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
......@@ -103,13 +103,39 @@ DELETE Indicators for VNF instance - Method not implemented
... Test title: DELETE performance indicators for VNF instance - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete performance indicators for a VNF instance
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.4.1
... Reference: clause 8.4.3.3.5 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: The indicators for the VNF instance are not deleted by the unsuccessful operation
Send DELETE Request for indicators in VNF instance
Check HTTP Response Status Code Is 405
Check Postcondition Indicators for VNF instance Exist
Get Indicators for VNF Instance to get Paged Response
[Documentation] Test ID: 6.3.2.2.9
... Test title: Get Indicators for VNF Instance to get Paged Response
... Test objective: The objective is to test the retrieval of all performance indicators for a given VNF instance to get paged response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators
... Post-Conditions: none
Get all indicators for a VNF instance
Check HTTP Response Status Code Is 200
Check LINK in Header
Get Indicators for VNF Instance - Bad Request Response too Big
[Documentation] Test ID 6.3.2.2.10
... Test title: Get Indicators for VNF Instance - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of all performance indicators for a given VNF instance fails when response is too big. The test also checks the JSON schema of the unsuccessful operation HTTP response.
... Pre-conditions: A VNF instance is instantiated. One or more measures of performance indicators are available for the given VNF instance.
... Reference: clause 8.4.3.3.2 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VE
... Applicability: The VNF supports the generation and maintenance of performance indicators.
... Post-Conditions: none
Get all indicators for a VNF instance
Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords ***
Get all indicators for a VNF instance
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment