Skip to content
Snippets Groups Projects
IndividualSubscription.robot 4.26 KiB
Newer Older
  • Learn to ignore specific revisions
  • *** Settings ***
    Resource   environment/variables.txt 
    Resource   NSInstanceUsageNotificationKeywords.robot  
    Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}    ssl_verify=false
    Library    OperatingSystem
    Library    JSONLibrary
    Library    JSONSchemaLibrary    schemas/
    
    *** Test Cases ***
    POST Individual Subscription - Method not implemented
    
        [Documentation]    Test ID: 9.3.2.2.1
    
        ...    Test title: POST Individual Subscription - Method not implemented
        ...    Test objective: The objective is to test that POST method is not implemented
        ...    Pre-conditions: none
        ...    Reference: Clause 8.5.4.3.1 - ETSI GS NFV-SOL 011 [6] v3.3.1
        ...    Config ID: Config_prod_NFVO
        ...    Applicability: none
    
    zafar's avatar
    zafar committed
        ...    Post-Conditions: none
    
        POST Individual Subscription
        Check HTTP Response Status Code Is    405
    
    
    zafar's avatar
    zafar committed
    GET Information about an individual subscription - Successful
    
         [Documentation]    Test ID: 9.3.2.2.2
    
    zafar's avatar
    zafar committed
        ...    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
    
    zafar's avatar
    zafar committed
        ...    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    200
        Check HTTP Response Body Json Schema Is   subscription
    
    PUT an individual subscription - Method not implemented
    
         [Documentation]    Test ID: 9.3.2.2.3
    
        ...    Test title: PUT an individual subscription - Method not implemented
    
    zafar's avatar
    zafar committed
        ...    Test objective: The objective is to test that PUT method is not implemented
    
        ...    Pre-conditions: none
        ...    Reference: Clause 8.5.4.3.3 - ETSI GS NFV-SOL 011 [6] v3.3.1
        ...    Config ID: Config_prod_NFVO
        ...    Applicability: none
    
    zafar's avatar
    zafar committed
        ...    Post-Conditions: none
    
        PUT Individual Subscription
        Check HTTP Response Status Code Is    405
    
    PATCH an individual subscription - Method not implemented
    
         [Documentation]    Test ID: 9.3.2.2.4
    
        ...    Test title: PATCH an individual subscription - Method not implemented
        ...    Test objective: The objective is to test that PATCH method is not implemented
        ...    Pre-conditions: none
        ...    Reference: Clause 8.5.4.3.4 - ETSI GS NFV-SOL 011 [6] v3.3.1
        ...    Config ID: Config_prod_NFVO
        ...    Applicability: none
    
    zafar's avatar
    zafar committed
        ...    Post-Conditions: none
    
        PATCH Individual Subscription
        Check HTTP Response Status Code Is    405
        
    DELETE an individual subscription
    
         [Documentation]    Test ID: 9.3.2.2.5
    
        ...    Test title: DELETE an individual subscription
        ...    Test objective: The objective is to test that DELETE method deletes an individual subscription
        ...    Pre-conditions: At least one instance usage notification subscription is available in the NFVO
        ...    Reference: Clause 8.5.4.3.5 - ETSI GS NFV-SOL 011 [6] v3.3.1
        ...    Config ID: Config_prod_NFVO
        ...    Applicability: none
        ...    Post-Conditions: The NS instance usage notification subscription is not available anymore on NFVO
        DELETE Individual Subscription
    
    zafar's avatar
    zafar committed
        Check HTTP Response Status Code Is    204
    
        Check Postcondition Individual Subscription is Deleted
    
    zafar's avatar
    zafar committed
        
    GET Information about an individual subscription - NOT FOUND
    
         [Documentation]    Test ID: 9.3.2.2.6
    
    zafar's avatar
    zafar committed
        ...    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