Skip to content
Snippets Groups Projects
IndividualSubscription.robot 3.57 KiB
Newer Older
  • Learn to ignore specific revisions
  • mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
    *** Settings ***
    
    Resource    environment/variables.txt
    
    Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}        ssl_verify=false
    
    Library    JSONLibrary
    Library    JSONSchemaLibrary    schemas/
    
    Resource    VnfLcmMntOperationKeywords.robot
    
    mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
    
    *** Test Cases ***
    
    aureliano sinatra's avatar
    aureliano sinatra committed
    POST Individual Subscription - Method not implemented
    
        [Documentation]    Test ID: 7.3.1.18.1
    
    aureliano sinatra's avatar
    aureliano sinatra committed
        ...    Test title: POST Individual Subscription - Method not implemented
    
        ...    Test objective: The objective is to test that the method is not implemented
        ...    Pre-conditions: none
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.1 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
        ...    Post-Conditions: none 
        Post Create Individual subscription
    	Check HTTP Response Status Code Is    405
    
    mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
    
    
    GET Individual Subscription
        [Documentation]    Test ID: 7.3.1.18.2
        ...    Test title: GET Individual Subscription
    
        ...    Test objective: The objective is to test the Get individual subscription
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
        ...    Post-Conditions: none 
        Get Individual Subscription
        Check HTTP Response Status Code Is    200
        Check HTTP Response Body Json Schema Is    Subscription
    
    mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
    
    PUT an individual subscription - Method not implemented
    
        [Documentation]    Test ID: 7.3.1.18.3
    
    aureliano sinatra's avatar
    aureliano sinatra committed
        ...    Test title: PUT an individual subscription - Method not implemented
    
        ...    Test objective: The objective is to test that the method is not implemented
        ...    Pre-conditions: none
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.3 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
        ...    Post-Conditions: none 
        Put Individual subscription
    	Check HTTP Response Status Code Is    405
    
    mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
    
    PATCH an individual subscription - Method not implemented
    
        [Documentation]    Test ID: 7.3.1.18.4
    
    aureliano sinatra's avatar
    aureliano sinatra committed
        ...    Test title: PATCH an individual subscription - Method not implemented
    
        ...    Test objective: The objective is to test that the method is not implemented
        ...    Pre-conditions: none
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.4 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
        ...    Post-Conditions: none 
        Patch Individual subscription
    	Check HTTP Response Status Code Is    405    
    
    mengxuan.zhao's avatar
    upd
    mengxuan.zhao committed
        
    DELETE an individual subscription
    
         [Documentation]    Test ID: 7.3.1.18.5
    
    aureliano sinatra's avatar
    aureliano sinatra committed
        ...    Test title: DELETE an individual subscription
    
        ...    Test objective: The objective is to test that the method is not implemented
        ...    Pre-conditions: none
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.5 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
    
    aureliano sinatra's avatar
    aureliano sinatra committed
        ...    Post-Conditions: subscription deleted from VNFM
    
        Delete Individual subscription
    	Check HTTP Response Status Code Is    405
    
    	
    GET Individual Subscription - Not Found
        [Documentation]    Test ID: 7.3.1.18.6
        ...    Test title: GET Individual Subscription - Not Found
        ...    Test objective: The objective is to test the retrieval of individual subscription fails when subscription is not present
        ...    Pre-conditions: none
    
    Najam UI Hassan's avatar
    Najam UI Hassan committed
        ...    Reference: Clause 5.4.19.3.2 - ETSI GS NFV-SOL 003 [1] v2.7.1
    
        ...    Config ID: Config_prod_VNFM
        ...    Applicability: none
        ...    Post-Conditions: none 
        Get Individual Subscription
        Check HTTP Response Status Code Is    404
    
        Check HTTP Response Body Json Schema Is    ProblemDetails