Commit ea3a36e7 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

fixed NFVMANOCim NFVMANO interface(s)

parent 11670aa4
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ Send Delete request for Individual Change State Operation Occurance
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Send Post request for NFV-MANO Service Interface
Send Post request for NFV-MANO Service Interfaces
    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}"}
@@ -263,7 +263,7 @@ Send Post request for NFV-MANO Service Interface
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    
Get NFV-MANO Service Interface
Get NFV-MANO Service Interfaces
    Log    Query to GET information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity.
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -272,7 +272,7 @@ Get NFV-MANO Service Interface
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Get NFV-MANO Service Interface with invalid filter
Get NFV-MANO Service Interfaces with invalid filter
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query and validate response
@@ -280,7 +280,7 @@ Get NFV-MANO Service Interface with invalid filter
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}	
	
Get NFV-MANO Service Interface with invalid selector
Get NFV-MANO Service Interfaces with invalid selector
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Log    Execute Query and validate response
@@ -288,7 +288,7 @@ Get NFV-MANO Service Interface with invalid selector
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}	

Get NFV-MANO Service Interface with filter
Get NFV-MANO Service Interfaces with filter
    Log    Query  information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity with attribute filters.
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -297,7 +297,7 @@ Get NFV-MANO Service Interface with filter
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Get NFV-MANO Service Interface with all_fields attribute selector
Get NFV-MANO Service Interfaces with all_fields attribute selector
    Log    Queries information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity, using all_fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -305,7 +305,7 @@ Get NFV-MANO Service Interface with all_fields attribute selector
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get NFV-MANO Service Interface with fields attribute selector
Get NFV-MANO Service Interfaces with fields attribute selector
    Log    Queries information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -313,7 +313,7 @@ Get NFV-MANO Service Interface with fields attribute selector
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}

Get NFV-MANO Service Interface with exclude_fields attribute selector
Get NFV-MANO Service Interfaces with exclude_fields attribute selector
    Log    Queries information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity, using fields
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
@@ -321,7 +321,7 @@ Get NFV-MANO Service Interface with exclude_fields attribute selector
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    
Send PUT request for NFV-MANO Service Interface
Send PUT request for NFV-MANO Service Interfaces
    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}"}
@@ -329,7 +329,7 @@ Send PUT request for NFV-MANO Service Interface
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Send PATCH request for NFV-MANO Service Interface
Send PATCH request for NFV-MANO Service Interfaces
    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}"}
@@ -337,7 +337,7 @@ Send PATCH request for NFV-MANO Service Interface
    ${outputResponse}=    Output    response
	Set Global Variable    @{response}    ${outputResponse}
	
Send DELETE request for NFV-MANO Service Interface
Send DELETE request for NFV-MANO Service Interfaces
    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}"}
+48 −48
Original line number Diff line number Diff line
@@ -8,181 +8,181 @@ Library REST ${NFVMANO_SCHEMA}://${NFVMANO_HOST}:${NFVMANO_PORT}
Library           MockServerLibrary

*** Test Cases ***
POST NFV-MANO Service Interface - Method not implemented
POST NFV-MANO Service Interfaces - Method not implemented
    [Documentation]    Test ID: 8.3.1.5.1
    ...    Test title: POST NFV-MANO Service Interface - Method not implemented
    ...    Test title: POST NFV-MANO Service Interfaces - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.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 NFV-MANO Service Interface
    Send Post request for NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    405
    
GET NFV-MANO Service Interface
GET NFV-MANO Service Interfaces
    [Documentation]    Test ID: 8.3.1.5.2
    ...    Test title: GET NFV-MANO Service Interface
    ...    Test title: GET NFV-MANO Service Interfaces
    ...    Test objective: The objective is to query status information about multiple NFV-MANO service interfaces of the NFV-MANO functional entity.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions:  none
    Get NFV-MANO Service Interface
    Get NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces
    
GET NFV-MANO Service Interface - invalid attribute-based filter
GET NFV-MANO Service Interfaces - invalid attribute-based filter
    [Documentation]    Test ID: 8.3.1.5.3
    ...    Test title: GET NFV-MANO Service Interface - invalid attribute-based filter
    ...    Test objective:  The objective is to test that the retrieval of NFV-MANO Service Interface fails when using invalid attribute-based filter, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET NFV-MANO Service Interfaces - invalid attribute-based filter
    ...    Test objective:  The objective is to test that the retrieval of NFV-MANO Service Interfaces 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.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with invalid filter
    Get NFV-MANO Service Interfaces with invalid filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails   
    
GET NFV-MANO Service Interface - invalid attribute selector
GET NFV-MANO Service Interfaces - invalid attribute selector
    [Documentation]    Test ID: 8.3.1.5.4
    ...    Test title: GET NFV-MANO Service Interface - invalid attribute selector
    ...    Test objective: The objective is to test that the retrieval of NFV-MANO Service Interface fails when using invalid attribute selector, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET NFV-MANO Service Interfaces - invalid attribute selector
    ...    Test objective: The objective is to test that the retrieval of NFV-MANO Service Interfaces 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.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with invalid selector
    Get NFV-MANO Service Interfaces with invalid selector
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails  
    
