Skip to content
VNFInstances.robot 8.99 KiB
Newer Older
*** Settings ***
# Suite setup     Expect spec    SOL003-VNFLifecycleManagement-API.yaml
Resource    environment/configuration.txt
Resource    environment/variables.txt 
Library    REST    ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}
aureliano sinatra's avatar
aureliano sinatra committed
Resource    VnfLcmMntOperationKeywords.robot
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/
*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
POST Create a new vnfInstance
    [Documentation]    Test ID: 7.3.1.1.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: POST Create a new vnfInstance
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Test objective: The objective is to create a new VNF instance resource
    ...    Pre-conditions: none
    ...    Reference: clause 5.4.2.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: VNF instance created
aureliano sinatra's avatar
aureliano sinatra committed
    POST Create a new vnfInstance
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    vnfInstance
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple VNF instances  
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.1.1.2
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple VNF instances
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
    GET multiple vnfInstances
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple VNF instances Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.1.1.3
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple VNF instances Bad Request Invalid attribute-based filtering parameters
    ...    Test objective: The objective is to query information about multiple VNF instances with Invalid attribute-based filtering parameters
    ...    Pre-conditions:  A VNF is instantiated,  a bad filter selector (filter selectors are listed in Table 5.4.2.3.2-1  - ETSI GS NFV-SOL 003 [1] v2.6.1).
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
    GET multiple vnfInstances with bad attribute
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple VNF instances Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 7.3.1.1.4
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple VNF instances Bad Request Invalid attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances with Invalid attribute selector
    ...    Pre-conditions:  A VNF is instantiated,  a bad attribute selector (attribute selectors are listed in Table 5.4.2.3.2-1  - ETSI GS NFV-SOL 003 [1] v2.6.1).
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
mengxuan.zhao's avatar
mengxuan.zhao committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
aureliano sinatra's avatar
aureliano sinatra committed
    GET multiple vnfInstances with bad filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed

GET information about multiple VNF instances with "all_fields" attribute selector
    [Documentation]    Test ID: 7.3.1.1.5
    ...    Test title: GET information about multiple VNF instances with "all_fields" attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances

GET information about multiple VNF instances with "exclude_default" attribute selector
    [Documentation]    Test ID: 7.3.1.1.6
    ...    Test title: GET information about multiple VNF instances with "exclude_default" attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances with exclude_default attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances
aureliano sinatra's avatar
aureliano sinatra committed
GET information about multiple VNF instances with "fields" attribute selector
    [Documentation]    Test ID: 7.3.1.1.7
    ...    Test title: GET information about multiple VNF instances with "fields" attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances with fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances

GET information about multiple VNF instances with "exclude_fields" attribute selector
root's avatar
root committed
    [Documentation]    Test ID: 7.3.1.1.8
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: GET information about multiple VNF instances with "exclude_fields" attribute selector
    ...    Test objective: The objective is to query information about multiple VNF instances
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances  
  
aureliano sinatra's avatar
aureliano sinatra committed
PUT multiples VNFInstances - Method not implemented
root's avatar
root committed
    [Documentation]    Test ID: 7.3.1.1.9
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: PUT multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    PUT multiple vnfInstances
	Check HTTP Response Status Code Is    405
	
PATCH multiples VNFInstances - Method not implemented
root's avatar
root committed
    [Documentation]    Test ID: 7.3.1.1.10
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: PATCH multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    PATCH multiple vnfInstances
	Check HTTP Response Status Code Is    405

DELETE VNFInstances - Method not implemented
root's avatar
root committed
    [Documentation]    Test ID: 7.3.1.1.11
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: DELETE multiples VNFInstances - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
root's avatar
root committed
    ...    Post-Conditions: resources are not deleted
aureliano sinatra's avatar
aureliano sinatra committed
    DELETE multiple vnfInstances
	Check HTTP Response Status Code Is    405
root's avatar
root committed
	
GET information about multiple VNF instances to get Paged Response
    [Documentation]    Test ID: 7.3.1.1.12
    ...    Test title: GET information about multiple VNF instances to get Paged Response
    ...    Test objective: The objective is to query information about multiple VNF instances to get Paged Response.
    ...    Pre-conditions:  
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances
    Check HTTP Response Status Code Is    200
    Check LINK in Header
    
GET information about multiple VNF instances - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.1.1.13
    ...    Test title: GET information about multiple VNF instances - Bad Request Response too Big
    ...    Test objective: The objective is to query information about multiple VNF instances fails because response is too big. The test also checks the JSON schema of the unsuccessful operation HTTP response.
    ...    Pre-conditions:  A VNF is instantiated,  a bad attribute selector (attribute selectors are listed in Table 5.4.2.3.2-1  - ETSI GS NFV-SOL 003 [1] v2.6.1).
    ...    Reference: clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Post-Conditions: 
    GET multiple vnfInstances
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails