Commit 5cab4234 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

Merge branch '3.3.1-dev-SOL005-NFVICapacityInformation' into '3.3.1-dev'

SOL005 NFVI Capacity Information - Implementation of deltas between v3.3.1 and v2.7.1

See merge request nfv/api-tests!163
parents e5eb2aff 76a9f756
Loading
Loading
Loading
Loading
+125 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    NFVICapacityInformationKeywords.robot

*** Test Cases ***
POST API Version - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.1
    ...    Test title: POST API version - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none    
    POST API Version
	Check HTTP Response Status Code Is    405
    
GET API Version
    [Documentation]    Test ID: 5.3.6.1.2
    ...    Test title: GET API Version
    ...    Test objective: The objective is to test that GET method successfully return ApiVersionInformation
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    GET API Version
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    ApiVersionInformation

PUT API Version - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.3
    ...    Test title: PUT API Version - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    PUT API Version
	Check HTTP Response Status Code Is    405

PATCH API Version - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.4
    ...    Test title: PATCH API Version - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    PATCH API Version
	Check HTTP Response Status Code Is    405
    
DELETE API Version - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.5
    ...    Test title: DELETE API Version - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    DELETE API Version
	Check HTTP Response Status Code Is    405
	
POST API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.6
    ...    Test title: POST API version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.1 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none    
    POST API Version
	Check HTTP Response Status Code Is    405
    
GET API Version with apiMajorVerion
    [Documentation]    Test ID: 5.3.6.1.7
    ...    Test title: GET API Version with apiMajorVerion
    ...    Test objective: The objective is to test that GET method successfully return ApiVersionInformation
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.2 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    GET API Version
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    ApiVersionInformation

PUT API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.8
    ...    Test title: PUT API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.3 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    PUT API Version
	Check HTTP Response Status Code Is    405

PATCH API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.9
    ...    Test title: PATCH API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.4 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    PATCH API Version
	Check HTTP Response Status Code Is    405
    
DELETE API Version with apiMajorVerion - Method not implemented
    [Documentation]    Test ID: 5.3.6.1.10
    ...    Test title: DELETE API Version with apiMajorVerion - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 9.3.3.3.5 - ETSI GS NFV-SOL 013 v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    DELETE API Version
	Check HTTP Response Status Code Is    405
 No newline at end of file
+131 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    NFVICapacityInformationKeywords.robot

*** Test Cases ***
POST Create Capacity Threshold
    [Documentation]    Test ID: 5.3.6.3.1
    ...    Test title: POST Create Capacity Threshold
    ...    Test objective: The objective is to test that POST method creates a Capacity  Threshold
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Create a Capacity Threshold
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    CapacityThreshold
    Check HTTP Response Contains Resource URI

POST Create Capacity Threshold - Unprocessible Entity
    [Documentation]    Test ID: 5.3.6.3.2
    ...    Test title: POST Create Capacity Threshold - Unprocessible Entity
    ...    Test objective: The objective is to test that POST method creates a Capacity  Threshold
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.1 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Create a Capacity Threshold - Unreachable URI
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Capacity Thresholds  
    [Documentation]    Test ID: 5.3.6.3.3
    ...    Test title: GET Capacity Thresholds
    ...    Test objective: The objective is to GET Capacity Thresholds objects
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Capacity Thresholds
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    CapacityThresholds

GET Capacity Thresholds - Filter
    [Documentation]    Test ID: 5.3.6.3.4
    ...    Test title: GET Capacity Thresholds - Filter
    ...    Test objective: The objective is to GET Capacity Thresholds objects using filter
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Capacity Thresholds using filter
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    CapacityThresholds
     
GET Capacity Thresholds Bad Request Invalid attribute-based filtering parameters
    [Documentation]    Test ID: 5.3.6.3.5
    ...    Test title: GET Capacity Thresholds Bad Request Invalid attribute-based filtering parameters
    ...    Test objective: The objective is to get information about Capacity Thresholds with Invalid attribute-based filtering parameters
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Capacity Thresholds using invalid filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is   ProblemDetails

