Commit 892598a2 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

fixed typos and updated NFVMANOCim tests

parent 9f98f848
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ POST NFV-MANO functional entity application state change
POST NFV-MANO functional entity application state change - Conflict
    [Documentation]    Test ID: 8.3.1.2.2
    ...    Test title: POST NFV-MANO functional entity application state change - Conflict
    ...    Test objective: The objective is to test that request to change the state of the NFV-MANO functional entity application failed due to a conflict with the state of the NFV-MANO entity resource and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test objective: The objective is to test that request to change the state of the NFV-MANO functional entity application fails due to a conflict with the state of the NFV-MANO entity resource and perform the JSON schema validation of the failed operation HTTP response.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.7.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
+37 −37
Original line number Diff line number Diff line
@@ -8,97 +8,97 @@ Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT}
Library           MockServerLibrary

*** Test Cases ***
POST Change State Operation Occurrence - Method not implemented
POST Change State Operation Occurrences - Method not implemented
    [Documentation]    Test ID: 8.3.1.3.1
    ...    Test title: POST Change State Operation Occurrence - Method not implemented
    ...    Test title: POST Change State Operation Occurrences - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Post request for Change State Operation Occurrence
    Send Post request for Change State Operation Occurrences
    Check HTTP Response Status Code Is    405
    
GET Change State Operation Occurrence
GET Change State Operation Occurrences
    [Documentation]    Test ID: 8.3.1.3.2
    ...    Test title: GET Change State Operation Occurrence
    ...    Test title: GET Change State Operation Occurrences
    ...    Test objective: The objective is to query status information about multiple change state operation occurrences.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get Change State Operation Occurrence
    Get Change State Operation Occurrences
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOccs
    
GET Change State Operation Occurrence - invalid attribute-based filter
GET Change State Operation Occurrences - invalid attribute-based filter
    [Documentation]    Test ID: 8.3.1.3.3
    ...    Test title: GET Change State Operation Occurrence - invalid attribute-based filter
    ...    Test objective:  The objective is to test that the retrieval of Change State Operation Occurrence fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET Change State Operation Occurrences - invalid attribute-based filter
    ...    Test objective:  The objective is to test that the retrieval of Change State Operation Occurrences fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence with invalid filter
    Get Change State Operation Occurrences with invalid filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails   
    
GET Change State Operation Occurrence - invalid attribute selector
GET Change State Operation Occurrences - invalid attribute selector
    [Documentation]    Test ID: 8.3.1.3.4
    ...    Test title: GET Change State Operation Occurrence - invalid attribute selector
    ...    Test objective: The objective is to test that the retrieval of Change State Operation Occurrence fails when using invalid attribute selector, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET Change State Operation Occurrences - invalid attribute selector
    ...    Test objective: The objective is to test that the retrieval of Change State Operation Occurrences fails when using invalid attribute selector, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence with invalid selector
    Get Change State Operation Occurrences with invalid selector
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails  
    
GET Change State Operation Occurrence - Bad Request Response too Big
GET Change State Operation Occurrences - Bad Request Response too Big
    [Documentation]    Test ID: 8.3.1.3.5
    ...    Test title: GET Change State Operation Occurrence - Bad Request Response too Big
    ...    Test objective: The objective is to test that the retrieval of Change State Operation Occurrence fails when response is too big, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET Change State Operation Occurrences - Bad Request Response too Big
    ...    Test objective: The objective is to test that the retrieval of Change State Operation Occurrences fails when response is too big, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence
    Get Change State Operation Occurrences
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
GET Change State Operation Occurrence with attribute-based filter
GET Change State Operation Occurrences with attribute-based filter
    [Documentation]    Test ID: 8.3.1.3.6
    ...    Test title: GET Change State Operation Occurrence with attribute-based filter
    ...    Test title: GET Change State Operation Occurrences with attribute-based filter
    ...    Test objective: The objective is to query status information about multiple change state operation occurrences with attribute filters
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence with filter
    Get Change State Operation Occurrences with filter
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc
    
GET Change State Operation Occurrence with "all_fields" attribute selector
GET Change State Operation Occurrences with "all_fields" attribute selector
    [Documentation]    Test ID: 8.3.1.3.7
    ...    Test title: GET Change State Operation Occurrence with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve Change State Operation Occurrence with "all_fields" attribute selector
    ...    Test title: GET Change State Operation Occurrences with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve Change State Operation Occurrences with "all_fields" attribute selector
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence with all_fields attribute selector
    Get Change State Operation Occurrences with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc
    
