Commit 5599fc94 authored by Umair213's avatar Umair213 Committed by Giacomo Bernini
Browse files

Change Status code 422 description from Unprocessable Entity to Unprocessable Content

parent be730336
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -118,16 +118,16 @@ PATCH Individual VNF Performance Job - Precondition failed
    Check HTTP Response Body Json Schema Is   ProblemDetails
    Check Postcondition VNF Performance Job is Unmodified (Implicit)
    
PATCH Individual VNF Performance Job - Unprocessable Entity
PATCH Individual VNF Performance Job - Unprocessable Content
    [Documentation]    Test ID: 7.3.4.2.9
    ...    Test title: PATCH Individual VNF Performance Job - Unprocessable Entity
    ...    Test title: PATCH Individual VNF Performance Job - Unprocessable Content
    ...    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] v4.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Patch request for individual VNF Performance Job with unprocessable entity
    Send Patch request for individual VNF Performance Job with unprocessable content
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
@@ -217,7 +217,7 @@ Send Patch request for individual VNF Performance Job - Etag mismatch
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Send Patch request for individual VNF Performance Job with unprocessable entity
Send Patch request for individual VNF Performance Job with unprocessable content
    Set Headers  {"Accept":"${ACCEPT_JSON}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
+2 −2
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ PATCH Individual Threshold - Unprocessible Entity
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Patch request for individual VNF Performance Threshold with unprocessable entity
    Send Patch request for individual VNF Performance Threshold with unprocessable content
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails

@@ -215,7 +215,7 @@ Send Patch request for individual VNF Performance Threshold - Etag mismatch
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    
Send Patch request for individual VNF Performance Threshold with unprocessable entity
Send Patch request for individual VNF Performance Threshold with unprocessable content
    Log    Trying to PATCH threshold
    Set Headers  {"Accept":"${ACCEPT_JSON}"} 
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"} 
+4 −4
Original line number Diff line number Diff line
@@ -225,16 +225,16 @@ GET all VNF Performance Monitoring Jobs with fields and exclude_default attribut
    Check HTTP Response Body Json Schema Is   PmJobs
    Check HTTP Response Body PmJobs Matches the requested fields selector

POST Create new VNF Performance Monitoring Job - Unprocessable Entity
POST Create new VNF Performance Monitoring Job - Unprocessable Content
    [Documentation]    Test ID: 7.3.4.1.16
    ...    Test title: POST Create new VNF Performance Monitoring Job - Unprocessable Entity
    ...    Test title: POST Create new VNF Performance Monitoring Job - Unprocessable Content
    ...    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] v4.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Post Request for VNF Performance Monitoring Job with unprocessable entity
    Send Post Request for VNF Performance Monitoring Job with unprocessable content
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails 

@@ -472,7 +472,7 @@ Check LINK in Header
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}

Send Post Request for VNF Performance Monitoring Job with unprocessable entity
Send Post Request for VNF Performance Monitoring Job with unprocessable content
    Log    trying to create a new PM Job
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
+4 −4
Original line number Diff line number Diff line
@@ -142,16 +142,16 @@ GET Performance Thresholds - Bad Request Response too Big
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
POST create new Performance Threshold - Unprocessable Entity
POST create new Performance Threshold - Unprocessable Content
    [Documentation]    Test ID: 7.3.4.4.11
    ...    Test title:  POST create new Performance Threshold - Unprocessable Entity
    ...    Test title:  POST create new Performance Threshold - Unprocessable Content
    ...    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] v4.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Post Request Create new Performance Threshold with unprocessable entity
    Send Post Request Create new Performance Threshold with unprocessable content
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
@@ -204,7 +204,7 @@ Send Post Request Create new Performance Threshold
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Send Post Request Create new Performance Threshold with unprocessable entity
Send Post Request Create new Performance Threshold with unprocessable content
    Log    trying to create a new Threshold
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}