GET NFV-MANO Service Interface - Bad Request Response too Big
GET NFV-MANO Service Interfaces - Bad Request Response too Big
    [Documentation]    Test ID: 8.3.1.5.5
    ...    Test title: GET NFV-MANO Service Interface - Bad Request Response too Big
    ...    Test objective: The objective is to test that the retrieval of NFV-MANO Service Interface fails when response is too big, and perform the JSON schema validation of the failed operation HTTP response.
    ...    Test title: GET NFV-MANO Service Interfaces - Bad Request Response too Big
    ...    Test objective: The objective is to test that the retrieval of NFV-MANO Service Interfaces 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.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface
    Get NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
GET NFV-MANO Service Interface with attribute-based filter
GET NFV-MANO Service Interfaces with attribute-based filter
    [Documentation]    Test ID: 8.3.1.5.6
    ...    Test title: GET NFV-MANO Service Interface with attribute-based filter
    ...    Test title: GET NFV-MANO Service Interfaces with attribute-based filter
    ...    Test objective: The objective is to query status information about multiple NFV-MANO service interfaces of the NFV-MANO functional entities with attribute filters
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with filter
    Get NFV-MANO Service Interfaces with filter
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces
    
GET NFV-MANO Service Interface with "all_fields" attribute selector
GET NFV-MANO Service Interfaces with "all_fields" attribute selector
    [Documentation]    Test ID: 8.3.1.5.7
    ...    Test title: GET NFV-MANO Service Interface with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interface with "all_fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interfaces with "all_fields" attribute selector
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with all_fields attribute selector
    Get NFV-MANO Service Interfaces with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces
    
GET NFV-MANO Service Interface with "exclude_default" attribute selector
GET NFV-MANO Service Interfaces with "exclude_default" attribute selector
    [Documentation]    Test ID: 8.3.1.5.8
    ...    Test title: GET NFV-MANO Service Interface with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interface with "exclude_default" attribute selector
    ...    Test title: GET NFV-MANO Service Interfaces with "exclude_default" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interfaces with "exclude_default" attribute selector
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with all_fields attribute selector
    Get NFV-MANO Service Interfaces with all_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces

    
GET NFV-MANO Service Interface with "fields" attribute selector
GET NFV-MANO Service Interfaces with "fields" attribute selector
    [Documentation]    Test ID: 8.3.1.5.9
    ...    Test title: GET NFV-MANO Service Interface with "fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interface with fields attribute selector
    ...    Test title: GET NFV-MANO Service Interfaces with "fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interfaces with fields attribute selector
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with fields attribute selector
    Get NFV-MANO Service Interfaces with fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces
     
GET NFV-MANO Service Interface with "exclude_fields" attribute selector
GET NFV-MANO Service Interfaces with "exclude_fields" attribute selector
    [Documentation]    Test ID: 8.3.1.5.10
    ...    Test title: GET NFV-MANO Service Interface with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interface with "exclude_fields" attribute selector
    ...    Test title: GET NFV-MANO Service Interfaces with "exclude_fields" attribute selector
    ...    Test objective: The objective is to retrieve NFV-MANO Service Interfaces with "exclude_fields" attribute selector
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface with exclude_fields attribute selector
    Get NFV-MANO Service Interfaces with exclude_fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ManoServiceInterfaces
    
GET NFV-MANO Service Interface with Paged Response
GET NFV-MANO Service Interfaces with Paged Response
    [Documentation]    Test ID: 8.3.1.5.11
    ...    Test title: GET NFV-MANO Service Interface with Paged Response
    ...    Test title: GET NFV-MANO Service Interfaces with Paged Response
    ...    Test objective: The objective is to query NFV-MANO Service Interface to get Paged Response.
    ...    Pre-conditions:  none
    ...    Reference: clause 5.5.10.3.2 - ETSI GS NFV-SOL 009 [5] V3.3.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get NFV-MANO Service Interface
    Get NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    200
    Check LINK in Header

PUT NFV-MANO Service Interface - Method not implemented
PUT NFV-MANO Service Interfaces - Method not implemented
    [Documentation]    Test ID: 8.3.1.5.12
    ...    Test title: PUT NFV-MANO Service Interface - Method not implemented
    ...    Test title: PUT NFV-MANO Service Interfaces - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.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 NFV-MANO Service Interface
    Send Put request for NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    405
    
PATCH NFV-MANO Service Interface - Method not implemented
PATCH NFV-MANO Service Interfaces - Method not implemented
    [Documentation]    Test ID: 8.3.1.5.13
    ...    Test title: PATCH NFV-MANO Service Interface - Method not implemented
    ...    Test title: PATCH NFV-MANO Service Interfaces - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.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 NFV-MANO Service Interface
    Send Patch request for NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    405

DELETE NFV-MANO Service Interface - Method not implemented
DELETE NFV-MANO Service Interfaces - Method not implemented
    [Documentation]    Test ID: 8.3.1.5.14
    ...    Test title: DELETE NFV-MANO Service Interface - Method not implemented
    ...    Test title: DELETE NFV-MANO Service Interfaces - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemeted.
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.10.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 NFV-MANO Service Interface
    Send Delete request for NFV-MANO Service Interfaces
    Check HTTP Response Status Code Is    405
 No newline at end of file