Skip to content
Snippets Groups Projects
Commit d546c58f authored by Sana Zulfiqar's avatar Sana Zulfiqar Committed by Giacomo Bernini
Browse files

added deltas 161 -> 165

parent ca6b373c
No related branches found
No related tags found
2 merge requests!199Merge "3.3.1 dev" into "release 3" master,!160SOL003 VNF Performance Management - Implementation of deltas between v3.3.1 and v2.7.1
This commit is part of merge request !160. Comments created here will be created in the context of that merge request.
...@@ -11,7 +11,7 @@ GET individual VNF Performance Job ...@@ -11,7 +11,7 @@ GET individual VNF Performance Job
... Test title: Get individual VNF Performance Job ... Test title: Get individual VNF Performance Job
... Test objective: The objective is to test the retrieval of an individual VNF performance monitoring job and perform a JSON schema and content validation of the collected job data structure ... Test objective: The objective is to test the retrieval of an individual VNF performance monitoring job and perform a JSON schema and content validation of the collected job data structure
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -25,7 +25,7 @@ GET individual VNF Performance Job with invalid resource identifier ...@@ -25,7 +25,7 @@ GET individual VNF Performance Job with invalid resource identifier
... Test title: Get individual VNF Performance Job with invalid resource identifier ... Test title: Get individual VNF Performance Job with invalid resource identifier
... Test objective: The objective is to test that the retrieval of an individual VNF performance monitoring job fails when using an invalid resource identifier, and perform the JSON schema validation of the failed operation HTTP response ... Test objective: The objective is to test that the retrieval of an individual VNF performance monitoring job fails when using an invalid resource identifier, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -38,7 +38,7 @@ DELETE Individual VNF Performance Job ...@@ -38,7 +38,7 @@ DELETE Individual VNF Performance Job
... Test title: Delete Individual VNF Performance Job ... Test title: Delete Individual VNF Performance Job
... Test objective: The objective is to test the deletion of an individual VNF performance monitoring job ... Test objective: The objective is to test the deletion of an individual VNF performance monitoring job
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Job is no more available in the VNFM ... Post-Conditions: The VNF Performance Job is no more available in the VNFM
...@@ -64,7 +64,7 @@ POST Individual VNF Performance Job - Method not implemented ...@@ -64,7 +64,7 @@ POST Individual VNF Performance Job - Method not implemented
... Test title: POST Individual VNF Performance Job - method not implemented ... Test title: POST Individual VNF Performance Job - method not implemented
... Test objective: The objective is to test that POST method is not allowed to create a new VNF Performance Monitoring Job ... Test objective: The objective is to test that POST method is not allowed to create a new VNF Performance Monitoring Job
... Pre-conditions: A VNF instance is instantiated ... Pre-conditions: A VNF instance is instantiated
... Reference: Clause 6.4.3.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -88,7 +88,7 @@ PATCH Individual VNF Performance Job ...@@ -88,7 +88,7 @@ PATCH Individual VNF Performance Job
... Test title: PATCH Individual VNF Performance Job ... Test title: PATCH Individual VNF Performance Job
... Test objective: The objective is to test that PATCH method allows to modify individual performace management job ... Test objective: The objective is to test that PATCH method allows to modify individual performace management job
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: ... Post-Conditions:
...@@ -101,14 +101,29 @@ PATCH Individual VNF Performance Job - Precondition failed ...@@ -101,14 +101,29 @@ PATCH Individual VNF Performance Job - Precondition failed
... Test title: PATCH Individual VNF Performance Job - Precondition failed ... Test title: PATCH Individual VNF Performance Job - Precondition failed
... Test objective: The objective is to attempt to Modify an individual alarm resource, where the precondition was not met. ... Test objective: The objective is to attempt to Modify an individual alarm resource, where the precondition was not met.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation ... Post-Conditions: The VNF Performance Job is not modified by the operation
Send Patch request for individual VNF Performance Job Send Patch request for individual VNF Performance Job
Check HTTP Response Status Code Is 412 Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails Check HTTP Response Body Json Schema Is ProblemDetails
Check Postcondition VNF Performance Job is Unmodified (Implicit) Check Postcondition VNF Performance Job is Unmodified (Implicit)
PATCH Individual VNF Performance Job - Unprocessable Entity
[Documentation] Test ID: 7.3.4.2.9
... Test title: PATCH Individual VNF Performance Job - Unprocessable Entity
... Test objective: The objective is to test that PATCH method cannot modify an exsisting individual PM job resource when a request contains syntactically correct data but the data cannot be processed.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions:
Send Patch request for individual VNF Performance Job with unprocessable entity
Check HTTP Response Status Code Is 422
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords *** *** Keywords ***
GET individual VNF Performance Job GET individual VNF Performance Job
Log Trying to get a Pm Job present in the NFVO Catalogue Log Trying to get a Pm Job present in the NFVO Catalogue
...@@ -170,6 +185,16 @@ Send Patch request for individual VNF Performance Job ...@@ -170,6 +185,16 @@ Send Patch request for individual VNF Performance Job
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
Send Patch request for individual VNF Performance Job with unprocessable entity
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/PMJobModifications.json
${body}= Format String ${template} callback_uri=${unreachable_callback_uri}:${callback_port}
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/pm_jobs/${pmJobId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Performance Job is not Created Check Postcondition VNF Performance Job is not Created
Log Trying to get a new Pm Job Log Trying to get a new Pm Job
......
...@@ -4,6 +4,7 @@ Resource environment/variables.txt # Generic Parameters ...@@ -4,6 +4,7 @@ Resource environment/variables.txt # Generic Parameters
Library JSONLibrary Library JSONLibrary
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false
Library OperatingSystem Library OperatingSystem
Library String
*** Test Cases *** *** Test Cases ***
GET Individual Threshold GET Individual Threshold
...@@ -11,7 +12,7 @@ GET Individual Threshold ...@@ -11,7 +12,7 @@ GET Individual Threshold
... Test title: GET Individual Threshold ... Test title: GET Individual Threshold
... Test objective: The objective is to test the retrieval of an individual VNF performance threshold and perform a JSON schema and content validation of the collected threshold data structure ... Test objective: The objective is to test the retrieval of an individual VNF performance threshold and perform a JSON schema and content validation of the collected threshold data structure
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -25,7 +26,7 @@ GET Individual Threshold with invalid resource identifier ...@@ -25,7 +26,7 @@ GET Individual Threshold with invalid resource identifier
... Test title: GET Individual Threshold with invalid resource identifier ... Test title: GET Individual Threshold with invalid resource identifier
... Test objective: The objective is to test that the retrieval of an individual VNF performance threshold fails when using an invalid resource identifier ... Test objective: The objective is to test that the retrieval of an individual VNF performance threshold fails when using an invalid resource identifier
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -38,7 +39,7 @@ DELETE Individual Threshold ...@@ -38,7 +39,7 @@ DELETE Individual Threshold
... Test title: DELETE Individual Threshold ... Test title: DELETE Individual Threshold
... Test objective: The objective is to test the deletion of an individual VNF performance threshold ... Test objective: The objective is to test the deletion of an individual VNF performance threshold
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Threshold is not available anymore in the VNFM ... Post-Conditions: The VNF Performance Threshold is not available anymore in the VNFM
...@@ -51,7 +52,7 @@ DELETE Individual Threshold with invalid resource identifier ...@@ -51,7 +52,7 @@ DELETE Individual Threshold with invalid resource identifier
... Test title: DELETE Individual Threshold with invalid resource identifier ... Test title: DELETE Individual Threshold with invalid resource identifier
... Test objective: The objective is to test the deletion of an individual VNF performance threshold ... Test objective: The objective is to test the deletion of an individual VNF performance threshold
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -64,7 +65,7 @@ POST Individual Threshold - Method not implemented ...@@ -64,7 +65,7 @@ POST Individual Threshold - Method not implemented
... Test title: POST Individual Threshold - Method not implemented ... Test title: POST Individual Threshold - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create a new VNF Performance Threshold ... Test objective: The objective is to test that POST method is not allowed to create a new VNF Performance Threshold
... Pre-conditions: A VNF instance is instantiated ... Pre-conditions: A VNF instance is instantiated
... Reference: Clause 6.4.6.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -76,7 +77,7 @@ PUT Individual Threshold - Method not implemented ...@@ -76,7 +77,7 @@ PUT Individual Threshold - Method not implemented
... Test title: PUT Individual Threshold - Method not implemented ... Test title: PUT Individual Threshold - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to update an existing VNF Performance threshold ... Test objective: The objective is to test that PUT method is not allowed to update an existing VNF Performance threshold
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -88,7 +89,7 @@ PATCH Individual Threshold ...@@ -88,7 +89,7 @@ PATCH Individual Threshold
... Test title: PATCH Individual Threshold ... Test title: PATCH Individual Threshold
... Test objective: The objective is to test that PATCH method allows to modify an Individual threshold resource. ... Test objective: The objective is to test that PATCH method allows to modify an Individual threshold resource.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: ... Post-Conditions:
...@@ -101,7 +102,7 @@ PATCH Individual Threshold - Precondition failed ...@@ -101,7 +102,7 @@ PATCH Individual Threshold - Precondition failed
... Test title: PATCH Individual Threshold - Preconition failed ... Test title: PATCH Individual Threshold - Preconition failed
... Test objective: The objective is to attempt to modify an individual threshold resource, where the precondition was not met. ... Test objective: The objective is to attempt to modify an individual threshold resource, where the precondition was not met.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNFM.
... Reference: Clause 6.4.6.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.6.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation ... Post-Conditions: The VNF Performance Job is not modified by the operation
...@@ -109,6 +110,21 @@ PATCH Individual Threshold - Precondition failed ...@@ -109,6 +110,21 @@ PATCH Individual Threshold - Precondition failed
Check HTTP Response Status Code Is 412 Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails Check HTTP Response Body Json Schema Is ProblemDetails
Check Postcondition VNF Performance Threshold is Unmodified (Implicit) Check Postcondition VNF Performance Threshold is Unmodified (Implicit)
PATCH Individual Threshold - Unprocessible Entity
[Documentation] Test ID: 7.3.4.5.9
... Test title: PATCH Individual Threshold - Unprocessible Entity
... Test objective: The objective is to test that PATCH method cannot modify an individual threshold resource when a request contains syntactically correct data but the data cannot be processed.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.6.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Send Patch request for individual VNF Performance Threshold with unprocessable entity
Check HTTP Response Status Code Is 422
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords *** *** Keywords ***
GET Individual VNF Performance Threshold GET Individual VNF Performance Threshold
Log Trying to get a Threhsold present in the VNFM Log Trying to get a Threhsold present in the VNFM
...@@ -167,6 +183,17 @@ Send Patch request for individual VNF Performance Threshold ...@@ -167,6 +183,17 @@ Send Patch request for individual VNF Performance Threshold
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${thresholdId} PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${thresholdId}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
Send Patch request for individual VNF Performance Threshold with unprocessable entity
Log Trying to PATCH threshold
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/ThresholdModifications.json
${body}= Format String ${template} callback_uri=${unreachable_callback_uri}:${callback_port}
PATCH ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds/${thresholdId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Check Postcondition VNF Performance Threshold is Unmodified (Implicit) Check Postcondition VNF Performance Threshold is Unmodified (Implicit)
Log Check postconidtion threshold not modified Log Check postconidtion threshold not modified
......
...@@ -13,7 +13,7 @@ GET all VNF Performance Monitoring Jobs ...@@ -13,7 +13,7 @@ GET all VNF Performance Monitoring Jobs
... Test title: GET all VNF Performance Monitoring Jobs ... Test title: GET all VNF Performance Monitoring Jobs
... Test objective: The objective is to test the retrieval of all the available VNF performance monitoring jobs and perform a JSON schema and content validation of the collected jobs data structure ... Test objective: The objective is to test the retrieval of all the available VNF performance monitoring jobs and perform a JSON schema and content validation of the collected jobs data structure
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -27,7 +27,7 @@ GET VNF Performance Monitoring Jobs with attribute-based filter ...@@ -27,7 +27,7 @@ GET VNF Performance Monitoring Jobs with attribute-based filter
... Test title: GET all VNF Performance Monitoring Jobs with attribute-based filter ... Test title: GET all VNF Performance Monitoring Jobs with attribute-based filter
... Test objective: The objective is to test the retrieval of VNF performance monitoring jobs using attribute-based filter, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued attribute-based filter ... Test objective: The objective is to test the retrieval of VNF performance monitoring jobs using attribute-based filter, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued attribute-based filter
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -41,7 +41,7 @@ GET all VNF Performance Monitoring Jobs with all_fields attribute selector ...@@ -41,7 +41,7 @@ GET all VNF Performance Monitoring Jobs with all_fields attribute selector
... Test title: GET all VNF Performance Monitoring Jobs with all_fields attribute selector ... Test title: GET all VNF Performance Monitoring Jobs with all_fields attribute selector
... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs all_fields attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued all_fileds selector ... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs all_fields attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued all_fileds selector
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -55,7 +55,7 @@ GET all VNF Performance Monitoring Jobs with exclude_default attribute selector ...@@ -55,7 +55,7 @@ GET all VNF Performance Monitoring Jobs with exclude_default attribute selector
... Test title: GET all VNF Performance Monitoring Jobs with exclude_default attribute selector ... Test title: GET all VNF Performance Monitoring Jobs with exclude_default attribute selector
... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs exclude_default attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued exclude_default selector ... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs exclude_default attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued exclude_default selector
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -69,7 +69,7 @@ GET all VNF Performance Monitoring Jobs with fields attribute selector ...@@ -69,7 +69,7 @@ GET all VNF Performance Monitoring Jobs with fields attribute selector
... Test title: GET all VNF Performance Monitoring Jobs with fields attribute selector ... Test title: GET all VNF Performance Monitoring Jobs with fields attribute selector
... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs fields attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued fields selector ... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs fields attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued fields selector
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: The VNFM supports the use of exclude_fields attribute selector ... Applicability: The VNFM supports the use of exclude_fields attribute selector
... Post-Conditions: none ... Post-Conditions: none
...@@ -97,7 +97,7 @@ GET VNF Performance Monitoring Jobs with invalid attribute-based filter ...@@ -97,7 +97,7 @@ GET VNF Performance Monitoring Jobs with invalid attribute-based filter
... Test title: GET VNF Performance Monitoring Jobs with invalid attribute-based filter ... Test title: GET VNF Performance Monitoring Jobs with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of VNF performance monitoring jobs fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response ... Test objective: The objective is to test that the retrieval of VNF performance monitoring jobs fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -122,7 +122,7 @@ Create new VNF Performance Monitoring Job ...@@ -122,7 +122,7 @@ Create new VNF Performance Monitoring Job
... Test title: Create a new VNF Performance Monitoring Job ... Test title: Create a new VNF Performance Monitoring Job
... Test objective: The objective is to test the creation of a new VNF performance monitoring job and perform the JSON schema validation of the returned job data structure ... Test objective: The objective is to test the creation of a new VNF performance monitoring job and perform the JSON schema validation of the returned job data structure
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Job is successfully created on the VNFM ... Post-Conditions: The VNF Performance Job is successfully created on the VNFM
...@@ -136,7 +136,7 @@ PUT all VNF Performance Monitoring Jobs - Method not implemented ...@@ -136,7 +136,7 @@ PUT all VNF Performance Monitoring Jobs - Method not implemented
... Test title: PUT all VNF Performance Monitoring Jobs - Method not implemented ... Test title: PUT all VNF Performance Monitoring Jobs - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify VNF Performance Monitoring Jobs ... Test objective: The objective is to test that PUT method is not allowed to modify VNF Performance Monitoring Jobs
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VE ... Config ID: Config_prod_VE
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -148,7 +148,7 @@ PATCH all VNF Performance Monitoring Jobs - (Method not implemented) ...@@ -148,7 +148,7 @@ PATCH all VNF Performance Monitoring Jobs - (Method not implemented)
... Test title: PATCH all VNF Performance Monitoring Jobs - Method not implemented ... Test title: PATCH all VNF Performance Monitoring Jobs - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update VNF Performance Monitoring Jobs ... Test objective: The objective is to test that PATCH method is not allowed to update VNF Performance Monitoring Jobs
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VE ... Config ID: Config_prod_VE
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -160,7 +160,7 @@ DELETE all VNF Performance Monitoring Jobs - Method not implemented ...@@ -160,7 +160,7 @@ DELETE all VNF Performance Monitoring Jobs - Method not implemented
... Test title: DELETE all VNF Performance Monitoring Jobs - Method not implemented ... Test title: DELETE all VNF Performance Monitoring Jobs - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to update VNF Performance Monitoring Jobs ... Test objective: The objective is to test that DELETE method is not allowed to update VNF Performance Monitoring Jobs
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VE ... Config ID: Config_prod_VE
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -173,7 +173,7 @@ GET all VNF Performance Monitoring Jobs as Paged Response ...@@ -173,7 +173,7 @@ GET all VNF Performance Monitoring Jobs as Paged Response
... Test title: GET all VNF Performance Monitoring Jobs as Paged Response ... Test title: GET all VNF Performance Monitoring Jobs as Paged Response
... Test objective: The objective is to test the retrieval of all the available VNF performance monitoring jobs as Paged Response. ... Test objective: The objective is to test the retrieval of all the available VNF performance monitoring jobs as Paged Response.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -186,7 +186,7 @@ GET VNF Performance Monitoring Jobs - Bad Request Response too Big ...@@ -186,7 +186,7 @@ GET VNF Performance Monitoring Jobs - Bad Request Response too Big
... Test title: GET VNF Performance Monitoring Jobs - Bad Request Response too Big ... Test title: GET VNF Performance Monitoring Jobs - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of VNF performance monitoring jobs fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response. ... Test objective: The objective is to test that the retrieval of VNF performance monitoring jobs fails because 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 VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -199,7 +199,7 @@ GET all VNF Performance Monitoring Jobs with fields and exclude_default attribut ...@@ -199,7 +199,7 @@ GET all VNF Performance Monitoring Jobs with fields and exclude_default attribut
... Test title: GET all VNF Performance Monitoring Jobs with fields and exclude_default attribute selector ... Test title: GET all VNF Performance Monitoring Jobs with fields and exclude_default attribute selector
... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs fields and exclude_default attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued fields selector ... Test objective: The objective is to test the retrieval of all VNF performance monitoring jobs fields and exclude_default attribute selector, perform a JSON schema validation of the collected jobs data structure, and verify that the retrieved information matches the issued fields selector
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: The VNFM supports the use of fields and exclude_fields attribute selector ... Applicability: The VNFM supports the use of fields and exclude_fields attribute selector
... Post-Conditions: none ... Post-Conditions: none
...@@ -208,6 +208,19 @@ GET all VNF Performance Monitoring Jobs with fields and exclude_default attribut ...@@ -208,6 +208,19 @@ GET all VNF Performance Monitoring Jobs with fields and exclude_default attribut
Check HTTP Response Body Json Schema Is PmJobs Check HTTP Response Body Json Schema Is PmJobs
Check HTTP Response Body PmJobs Matches the requested fields selector Check HTTP Response Body PmJobs Matches the requested fields selector
POST Create new VNF Performance Monitoring Job - Unprocessable Entity
[Documentation] Test ID: 7.3.4.1.16
... Test title: POST Create new VNF Performance Monitoring Job - Unprocessable Entity
... Test objective: The objective is to test the creation of a new VNF performance monitoring job fails when a request contains syntactically correct data but the data cannot be processed.
... Pre-conditions: none
... Reference: clause 6.4.2.3.1 - ETSI GS NFV-SOL 003 [1] V3.3.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Send Post Request for VNF Performance Monitoring Job with unprocessable entity
Check HTTP Response Status Code Is 422
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords *** *** Keywords ***
GET all VNF Performance Monitoring Jobs GET all VNF Performance Monitoring Jobs
Log Trying to get all PM Jobs present in the VNFM Log Trying to get all PM Jobs present in the VNFM
...@@ -407,4 +420,15 @@ Check HTTP Response Body Json Schema Is ...@@ -407,4 +420,15 @@ Check HTTP Response Body Json Schema Is
Check LINK in Header Check LINK in Header
${linkURL}= Get Value From Json ${response['headers']} $..Link ${linkURL}= Get Value From Json ${response['headers']} $..Link
Should Not Be Empty ${linkURL} Should Not Be Empty ${linkURL}
\ No newline at end of file
Send Post Request for VNF Performance Monitoring Job with unprocessable entity
Log trying to create a new PM Job
Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${template}= Get File jsons/CreatePmJobRequest.json
${body}= Format String ${template} objectInstanceIds=${objectInstanceIds} callback_uri=${unreachable_callback_uri}:${callback_port}
POST ${apiRoot}/${apiName}/${apiMajorVersion}/pm_jobs ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
...@@ -12,7 +12,7 @@ GET All Performance Thresholds ...@@ -12,7 +12,7 @@ GET All Performance Thresholds
... Test title: GET All Performance Thresholds ... Test title: GET All Performance Thresholds
... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds and perform a JSON schema validation of the collected thresholds data structure ... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds and perform a JSON schema validation of the collected thresholds data structure
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -25,7 +25,7 @@ GET Performance Thresholds with attribute-based filter ...@@ -25,7 +25,7 @@ GET Performance Thresholds with attribute-based filter
... Test title: GET Performance Thresholds with attribute-based filter ... Test title: GET Performance Thresholds with attribute-based filter
... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds when using attribute-based filters, perform a JSON schema validation of the collected thresholds data structure, and verify that the retrieved information matches the issued attribute-based filter ... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds when using attribute-based filters, perform a JSON schema validation of the collected thresholds data structure, and verify that the retrieved information matches the issued attribute-based filter
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -39,7 +39,7 @@ GET Performance Thresholds with invalid attribute-based filter ...@@ -39,7 +39,7 @@ GET Performance Thresholds with invalid attribute-based filter
... Test title: GET Performance Thresholds with invalid attribute-based filter ... Test title: GET Performance Thresholds with invalid attribute-based filter
... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response ... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -51,7 +51,7 @@ GET Performance Thresholds with invalid resource endpoint ...@@ -51,7 +51,7 @@ GET Performance Thresholds with invalid resource endpoint
... Test title: GET Performance Thresholds with invalid resource endpoint ... Test title: GET Performance Thresholds with invalid resource endpoint
... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid resource endpoint, and perform the JSON schema validation of the failed operation HTTP response ... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails when using invalid resource endpoint, and perform the JSON schema validation of the failed operation HTTP response
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -64,7 +64,7 @@ Create new Performance Threshold ...@@ -64,7 +64,7 @@ Create new Performance Threshold
... Test title: Create new Performance Threshold ... Test title: Create new Performance Threshold
... Test objective: The objective is to test the creation of a new VNF performance threshold and perform the JSON schema validation of the returned threshold data structure ... Test objective: The objective is to test the creation of a new VNF performance threshold and perform the JSON schema validation of the returned threshold data structure
... Pre-conditions: A VNF instance is instantiated. ... Pre-conditions: A VNF instance is instantiated.
... Reference: Clause 6.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF Performance Threshold is successfully created on the VNFM ... Post-Conditions: The VNF Performance Threshold is successfully created on the VNFM
...@@ -79,7 +79,7 @@ PUT Performance Thresholds - Method not implemented ...@@ -79,7 +79,7 @@ PUT Performance Thresholds - Method not implemented
... Test title: PUT Performance Thresholds - Method not implemented ... Test title: PUT Performance Thresholds - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify VNF Performance Thresholds ... Test objective: The objective is to test that PUT method is not allowed to modify VNF Performance Thresholds
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNF. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNF.
... Reference: Clause 6.4.5.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.3 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -91,7 +91,7 @@ PATCH Performance Thresholds - Method not implemented ...@@ -91,7 +91,7 @@ PATCH Performance Thresholds - Method not implemented
... Test title: PATCH Performance Thresholds - Method not implemented ... Test title: PATCH Performance Thresholds - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to modify VNF Performance Thresholds ... Test objective: The objective is to test that PATCH method is not allowed to modify VNF Performance Thresholds
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.4 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -103,7 +103,7 @@ DELETE Performance Thresholds - Method not implemented ...@@ -103,7 +103,7 @@ DELETE Performance Thresholds - Method not implemented
... Test title: DELETE Performance Thresholds - Method not implemented ... Test title: DELETE Performance Thresholds - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to update VNF Performance Thresholds ... Test objective: The objective is to test that DELETE method is not allowed to update VNF Performance Thresholds
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: The VNF performance thresholds are not deleted by the failed operation ... Post-Conditions: The VNF performance thresholds are not deleted by the failed operation
...@@ -116,7 +116,7 @@ GET All Performance Thresholds as Paged Response ...@@ -116,7 +116,7 @@ GET All Performance Thresholds as Paged Response
... Test title: GET All Performance Thresholds as Paged Response ... Test title: GET All Performance Thresholds as Paged Response
... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds as a Paged Response. ... Test objective: The objective is to test the retrieval of all the available VNF performance thresholds as a Paged Response.
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
...@@ -129,13 +129,27 @@ GET Performance Thresholds - Bad Request Response too Big ...@@ -129,13 +129,27 @@ GET Performance Thresholds - Bad Request Response too Big
... Test title: GET Performance Thresholds - Bad Request Response too Big ... Test title: GET Performance Thresholds - Bad Request Response too Big
... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response ... Test objective: The objective is to test that the retrieval of VNF performance thresholds fails because 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 VNF performance thresholds are set in the VNFM. ... Pre-conditions: A VNF instance is instantiated. One or more VNF performance thresholds are set in the VNFM.
... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1 ... Reference: Clause 6.4.5.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
GET all Performance Thresholds GET all Performance Thresholds
Check HTTP Response Status Code Is 400 Check HTTP Response Status Code Is 400
Check HTTP Response Body Json Schema Is ProblemDetails Check HTTP Response Body Json Schema Is ProblemDetails
POST create new Performance Threshold - Unprocessable Entity
[Documentation] Test ID: 7.3.4.4.11
... Test title: POST create new Performance Threshold - Unprocessable Entity
... Test objective: The objective is to test that creation of new VNF performance threshold fails when a request contains syntactically correct data but the data cannot be processed.
... Pre-conditions: A VNF instance is instantiated.
... Reference: Clause 6.4.5.3.1 - ETSI GS NFV-SOL 003 [1] v3.3.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: none
Send Post Request Create new Performance Threshold with unprocessable entity
Check HTTP Response Status Code Is 422
Check HTTP Response Body Json Schema Is ProblemDetails
*** Keywords *** *** Keywords ***
GET all Performance Thresholds GET all Performance Thresholds
Log Trying to get all thresholds present in the VNFM Log Trying to get all thresholds present in the VNFM
...@@ -179,6 +193,18 @@ Send Post Request Create new Performance Threshold ...@@ -179,6 +193,18 @@ Send Post Request Create new Performance Threshold
POST ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds ${request} POST ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds ${request}
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
Send Post Request Create new Performance Threshold with unprocessable entity
Log trying to create a new Threshold
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Set Headers {"Accept": "${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
${template}= Get File jsons/CreateThresholdRequest.json
${body}= Format String ${template} objectInstanceIds=${objectInstanceIds} callback_uri=${unreachable_callback_uri}:${callback_port}
POST ${apiRoot}/${apiName}/${apiMajorVersion}/thresholds ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Send PUT Request for all Performance Thresholds Send PUT Request for all Performance Thresholds
Log PUT THresholds Log PUT THresholds
......
...@@ -22,6 +22,7 @@ ${apiName} vnfpm ...@@ -22,6 +22,7 @@ ${apiName} vnfpm
${callback_port} 9091 ${callback_port} 9091
${callback_uri} http://172.22.1.7:${callback_port} ${callback_uri} http://172.22.1.7:${callback_port}
${unreachable_callback_uri} http://not-reachable-uri
${callback_endpoint} /vnfpm/subscriptions ${callback_endpoint} /vnfpm/subscriptions
${callback_endpoint_error} /subs_404 ${callback_endpoint_error} /subs_404
${sleep_interval} 20s ${sleep_interval} 20s
......
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
"performanceMetricGroup": [], "performanceMetricGroup": [],
"collectionPeriod": 10, "collectionPeriod": 10,
"reportingPeriod": 30 "reportingPeriod": 30
}} }},
"callbackUri": "{callback_uri}"
}} }}
\ No newline at end of file
...@@ -8,5 +8,6 @@ ...@@ -8,5 +8,6 @@
"hysteresis": 50 "hysteresis": 50
}} }}
}} }},
"callbackUri": "{callback_uri}"
}} }}
\ No newline at end of file
{ {
"callbackUri":"127.0.0.3" "callbackUri": "{callback_uri}"
} }
\ No newline at end of file
{ {
"callbackUri":"127.0.0.1" "callbackUri": "{callback_uri}"
} }
\ No newline at end of file
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