Skip to content
Snippets Groups Projects
Commit b795b06b authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

new test cases added for IndividualPmJob

parent 05e93ed6
No related branches found
No related tags found
No related merge requests found
*** Settings ***
Library JSONSchemaLibrary schemas/
Resource environment/variables.txt # Generic Parameters
Library JSONLibrary
Resource environment/IndividualPmJob.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false
Library JSONSchemaLibrary schemas/
Resource environment/variables.txt # Generic Parameters
Library JSONLibrary
Resource environment/IndividualPmJob.txt
Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT} ssl_verify=false
Library OperatingSystem
Library DependencyLibrary
*** Test Cases ***
GET individual VNF Performance Job
......@@ -77,7 +80,7 @@ PUT Individual VNF Performance Job - Method not implemented
... Test title: PUT Individual VNF Performance Job - method not implemented
... Test objective: The objective is to test that PUT method is not allowed to update an existing VNF Performance Monitoring Job
... 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 002 [2] v2.6.1
... Reference: Clause 6.4.3.3.3 - ETSI GS NFV-SOL 002 [2] v2.6.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation
......@@ -85,19 +88,33 @@ PUT Individual VNF Performance Job - Method not implemented
Check HTTP Response Status Code Is 405
Check Postcondition VNF Performance Job is Unmodified (Implicit)
PATCH Individual VNF Performance Job - Method not implemented
PATCH Individual VNF Performance Job
[Documentation] Test ID: 6.3.3.2.7
... Test title: PATCH Individual VNF Performance Job - method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to modify an existing new VNF Performance Monitoring Job
... Test title: PATCH Individual VNF Performance Job
... Test objective: The objective is to test that PATCH method allows to modify an exsisting individual PM job resource.
... 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 002 [2] v2.6.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation
... Post-Conditions:
Send Patch request for individual VNF Performance Job
Check HTTP Response Status Code Is 405
Check Postcondition VNF Performance Job is Unmodified (Implicit)
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is PMJobModification
PATCH Individual VNF Performance Job - Precondition failed
[Documentation] Test ID: 6.3.3.2.8
... 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
... 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 002 [2] v2.6.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Post-Conditions: The VNF Performance Job is not modified by the operation
Send Patch request for individual VNF Performance Job
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
Check Postcondition VNF Performance Job is Unmodified (Implicit)
*** Keywords ***
GET individual VNF Performance Job
Log Trying to get a Pm Job present in the NFVO Catalogue
......@@ -151,10 +168,11 @@ Send Put request for individual VNF Performance Job
Set Suite Variable ${response} ${output}
Send Patch request for individual VNF Performance Job
Log Trying to perform a PATCH (method should not be implemented)
Set Headers {"Accept": "${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PATCH ${apiRoot}/${apiName}/${apiVersion}/pm_jobs/${pmJobId}
Set Headers {"Accept":"${ACCEPT_JSON}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
${body}= Get File jsons/PMJobModification.json
PATCH ${apiRoot}/${apiName}/${apiVersion}/pm_jobs/${pmJobId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
......
{
"callbackUri":"127.0.0.1"
}
\ 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