Commit 9dd75a29 authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

deltas for 2.7.1 SOL005 PM added

parent b844733d
Loading
Loading
Loading
Loading
+20 −6
Original line number Original line Diff line number Diff line
@@ -70,17 +70,18 @@ PUT Individual NS Performance Job - Method not implemented
    Send Put request for individual NS Performance Job
    Send Put request for individual NS Performance Job
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Individual NS Performance Job - Method not implemented
PATCH Individual NS Performance Job 
    [Documentation]    Test ID: 5.3.4.2.6
    [Documentation]    Test ID: 5.3.4.2.6
    ...    Test title: PATCH Individual NS Performance Job - method not implemented
    ...    Test title: PATCH Individual NS Performance Job 
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify an existing new NS Performance Monitoring Job
    ...    Test objective: The objective is to test that PATCH method modify an existing new NS Performance Monitoring Job
    ...    Pre-conditions: A NS instance is instantiated. One or more NS performance jobs are set in the NFVO.
    ...    Pre-conditions: A NS instance is instantiated. One or more NS performance jobs are set in the NFVO.
    ...    Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Reference: Clause 6.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: Resource modified
    Send Patch request for individual NS Performance Job
    Send Patch request for individual NS Performance Job
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is     PmJobModifications


DELETE Individual NS Performance Job
DELETE Individual NS Performance Job
    [Documentation]    Test ID: 5.3.4.2.7
    [Documentation]    Test ID: 5.3.4.2.7
@@ -94,3 +95,16 @@ DELETE Individual NS Performance Job
    Send Delete request for individual NS Performance Job
    Send Delete request for individual NS Performance Job
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    Check Postcondition NS Pm Job is Deleted
    Check Postcondition NS Pm Job is Deleted
    
PATCH Individual NS Performance Job - Precondition failed
    [Documentation]    Test ID: 5.3.4.2.8
    ...    Test title: PATCH Individual NS Performance Job - Precondition failed
    ...    Test objective: The objective is to attempt to Modify an individual NS Performance job fails, where the precondition was not met
    ...    Pre-conditions: The related job already exsisit
    ...    Reference: Clause 7.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The resource is not modified
    Send Patch request for individual NS Performance Job
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is     ProblemDetails
 No newline at end of file
+0 −102
Original line number Original line Diff line number Diff line
*** Settings ***
Documentation     This resource represents an individual subscription for notifications about performance management related events.
...               The client can use this resource to read and to terminate a subscription to notifications related to NS performance
...               management.
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt    # Generic Parameters
Resource          NSPerformanceManagementKeywords.robot
Library           REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}    ssl_verify=false
Library           OperatingSystem
Library           JSONLibrary
Resource          environment/individualSubscription.txt

*** Test Cases ***
GET Individual NS Performance Subscription
    [Documentation]    Test ID: 5.3.4.7.1
    ...    Test title: GET Individual NS Performance Subscription
    ...    Test objective: The objective is to test the retrieval of individual NS Performance subscription and perform a JSON schema and content validation of the returned subscription data structure
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual NS Performance Subscription
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PkgmSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription

GET Individual NS Performance Subscription with invalid resource identifier
    [Documentation]    Test ID: 5.3.4.7.2
    ...    Test title: GET Individual NS Performance Subscription with invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of an individual NS Performance subscription fails when using an invalid resource identifier
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.2 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual NS Performance Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404

DELETE Individual NS Performance Subscription with invalid resource identifier
    [Documentation]    Test ID: 5.3.4.7.3
    ...    Test title: DELETE Individual NS Performance Subscription with invalid resource identifier
    ...    Test objective: The objective is to test that the deletion of an individual NS Performance subscription fails when using an invalid resource identifier
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.5 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none   
    Send Delete request for individual NS Performance Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404

POST Individual NS Performance Subscription - Method not implemented
    [Documentation]    Test ID: 5.3.4.7.4
    ...    Test title: POST Individual NS Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create a new NS Performance Subscription
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.8.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS Performance Subscription is not created on the NFVO
    Send Post request for individual NS Performance Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NS Performance Subscription is not Created

