NSLCMOccurences.robot 9.28 KB
Newer Older
AHMADABB's avatar
AHMADABB committed
*** Settings ***
Resource    environment/variables.txt 
Resource   NSLCMOperationKeywords.robot   
Library    REST    ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT}     ssl_verify=false
AHMADABB's avatar
AHMADABB committed
Library    OperatingSystem
Library    JSONLibrary
Library    JSONSchemaLibrary    schemas/

*** Test Cases ***
aureliano sinatra's avatar
aureliano sinatra committed
POST NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.8.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test title: POST NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.1 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Status Code Is    405

GET status information about multiple NS LCM occurrences   
aureliano sinatra's avatar
aureliano sinatra committed
     [Documentation]    Test ID: 5.3.2.8.2
    ...    Test title: GET status information about multiple NS LCM occurrences
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Status Code Is    200
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs
GET status information about multiple NS LCM occurrences Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.8.3
    ...    Test title: GET status information about multiple NS LCM occurrences Bad Request Invalid attribute-based filtering parameters
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that GET method fail because of wrong query parameter
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid filter parameter
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences Invalid attribute-based filtering parameters
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Body Json Schema Is    ProblemDetails
GET status information about multiple NS LCM occurrences Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
    [Documentation]    Test ID: 5.3.2.8.4
    ...    Test title: GET status information about multiple NS LCM occurrences Bad Request Invalid attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that GET method fail because of wrong attributes selector
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid attribute selector
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences Invalid attribute selector
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Status Code Is    400
AHMADABB's avatar
AHMADABB committed
	Check HTTP Response Body Json Schema Is    ProblemDetails
aureliano sinatra's avatar
aureliano sinatra committed

GET status information about multiple NS LCM occurrences with "all_fields"   
     [Documentation]    Test ID: 5.3.2.8.5
    ...    Test title: GET status information about multiple NS LCM occurrences with "all_fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCM OP Occurrences with all_fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "exclude_default"   
     [Documentation]    Test ID: 5.3.2.8.6
    ...    Test title: GET status information about multiple NS LCM occurrences with "exclude_default"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCM OP Occurrences with exclude_default attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "fields"   
     [Documentation]    Test ID: 5.3.2.8.7
    ...    Test title: GET status information about multiple NS LCM occurrences with "fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCM OP Occurrences with fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs

GET status information about multiple NS LCM occurrences with "exclude_fields"   
     [Documentation]    Test ID: 5.3.2.8.8
    ...    Test title: GET status information about multiple NS LCM occurrences with "exclude_fields"
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	Get NS LCM OP Occurrences with exclude_fields attribute selector
aureliano sinatra's avatar
aureliano sinatra committed
	Check HTTP Response Status Code Is    200
	Check HTTP Response Body Json Schema Is    NsLcmOpOccs
PUT status information about multiple NS LCM occurrences - Method not implemented
    [Documentation]    Test ID: 5.3.2.8.9
    ...    Test title: PUT status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.3 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
aureliano sinatra's avatar
aureliano sinatra committed
    Check HTTP Response Status Code Is    405

PATCH status information about multiple NS LCM occurrences - Method not implemented
    [Documentation]    Test ID: 5.3.2.8.10
    ...    Test title: PATCH status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.4 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
aureliano sinatra's avatar
aureliano sinatra committed
    Check HTTP Response Status Code Is    405

DELETE status information about multiple NS LCM occurrences - Method not implemented
    [Documentation]    Test ID: 5.3.2.8.11
    ...    Test title: DELETE status information about multiple NS LCM occurrences - Method not implemented
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.5 - ETSI GS NFV-SOL 005 [3] v2.6.1
aureliano sinatra's avatar
aureliano sinatra committed
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE NS LCM OP Occurrences
aureliano sinatra's avatar
aureliano sinatra committed
    Check HTTP Response Status Code Is    405
    
GET status information about multiple NS LCM occurrences as Paged Response 
     [Documentation]    Test ID: 5.3.2.8.12
    ...    Test title: GET status information about multiple NS LCM occurrences as Paged Reponse
    ...    Test objective: The objective is to test that GET method returns a list of LCM occurrences of the NS as paged response.
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences
	Check HTTP Response Status Code Is    200
	Check LINK in Header

GET status information about multiple NS LCM occurrences - Bad Request Response too Big
    [Documentation]    Test ID: 5.3.2.8.13
    ...    Test title: GET status information about multiple NS LCM occurrences - Bad Request Response too Big
    ...    Test objective: The objective is to test that GET method fail because response is too big, and perform the JSON schema validation of the failed operation HTTP response. 
    ...    Pre-conditions: At least one LCM occurrences available in the NFVO, Invalid filter parameter
Michele Carignani's avatar
Michele Carignani committed
    ...    Reference: Clause 6.4.9.3.2 - ETSI GS NFV-SOL 005 [3] v2.6.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
	GET NS LCM OP Occurrences
	Check HTTP Response Status Code Is    400
	Check HTTP Response Body Json Schema Is    ProblemDetails