GET Change State Operation Occurrence with "exclude_default" attribute selector
GET Change State Operation Occurrences with "exclude_default" attribute selector
    [Documentation]    Test ID: 8.3.1.3.8
    ...    Test title: GET Change State Operation Occurrence with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve Change State Operation Occurrence with "exclude_default" attribute selector
@@ -112,7 +112,7 @@ GET Change State Operation Occurrence with "exclude_default" attribute selector
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc

    
GET Change State Operation Occurrence with "fields" attribute selector
GET Change State Operation Occurrences with "fields" attribute selector
    [Documentation]    Test ID: 8.3.1.3.9
    ...    Test title: GET Change State Operation Occurrence with "fields" attribute selector
    ...    Test objective: The objective is to retrieve Change State Operation Occurrence with fields attribute selector
@@ -125,7 +125,7 @@ GET Change State Operation Occurrence with "fields" attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc
     
GET Change State Operation Occurrence with "exclude_fields" attribute selector
GET Change State Operation Occurrences with "exclude_fields" attribute selector
    [Documentation]    Test ID: 8.3.1.3.10
    ...    Test title: GET Change State Operation Occurrence with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve Change State Operation Occurrence with "exclude_fields" attribute selector
@@ -134,11 +134,11 @@ GET Change State Operation Occurrence with "exclude_fields" attribute selector
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Change State Operation Occurrence with exclude_fields attribute selector
    Get Change State Operation Occurrences with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc
    
GET Change State Operation Occurrence with Paged Response
GET Change State Operation Occurrences with Paged Response
    [Documentation]    Test ID: 8.3.1.3.11
    ...    Test title: GET Change State Operation Occurrence with Paged Response
    ...    Test objective: The objective is to query Change State Operation Occurrence to get Paged Response.
@@ -151,9 +151,9 @@ GET Change State Operation Occurrence with Paged Response
    Check HTTP Response Status Code Is    200
    Check LINK in Header

PUT Change State Operation Occurrence - Method not implemented
PUT Change State Operation Occurrences - Method not implemented
    [Documentation]    Test ID: 8.3.1.3.12
    ...    Test title: PUT Change State Operation Occurrence - Method not implemented
    ...    Test title: PUT Change State Operation Occurrences - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
@@ -163,9 +163,9 @@ PUT Change State Operation Occurrence - Method not implemented
    Send Put request for Change State Operation Occurrence
    Check HTTP Response Status Code Is    405
    
PATCH Change State Operation Occurrence - Method not implemented
PATCH Change State Operation Occurrences - Method not implemented
    [Documentation]    Test ID: 8.3.1.3.13
    ...    Test title: PATCH Change State Operation Occurrence - Method not implemented
    ...    Test title: PATCH Change State Operation Occurrences - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
@@ -175,9 +175,9 @@ PATCH Change State Operation Occurrence - Method not implemented
    Send Patch request for Change State Operation Occurrence
    Check HTTP Response Status Code Is    405

DELETE Change State Operation Occurrence - Method not implemented
DELETE Change State Operation Occurrences - Method not implemented
    [Documentation]    Test ID: 8.3.1.3.14
    ...    Test title: DELETE Change State Operation Occurrence - Method not implemented
    ...    Test title: DELETE Change State Operation Occurrences - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.8.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
+16 −16
Original line number Diff line number Diff line
@@ -8,63 +8,63 @@ Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT}
Library           MockServerLibrary

*** Test Cases ***
POST Individual Change State Operation Occurance - Method not implemented
POST Individual Change State Operation Occurrence - Method not implemented
    [Documentation]    Test ID: 8.3.1.4.1
    ...    Test title: POST Individual Change State Operation Occurance - Method not implemented
    ...    Test title: POST Individual Change State Operation Occurrence - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.9.3.1 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Post request for Individual Change State Operation Occurance
    Send Post request for Individual Change State Operation Occurrence
    Check HTTP Response Status Code Is    405
    