PUT Individual NS Performance Subscription - Method not implemented
    [Documentation]    Test ID: 5.3.4.7.5
    ...    Test title: PUT Individual NS Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update an existing NS Performance subscription
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS Performance subscription is not modified by the operation
    Send Put request for individual NS Performance Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NS Performance Subscription is Unmodified (Implicit)

PATCH Individual NS Performance Subscription - Method not implemented
    [Documentation]    Test ID: 5.3.4.7.6
    ...    Test title: PATCH Individual NS Performance Subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify an existing NS Performance subscription
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS Performance subscription is not modified by the operation
    Send Patch request for individual NS Performance Subscription
    Check HTTP Response Status Code Is    405
    Check Postcondition NS Performance Subscription is Unmodified (Implicit)

DELETE Individual NS Performance Subscription
    [Documentation]    Test ID: 5.3.4.7.7
    ...    Test title: DELETE Individual NS Performance Subscription
    ...    Test objective: The objective is to test the deletion of an individual NS Performance subscription
    ...    Pre-conditions: At least one NS Performance subscription is available in the NFVO.
    ...    Reference: Clause 7.4.8.3.5 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS Performance Subscription is not available anymore in the NFVO    
    Send Delete request for individual NS Performance Subscription
    Check HTTP Response Status Code Is    204
    Check Postcondition NS Performance Subscription is Deleted
 No newline at end of file
+22 −9
Original line number Original line Diff line number Diff line
@@ -34,6 +34,7 @@ GET Individual Threshold with invalid resource identifier
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET individual NS performance Threshold with invalid resource identifier
    GET individual NS performance Threshold with invalid resource identifier
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails


DELETE Individual Threshold with invalid resource identifier
DELETE Individual Threshold with invalid resource identifier
    [Documentation]    Test ID: 5.3.4.5.3
    [Documentation]    Test ID: 5.3.4.5.3
@@ -55,10 +56,9 @@ POST Individual Threshold - Method not implemented
    ...    Reference: Clause 7.4.6.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Reference: Clause 7.4.6.3.1 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS performance Threshold is not created on the NFVO
    ...    Post-Conditions: none
    Send Post request for individual NS performance Threshold
    Send Post request for individual NS performance Threshold
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition NS performance Threshold is not Created


PUT Individual Threshold - Method not implemented
PUT Individual Threshold - Method not implemented
    [Documentation]    Test ID: 5.3.4.5.5
    [Documentation]    Test ID: 5.3.4.5.5
@@ -68,22 +68,22 @@ PUT Individual Threshold - Method not implemented
    ...    Reference: Clause 7.4.6.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Reference: Clause 7.4.6.3.3 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS performance Threshold is not modified by the operation
    ...    Post-Conditions: none
    Send Put request for individual NS performance Threshold
    Send Put request for individual NS performance Threshold
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Check Postcondition NS performance Threshold is Unmodified (Implicit)


PATCH Individual Threshold - Method not implemented
PATCH Individual Threshold 
    [Documentation]    Test ID: 5.3.4.5.6
    [Documentation]    Test ID: 5.3.4.5.6
    ...    Test title: PATCH Individual Threshold - Method not implemented
    ...    Test title: PATCH Individual Threshold 
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify an existing NS performance threshold
    ...    Test objective: The objective is to test that PATCH method modify an existing NS performance threshold
    ...    Pre-conditions: A NS instance is instantiated. One or more NS performance thresholds are set in the NFVO.
    ...    Pre-conditions: A NS instance is instantiated. One or more NS performance thresholds are set in the NFVO.
    ...    Reference: Clause 7.4.6.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Reference: Clause 7.4.6.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS performance Threshold is not modified by the operation
    ...    Post-Conditions: The NS performance Threshold is modified by the operation
    Send Patch request for individual NS performance Threshold
    Send Patch request for individual NS performance Threshold
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ThresholdModifications
    Check Postcondition NS performance Threshold is Unmodified (Implicit)
    Check Postcondition NS performance Threshold is Unmodified (Implicit)


DELETE Individual Threshold
DELETE Individual Threshold
@@ -99,3 +99,16 @@ DELETE Individual Threshold
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    Check Postcondition NS performance Threshold is Deleted
    Check Postcondition NS performance Threshold is Deleted


PATCH Individual Threshold - Precondition failed 
    [Documentation]    Test ID: 5.3.4.5.8
    ...    Test title: PATCH Individual Threshold - Precondition failed 
    ...    Test objective: The objective is to attempt to Modify an individual NS Performance threshold fails, where the precondition was not met
    ...    Pre-conditions: A NS instance is instantiated. One or more NS performance thresholds are set in the NFVO.
    ...    Reference: Clause 7.4.6.3.4 - ETSI GS NFV-SOL 005 [3] v2.7.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The NS performance Threshold is not modified by the operation
    Send Patch request for individual NS performance Threshold
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check Postcondition NS performance Threshold is Unmodified (Implicit)
 No newline at end of file
+8 −16
Original line number Original line Diff line number Diff line
@@ -236,10 +236,12 @@ Send Put request for individual NS Performance Job
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}
    
    
Send Patch request for individual NS Performance Job    
Send Patch request for individual NS Performance Job    
    Log    Trying to perform a PATCH (method should not be implemented)
    Log    Trying to perform a PATCH 
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/pm_jobs/${pmJobId}
    ${body}=    Get File    jsons/PmJobModifications.json
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/pm_jobs/${pmJobId}    ${body}
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}


@@ -380,7 +382,7 @@ Send Post Request Create new Performance Threshold
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    Set Headers    {"Content-Type": "${CONTENT_TYPE_JSON}"}
    ${template}=    Get File    jsons/CreateThresholdRequest.json
    ${template}=    Get File    jsons/CreateThresholdRequest.json
    ${body}=        Format String   ${template}     pmJobId=${pmJobId}
    ${body}=        Format String   ${template}     pmJobId=${pmJobId}
    POST    ${apiRoot}/${apiName}/${apiVersion}/thresholds    ${request}
    POST    ${apiRoot}/${apiName}/${apiVersion}/thresholds    ${body}
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}


@@ -480,11 +482,10 @@ Send Put request for individual NS performance Threshold
Send Patch request for individual NS performance Threshold
Send Patch request for individual NS performance Threshold
    Log    Trying to PUT threshold
    Log    Trying to PUT threshold
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers  {"Content-Type": "${CONTENT_TYPE_PATCH}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/thresholds/${thresholdId}
    ${body}=    Get File    jsons/ThresholdModifications.json
    ${origOutput}=    Output    response
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/thresholds/${thresholdId}    ${body}
    Set Suite Variable    ${origResponse}    ${origOutput}
    PATCH    ${apiRoot}/${apiName}/${apiVersion}/thresholds/${thresholdId}
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}


@@ -496,15 +497,6 @@ Check Postcondition NS performance Threshold is Unmodified (Implicit)
    Should Be Equal    ${origresponse['body']['id']}    ${threshold.id}
    Should Be Equal    ${origresponse['body']['id']}    ${threshold.id}
    Should Be Equal    ${origresponse['body']['criteria']}    ${threshold.criteria}
    Should Be Equal    ${origresponse['body']['criteria']}    ${threshold.criteria}


Check Postcondition NS performance Threshold is not Created
    Log    Trying to get a new Threshold
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/thresholds/${newThresholdId}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Check HTTP Response Status Code Is    404

Check Postcondition NS performance Threshold is Deleted
Check Postcondition NS performance Threshold is Deleted
    Log    Check Postcondition Threshold is deleted
    Log    Check Postcondition Threshold is deleted
    GET individual NS performance Threshold
    GET individual NS performance Threshold
+0 −182

File deleted.

Preview size limit exceeded, changes collapsed.

Loading