Commit e490aec3 authored by zafar's avatar zafar Committed by Giacomo Bernini
Browse files

New test cases added

parent 77e0ea04
Loading
Loading
Loading
Loading
+21 −8
Original line number Original line Diff line number Diff line
@@ -15,15 +15,15 @@ POST Individual Subscription - Method not implemented
    ...    Reference: Clause 8.5.4.3.1 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.4.3.1 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS instance usage notification subscription is not created on the NFVO
    ...    Post-Conditions: none
    POST Individual Subscription
    POST Individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


GET Information about an individual subscription
GET Information about an individual subscription - Successful
     [Documentation]    Test ID: 9.3.4.2.2
     [Documentation]    Test ID: 9.3.4.2.2
    ...    Test title: GET Information about an individual subscription
    ...    Test title: GET Information about an individual subscription - Successful
    ...    Test objective: The objective is to test the retrieval of NS instance usage notification subscription and perform a JSON schema validation of the returned subscription data structure
    ...    Test objective: The objective is to test the retrieval of NS instance usage notification subscription and perform a JSON schema validation of the returned subscription data structure
    ...    Pre-conditions: none
    ...    Pre-conditions: An NS instance is instantiated. At least one NS instance usage notification subscription is available in the NFVO.
    ...    Reference: Clause 8.5.4.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.4.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
@@ -35,12 +35,12 @@ GET Information about an individual subscription
PUT an individual subscription - Method not implemented
PUT an individual subscription - Method not implemented
     [Documentation]    Test ID: 9.3.4.2.3
     [Documentation]    Test ID: 9.3.4.2.3
    ...    Test title: PUT an individual subscription - Method not implemented
    ...    Test title: PUT an individual subscription - Method not implemented
    ...    Test objective: TThe objective is to test that PUT method is not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 8.5.4.3.3 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.4.3.3 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS instance usage notification subscription is not modified by the operation
    ...    Post-Conditions: none
    PUT Individual Subscription
    PUT Individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


@@ -52,7 +52,7 @@ PATCH an individual subscription - Method not implemented
    ...    Reference: Clause 8.5.4.3.4 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.4.3.4 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: The NS instance usage notification subscription is not modified by the operation
    ...    Post-Conditions: none
    PATCH Individual Subscription
    PATCH Individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -67,3 +67,16 @@ DELETE an individual subscription
    ...    Post-Conditions: The NS instance usage notification subscription is not available anymore on NFVO
    ...    Post-Conditions: The NS instance usage notification subscription is not available anymore on NFVO
    DELETE Individual Subscription
    DELETE Individual Subscription
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    
GET Information about an individual subscription - NOT FOUND
     [Documentation]    Test ID: 9.3.4.2.6
    ...    Test title: GET Information about an individual subscription - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual NS instance usage notification subscription fails when using an invalid resource identifier.
    ...    Pre-conditions: An NS instance is instantiated. At least one NS instance usage notification subscription is available in the NFVO.
    ...    Reference: Clause 8.5.4.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual subscription
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
 No newline at end of file
+9 −3
Original line number Original line Diff line number Diff line
@@ -17,7 +17,7 @@ Check HTTP Response Header Contains
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Should Contain    ${response['headers']}    ${CONTENT_TYPE}
    Log    Header is present
    Log    Header is present
    
    
Check Resource URI
Check HTTP Response Header Contains Resource URI
    ${uri}=    Get Value From Json    ${response['headers']}    $..Location
    ${uri}=    Get Value From Json    ${response['headers']}    $..Location
    Should Not Be Empty    ${uri}
    Should Not Be Empty    ${uri}
    Log    URI is present
    Log    URI is present
@@ -29,7 +29,7 @@ Check subscription existence
    Get    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} 
    Get    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${subscriptionId} 
    Integer    response status    200
    Integer    response status    200


Check LINK in Header
Check HTTP Response Header Contains Link
    ${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}


@@ -218,4 +218,10 @@ POST NS Instance Usage Notification
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}


    
Get subscriptions with exclude_default and fields attribute selector
 No newline at end of file
    Log    Get the list of active subscriptions, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    GET    ${apiRoot}/${apiName}/${apiVersion}/subscriptions?fields=${fields}&exclude_default
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
+29 −16
Original line number Original line Diff line number Diff line
@@ -20,7 +20,7 @@ POST Create a new subscription
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location
    Check HTTP Response Header Contains    Location
    Check HTTP Response Body Json Schema Is    subscription
    Check HTTP Response Body Json Schema Is    subscription
    Check Resource URI
    Check HTTP Response Header Contains Resource URI


POST Create a new Subscription - DUPLICATION
POST Create a new Subscription - DUPLICATION
    [Documentation]    Test ID: 9.3.4.1.2
    [Documentation]    Test ID: 9.3.4.1.2
@@ -107,11 +107,11 @@ GET subscriptions with "all_fields" attribute selector
    [Documentation]    Test ID: 9.3.4.1.8
    [Documentation]    Test ID: 9.3.4.1.8
    ...    Test title: GET subscriptions with "all_fields" attribute selector
    ...    Test title: GET subscriptions with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "all_fields" attribute selector
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Applicability: none 
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Get subscriptions with all_fields attribute selector
    Get subscriptions with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions 
    Check HTTP Response Body Json Schema Is   subscriptions 
@@ -120,11 +120,11 @@ GET subscriptions with "exclude_default" attribute selector
    [Documentation]    Test ID: 9.3.4.1.9
    [Documentation]    Test ID: 9.3.4.1.9
    ...    Test title: GET subscriptions with "exclude_default" attribute selector
    ...    Test title: GET subscriptions with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "exclude_default"s attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "exclude_default"s attribute selector
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Applicability:  none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Get subscriptions with exclude_default attribute selector
    Get subscriptions with exclude_default attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions
    Check HTTP Response Body Json Schema Is   subscriptions
@@ -133,11 +133,11 @@ GET subscriptions with "fields" attribute selector
    [Documentation]    Test ID: 9.3.4.1.10
    [Documentation]    Test ID: 9.3.4.1.10
    ...    Test title: GET subscriptions with "fields" attribute selector
    ...    Test title: GET subscriptions with "fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "fields" attribute selector
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Applicability:  none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Get subscriptions with fields attribute selector
    Get subscriptions with fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions
    Check HTTP Response Body Json Schema Is   subscriptions
@@ -146,11 +146,11 @@ GET subscriptions with "exclude_fields" attribute selector
    [Documentation]    Test ID: 9.3.4.1.11
    [Documentation]    Test ID: 9.3.4.1.11
    ...    Test title: GET subscriptions with "exclude_fields" attribute selector
    ...    Test title: GET subscriptions with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "exclude_fields" attribute selector
    ...    Pre-conditions: 
    ...    Pre-conditions: none
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Applicability:  none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    Get subscriptions with exclude_fields attribute selector
    Get subscriptions with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions  
    Check HTTP Response Body Json Schema Is   subscriptions  
@@ -166,7 +166,7 @@ GET Subscriptions as Paged Response
    ...    Post-Conditions: none    
    ...    Post-Conditions: none    
    GET Subscriptions
    GET Subscriptions
    Check HTTP Response Status Code Is  200
    Check HTTP Response Status Code Is  200
    Check LINK in Header
    Check HTTP Response Header Contains Link
        
        
PUT subscriptions - Method not implemented
PUT subscriptions - Method not implemented
     [Documentation]    Test ID: 9.3.4.1.13
     [Documentation]    Test ID: 9.3.4.1.13
@@ -200,6 +200,19 @@ DELETE subscriptions - Method not implemented
    ...    Reference: Clause 8.5.3.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 8.5.3.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: Subscription is not deleted
    ...    Post-Conditions: Subscriptions are not deleted
    DELETE subscriptions
    DELETE subscriptions
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
GET subscriptions with "exclude_default" and "fields" attribute selector
    [Documentation]    Test ID: 9.3.4.1.16
    ...    Test title: GET subscriptions with "exclude_default" and "fields" attribute selector
    ...    Test objective: The objective is to retrieve the list of active subscriptions with "exclude_default" and "fields" attribute selector
    ...    Pre-conditions: 
    ...    Reference: Clause 8.5.3.3.2 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability:  
    ...    Post-Conditions: 
    Get subscriptions with exclude_default and fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions  
 No newline at end of file
+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ DELETE Grants - Method not implemented
    ...    Reference: Clause 7.5.3.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Reference: Clause 7.5.3.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions:  resources are not deleted
    ...    Post-Conditions:  Resources are not deleted
    Delete Grants
    Delete Grants
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    Get an individual grant - Successful
    Get an individual grant - Successful
 No newline at end of file
+15 −2
Original line number Original line Diff line number Diff line
@@ -67,6 +67,19 @@ DELETE an individual grant - Method not implemented
    ...    Reference: Clause 7.5.4.3.5 - ETSI GS NFV-SOL 011 [1] v3.3.1
    ...    Reference: Clause 7.5.4.3.5 - ETSI GS NFV-SOL 011 [1] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: Grant is not deleted
    Delete individual Grant
    Delete individual Grant
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
GET an individual grant - NOT FOUND
    [Documentation]    Test ID: 9.3.3.2.6
    ...    Test title: GET an individual grant - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual grant for a particular Lifecycle operation fails when using an invalid resource identifier
    ...    Pre-conditions: The  grant information is available to the NFVO
    ...    Reference: Clause 7.5.4.3.2 - ETSI GS NFV-SOL 011 [1] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: Invalid resource identifier is used
    ...    Post-Conditions: none
    Get individual grant
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
 No newline at end of file