GET Individual Change State Operation Occurance
GET Individual Change State Operation Occurrence
    [Documentation]    Test ID: 8.3.1.4.2
    ...    Test title: GET Individual Change State Operation Occurance
    ...    Test objective: The objective is to query status information about Individual change state operation occurrences.
    ...    Test title: GET Individual Change State Operation Occurrence
    ...    Test objective: The objective is to query status information about Individual change state operation occurrence.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.9.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions:  none
    Get Individual Change State OpOcc
    Get Individual Change State Operation Occurrence
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ChangeStateOpOcc
    
PUT Individual Change State Operation Occurance - Method not implemented
PUT Individual Change State Operation Occurrence - Method not implemented
    [Documentation]    Test ID: 8.3.1.4.3
    ...    Test title: PUT Individual Change State Operation Occurance - Method not implemented
    ...    Test title: PUT Individual Change State Operation Occurrence - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.9.3.3 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Put request for Individual Change State Operation Occurance
    Send Put request for Individual Change State Operation Occurrence
    Check HTTP Response Status Code Is    405
    
PATCH Individual Change State Operation Occurance - Method not implemented
PATCH Individual Change State Operation Occurrence - Method not implemented
    [Documentation]    Test ID: 8.3.1.4.4
    ...    Test title: PATCH Individual Change State Operation Occurance - Method not implemented
    ...    Test title: PATCH Individual Change State Operation Occurrence - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.9.3.4 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Patch request for Individual Change State Operation Occurance
    Send Patch request for Individual Change State Operation Occurrence
    Check HTTP Response Status Code Is    405

DELETE Individual Change State Operation Occurance - Method not implemented
DELETE Individual Change State Operation Occurrence - Method not implemented
    [Documentation]    Test ID: 8.3.1.4.5
    ...    Test title: DELETE Individual Change State Operation Occurance - Method not implemented
    ...    Test title: DELETE Individual Change State Operation Occurrence - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.9.3.5 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Delete request for Individual Change State Operation Occurance
    Send Delete request for Individual Change State Operation Occurrence
    Check HTTP Response Status Code Is    405
 No newline at end of file
+11 −11
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ Send Delete request for NFV-MANO functional entity application state change
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    
Send Post request for Change State Operation Occurrence
Send Post request for Change State Operation Occurrences
    Log    Trying to perform a POST (method should not be implemented)
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -128,7 +128,7 @@ Send Post request for Change State Operation Occurrence
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    
Get Change State Operation Occurrence
Get Change State Operation Occurrences
    Log    Query to GET information about multiple change state operation occurrences.
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -137,7 +137,7 @@ Get Change State Operation Occurrence
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Get Change State Operation Occurrence with invalid filter
Get Change State Operation Occurrences with invalid filter
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query and validate response
@@ -145,7 +145,7 @@ Get Change State Operation Occurrence with invalid filter
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}	
	
Get Change State Operation Occurrence with invalid selector
Get Change State Operation Occurrences with invalid selector
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query and validate response
@@ -153,7 +153,7 @@ Get Change State Operation Occurrence with invalid selector
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}	

Get Change State Operation Occurrence with filter
Get Change State Operation Occurrences with filter
    Log    Query  information about multiple change state operation occurrences with attribute filters.
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -162,7 +162,7 @@ Get Change State Operation Occurrence with filter
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Get Change State Operation Occurrence with all_fields attribute selector
Get Change State Operation Occurrences with all_fields attribute selector
    Log    Queries information about multiple change state operation occurrences, using all_fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -170,7 +170,7 @@ Get Change State Operation Occurrence with all_fields attribute selector
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get Change State Operation Occurrence with fields attribute selector
Get Change State Operation Occurrences with fields attribute selector
    Log    Queries information about multiple change state operation occurrences, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -178,7 +178,7 @@ Get Change State Operation Occurrence with fields attribute selector
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get Change State Operation Occurrence with exclude_fields attribute selector
Get Change State Operation Occurrences with exclude_fields attribute selector
    Log    Queries information about multiple change state operation occurrences, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -190,7 +190,7 @@ Check LINK in Header
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}

Send PUT request for Change State Operation Occurrence
Send PUT request for Change State Operation Occurrences
    log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -198,7 +198,7 @@ Send PUT request for Change State Operation Occurrence
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Send PATCH request for Change State Operation Occurrence
Send PATCH request for Change State Operation Occurrences
    log    Trying to perform a PATCH. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -206,7 +206,7 @@ Send PATCH request for Change State Operation Occurrence
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Send DELETE request for Change State Operation Occurrence
Send DELETE request for Change State Operation Occurrences
    log    Trying to perform a DELETE. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}