GET Capacity Thresholds - Bad Request Response too Big
    [Documentation]    Test ID: 5.3.6.3.6
    ...    Test title: GET Capacity Thresholds - Bad Request Response too Big
    ...    Test objective: The objective is test that the retrieval of existing Capacity Thresholds list fails because response is too big, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: NFVO does not support paged response.
    ...    Post-Conditions: none 
    GET Capacity Thresholds without Paging support
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails

GET Capacity Thresholds as Paged Response
    [Documentation]    Test ID: 5.3.6.3.7
    ...    Test title: GET Capacity Thresholds as Paged Response
    ...    Test objective: The objective is to test that GET method retrieves the list of existing Capacity Thresholds as paged response.
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.4.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: NFVO supports paged response.
    ...    Post-Conditions: none    
    GET Capacity Thresholds with Paging support
    Check HTTP Response Status Code Is  200
    Check HTTP Response Header Contains Link
        
PUT Capacity Thresholds - Method not implemented
    [Documentation]    Test ID: 5.3.6.3.8
    ...    Test title: PUT Capacity Thresholds - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions:  none
    ...    Reference: Clause 10.4.4.3.3 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PUT Capacity Thresholds
    Check HTTP Response Status Code Is    405

PATCH Capacity Thresholds - Method not implemented
    [Documentation]    Test ID: 5.3.6.3.9
    ...    Test title: PATCH Capacity Thresholds - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none 
    ...    Reference: Clause 10.4.4.3.4 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH Capacity Thresholds
    Check HTTP Response Status Code Is    405

DELETE Capacity Thresholds - Method not implemented
    [Documentation]    Test ID: 5.3.6.3.10
    ...    Test title: DELETE Capacity Thresholds - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none 
    ...    Reference: Clause 10.4.4.3.5 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE Capacity Thresholds
    Check HTTP Response Status Code Is    405
+105 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    NFVICapacityInformationKeywords.robot

*** Test Cases ***
POST Individual Capacity Threshold
    [Documentation]    Test ID: 5.3.6.4.1
    ...    Test title: POST Individual Capacity Threshold
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.1 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Individual Capacity Threshold
    Check HTTP Response Status Code Is    405

GET Individual Capacity Thresholds  
    [Documentation]    Test ID: 5.3.6.4.2
    ...    Test title: GET Capacity Thresholds
    ...    Test objective: The objective is to test that GET method reads information about Individual Capacity Threshold
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual Capacity Threshold
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    CapacityThresholds
    
GET Individual Capacity Thresholds - NOT FOUND
    [Documentation]    Test ID: 5.3.6.4.3
    ...    Test title: GET Capacity Thresholds - NOT FOUND
    ...    Test objective: The objective is to test that GET method returns an error when using and invalid URI
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual Capacity Threshold - Invalid URI
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
PUT Individual Capacity Threshold - Method not implemented
    [Documentation]    Test ID: 5.3.6.4.4
    ...    Test title: PUT Capacity Thresholds - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions:  none
    ...    Reference: Clause 10.4.5.3.3 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PUT Individual Capacity Threshold
    Check HTTP Response Status Code Is    405

PATCH Individual Capacity Threshold - Success
    [Documentation]    Test ID: 5.3.6.4.5
    ...    Test title: PATCH Individual Capacity Threshold - Success
    ...    Test objective: The objective is to test that PATCH method successfully modifies an individual Capacity Threshold resource
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.3 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: Capacity Threshold modified
    PATCH Individual Capacity Threshold
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    CapacityThresholds
    
PATCH Individual Capacity Threshold - Precondition Failed
    [Documentation]    Test ID: 5.3.6.4.6
    ...    Test title: PATCH Individual Capacity Threshold - Precondition Failed
    ...    Test objective: The objective is to that the modification of individual Capacity Threshold fails because precondition given in an HTTP request header is not fulfilled due to an ETag mismatch.
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.4 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH Individual Capacity Threshold - ETag Mismatch
    Check HTTP Response Status Code Is    412
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
PATCH Individual Capacity Threshold - Unprocessible Entity
    [Documentation]    Test ID: 5.3.6.4.7
    ...    Test title: PATCH Individual Capacity Threshold - Precondition Failed
    ...    Test objective: The objective is to that the modification of individual Capacity Threshold fails because callbackUri provided in the request body is unreachable.
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.5.3.4 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH Individual Capacity Threshold - Unreachable CallbackURI
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
DELETE Individual VNF Snapshot
    [Documentation]    Test ID: 7.3.1.41.8
    ...    Test title: DELETE Individual VNF Snapshot
    ...    Test objective: The objective is to delete a VNF Snapshot
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.24.3.5 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: VNF Snapshot deleted
    DELETE Individual Capacity Threshold
    Check HTTP Response Status Code Is    204
    Check Postcondition resource is deleted
 No newline at end of file
+90 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    NFVICapacityInformationKeywords.robot

*** Test Cases ***
POST Individual VIMs NFVI Capacity Information - Method not implemented
    [Documentation]    Test ID: 5.3.6.3.1
    ...    Test title: POST Individual VIMs NFVI Capacity Information - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.1 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Individual VIMs NFVI Capacity Information
    Check HTTP Response Status Code Is    405
    
GET Information about an Individual VIMs NFVI Capacity Information
    [Documentation]    Test ID: 5.3.6.3.2
    ...    Test title: GET Information about an Individual VIMs NFVI Capacity Information
    ...    Test objective: The objective is to retrieve information about Individual VIMs NFVI Capacity Information
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VIMs NFVI Capacity Information
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    NfviCapacityInfo

GET Information about an Individual VIMs NFVI Capacity Information using filter query parameter
    [Documentation]    Test ID: 5.3.6.3.2
    ...    Test title: GET Information about an Individual VIMs NFVI Capacity Information using filter query parameter
    ...    Test objective: The objective is to retrieve information about Individual VIMs NFVI Capacity Information using filter query parameter
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VIMs NFVI Capacity Information using filter
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    NfviCapacityInfo
        
GET Information about an Individual VIMs NFVI Capacity Information - NOT FOUND
     [Documentation]    Test ID: 5.3.6.3.4
    ...    Test title: GET Information about an Individual VIMs NFVI Capacity Information - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of Individual VIMs NFVI Capacity Information fails when using an invalid resource identifier.
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VIMs NFVI Capacity Information with Invalid VIM ID
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails

PUT Individual VIMs NFVI Capacity Information - Method not implemented 
     [Documentation]    Test ID: 5.3.6.3.5
    ...    Test title: PUT Individual VIMs NFVI Capacity Information - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.3 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: VNF Snapshot Package not modified
    PUT Individual VIMs NFVI Capacity Information
    Check HTTP Response Status Code Is    405

PATCH Individual VIMs NFVI Capacity Information - Method Not implemented
    [Documentation]    Test ID: 5.3.6.3.6
    ...    Test title: PATCH Individual VIMs NFVI Capacity Information
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: VNF Snapshot Package modified
    PATCH Individual VIMs NFVI Capacity Information
    Check HTTP Response Status Code Is    405

DELETE Individual VIMs NFVI Capacity Information - Method Not implemented 
    [Documentation]    Test ID: 5.3.6.3.7
    ...    Test title: DELETE Individual VIMs NFVI Capacity Information - Method Not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.3.3.5 - ETSI GS NFV-SOL 005 [3] v3.3.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: VNF Snapshot Package deleted
    DELETE Individual VIMs NFVI Capacity Information
    Check HTTP Response Status Code Is    405
 No newline at end of file
+194 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading