Commit ff6e5ba7 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

added tests for nextpage_opaque_marker

parent 214eee4b
Loading
Loading
Loading
Loading
+58 −48
Original line number Original line Diff line number Diff line
@@ -59,57 +59,50 @@ Get information about multiple alarms Bad Request Invalid attribute-based filter
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


GET information about multiple alarms with "all_fields" attribute selector
Void
    [Documentation]    Test ID: 7.3.5.1.5
    [Documentation]    Test ID: 7.3.5.1.5
    ...    Test title: GET information about multiple alarms with "all_fields" attribute selector
    ...    Test title: Void
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: Void
    ...    Pre-conditions: none
    ...    Pre-conditions: Void
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none
    ...    Post-Conditions: Void
    GET Alarms Task with all_fields attribute selector
    Void
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Alarms
    
    
GET information about multiple alarms with exclude_default attribute selector
Void
    [Documentation]    Test ID: 7.3.5.1.6
    [Documentation]    Test ID: 7.3.5.1.6
    ...    Test title: GET information about multiple alarms with "exclude_default" attribute selector
    ...    Test title: Void
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: Void
    ...    Pre-conditions: none
    ...    Pre-conditions: Void
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none
    ...    Post-Conditions: Void
    GET Alarms Task with exclude_default attribute selector
    Void
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Alarms
    
    
GET information about multiple alarms with fields attribute selector
Void
    [Documentation]    Test ID: 7.3.5.1.7
    [Documentation]    Test ID: 7.3.5.1.7
    ...    Test title: GET information about multiple alarms with fields attribute selector
    ...    Test title: Void
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: Void
    ...    Pre-conditions: none 
    ...    Pre-conditions: Void
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none
    ...    Post-Conditions: Void
    GET Alarms Task with fields attribute selector
    Void
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    Alarms
    
    
GET information about multiple alarms with "exclude_fields" attribute selector
Void
    [Documentation]    Test ID: 7.3.5.1.8
    [Documentation]    Test ID: 7.3.5.1.8
    ...    Test title: GET information about multiple alarms with "exclude_fields" attribute selector
    ...    Test title: Void
    ...    Test objective: The objective is to retrieve information about the alarm list
    ...    Test objective: Void
    ...    Pre-conditions: none 
    ...    Pre-conditions: Void
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none
    ...    Post-Conditions: Void
    GET Alarms Task with exclude_fields attribute selector
    Void 
    Check HTTP Response Status Code Is    200

    Check HTTP Response Body Json Schema Is    Alarms 
    
    
PUT Alarms - Method not implemented
PUT Alarms - Method not implemented
    [Documentation]    Test ID: 7.3.5.1.9
    [Documentation]    Test ID: 7.3.5.1.9
@@ -154,12 +147,25 @@ Get information about multiple alarms as a Paged Response
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: The VNFM supports response paging for the VNF alarm resources
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET Fault Management Alarms
    GET Fault Management Alarms
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Contain Link
    Check HTTP Response Header Contain Link


GET information about multiple alarms as a Paged Response with nextpage_opauque_marker parameter 
     [Documentation]    Test ID: 7.3.5.1.12a
    ...    Test title: GET information about multiple alarms as a Paged Response with nextpage_opauque_marker parameter  
    ...    Test objective: The objective is to query information about multiple alarms as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
    ...    Pre-conditions: A request for retrieving multiple alarms as a paged response has been successfully issued (Test ID: 7.3.5.1.12)
    ...    Reference: Clause 7.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: The VNFM supports response paging for the VNF alarm resources
    ...    Post-Conditions: none 
    GET Fault Management Alarms with nextpage_opaque_marker parameter 
    Check HTTP Response Status Code Is    200

  
Get information about multiple alarms - Bad Request Response too Big
Get information about multiple alarms - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.5.1.13
    [Documentation]    Test ID: 7.3.5.1.13
    ...    Test title:  Get information about multiple alarms - Bad Request Response too Big
    ...    Test title:  Get information about multiple alarms - Bad Request Response too Big
@@ -172,3 +178,7 @@ Get information about multiple alarms - Bad Request Response too Big
    GET Fault Management Alarms
    GET Fault Management Alarms
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
*** Keywords ***
Void
    Log    do nothing
+18 −1
Original line number Original line Diff line number Diff line
@@ -126,6 +126,16 @@ GET Fault Management Alarms
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
    Set Global Variable    ${response}    ${outputResponse}
    Set Global Variable    ${response}    ${outputResponse}


GET Fault Management Alarms with nextpage_opaque_marker parameter
    Log    Get next page of subscriptions
    Set Headers  {"Accept":"${ACCEPT_JSON}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Log    Execute Query using the URI provided in the previous GET request and validate response
    Get    ${nextPageUri}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	

 
GET Fault Management Alarms With Filters
GET Fault Management Alarms With Filters
	Log    Query NFVO The GET method queries information about multiple alarms with filters.
	Log    Query NFVO The GET method queries information about multiple alarms with filters.
	Set Headers  {"Accept":"${ACCEPT}"}  
	Set Headers  {"Accept":"${ACCEPT}"}  
@@ -422,6 +432,13 @@ DELETE Individual Subscription
Check HTTP Response Header Contain Link
Check HTTP Response Header Contain Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    ${linkURL}=    Get Value From Json    ${response['headers']}    $..Link
    Should Not Be Empty    ${linkURL}
    Should Not Be Empty    ${linkURL}
    Log    Check that Link header contains rel set to next
    Should Contain    ${linkURL}    rel="next"
    Log    Check that Link header contains URI to next page between <>
    ${linkHeaderUri}=    Get Regexp Matches    ${linkURL}    (?<=\<)(.*?)(?=\>)
    ${length}=    Get Length    ${linkHeaderUri}	
    Should Be Equal As Integers	${length}	0
    Set Global Variable    ${nextPageUri}    ${linkHeaderUri[0]}
    
    
Get subscriptions with filter "id"
Get subscriptions with filter "id"
    Log    Get the list of active subscriptions using a filter "id"
    Log    Get the list of active subscriptions using a filter "id"
+1 −0
Original line number Original line Diff line number Diff line
@@ -29,6 +29,7 @@ ${apiRoot} /
${apiName}        vnffm
${apiName}        vnffm
${apiMajorVersion}     v1
${apiMajorVersion}     v1


${nextPageUri}    /some_uri


${subscriptionId}    6fc3539c-e602-4afa-8e13-962fb5a7d81f
${subscriptionId}    6fc3539c-e602-4afa-8e13-962fb5a7d81f
${notification_type}    AlarmNotification
${notification_type}    AlarmNotification
+68 −60
Original line number Original line Diff line number Diff line
@@ -89,60 +89,52 @@ GET subscriptions - Bad Request Invalid attribute-based filtering parameters
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails


#GET subscriptions with all_fields attribute selector
Void
#     [Documentation]    Test ID: 7.3.1.17.7
    [Documentation]    Test ID: 7.3.1.17.7
#    ...    Test title: GET subscriptions with all_fields attribute selector
    ...    Test title: Void
#    ...    Test objective: The objective is Get the list of active subscriptions
    ...    Test objective: Void
#    ...    Pre-conditions: none
    ...    Pre-conditions: Void
#    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Void
#    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
#    ...    Applicability: none
    ...    Applicability: Void
#    ...    Post-Conditions: none 
    ...    Post-Conditions: Void
#    Get subscriptions with all_fields attribute selector
    Void
#    Check HTTP Response Status Code Is    200
    
#    Check HTTP Response Body Json Schema Is    Subscriptions
Void

    [Documentation]    Test ID: 7.3.1.17.8
#GET subscriptions with exclude_default attribute selector
    ...    Test title: Void
#    [Documentation]    Test ID: 7.3.1.17.8
    ...    Test objective: Void
#    ...    Test title: GET subscriptions with exclude_default attribute selector
    ...    Pre-conditions: Void
#   ...    Test objective: The objective is Get the list of active subscriptions
    ...    Reference: Void
#    ...    Pre-conditions: none
    ...    Config ID: Void
#    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Applicability: Void
#    ...    Config ID: Config_prod_VNFM
    ...    Post-Conditions: Void
#    ...    Applicability: none
    Void
#    ...    Post-Conditions: none 
    
#    Get subscriptions with exclude_default attribute selector
Void
#    Check HTTP Response Status Code Is    200
    [Documentation]    Test ID: 7.3.1.17.9
#    Check HTTP Response Body Json Schema Is    Subscriptions
    ...    Test title: Void

    ...    Test objective: Void
#GET subscriptions with fields attribute selector
    ...    Pre-conditions: Void
#     [Documentation]    Test ID: 7.3.1.17.9
    ...    Reference: Void
#    ...    Test title: GET subscriptions with fields attribute selector
    ...    Config ID: Void
#    ...    Test objective: The objective is Get the list of active subscriptions
    ...    Applicability: Void
#    ...    Pre-conditions: none
    ...    Post-Conditions: Void
#    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    Void
#    ...    Config ID: Config_prod_VNFM
    
#    ...    Applicability: none
Void
#    ...    Post-Conditions: none 
    [Documentation]    Test ID: 7.3.1.17.10
#    Get subscriptions with fields attribute selector
    ...    Test title: Void
#    Check HTTP Response Status Code Is    200
    ...    Test objective: Void
#    Check HTTP Response Body Json Schema Is    Subscriptions
    ...    Pre-conditions: Void

    ...    Reference: Void
#GET subscriptions with exclude_fields attribute selector
    ...    Config ID: Void
#     [Documentation]    Test ID: 7.3.1.17.10
    ...    Applicability: Void
#    ...    Test title: GET subscriptions with exclude_fields attribute selector
    ...    Post-Conditions: Void
#    ...    Test objective: The objective is Get the list of active subscriptions
    Void
#    ...    Pre-conditions: none
#    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
#    ...    Config ID: Config_prod_VNFM
#    ...    Applicability: none
#    ...    Post-Conditions: none 
#    Get subscriptions with exclude_fields attribute selector
#    Check HTTP Response Status Code Is    200
#    Check HTTP Response Body Json Schema Is    Subscriptions


PUT subscriptions - Method not implemented
PUT subscriptions - Method not implemented
    [Documentation]    Test ID: 7.3.1.17.7
    [Documentation]    Test ID: 7.3.1.17.11
    ...    Test title: PUT subscriptions - Method not implemented
    ...    Test title: PUT subscriptions - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -154,7 +146,7 @@ PUT subscriptions - Method not implemented
	Check HTTP Response Status Code Is    405
	Check HTTP Response Status Code Is    405


PATCH subscriptions - Method not implemented
PATCH subscriptions - Method not implemented
    [Documentation]    Test ID: 7.3.1.17.8
    [Documentation]    Test ID: 7.3.1.17.12
    ...    Test title: PATCH subscriptions - Method not implemented
    ...    Test title: PATCH subscriptions - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -166,7 +158,7 @@ PATCH subscriptions - Method not implemented
	Check HTTP Response Status Code Is    405
	Check HTTP Response Status Code Is    405


DELETE subscriptions - Method not implemented
DELETE subscriptions - Method not implemented
    [Documentation]    Test ID: 7.3.1.17.9
    [Documentation]    Test ID: 7.3.1.17.13
    ...    Test title: DELETE subscriptions - Method not implemented
    ...    Test title: DELETE subscriptions - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -178,20 +170,20 @@ DELETE subscriptions - Method not implemented
	Check HTTP Response Status Code Is    405
	Check HTTP Response Status Code Is    405
    
    
GET Subscriptions as a Paged Response
GET Subscriptions as a Paged Response
     [Documentation]    Test ID: 7.3.1.17.10
     [Documentation]    Test ID: 7.3.1.17.14
    ...    Test title: GET Subscriptions as a Paged Response
    ...    Test title: GET Subscriptions as a Paged Response
    ...    Test objective: The objective is Get the list of active subscriptions as a Paged Response.
    ...    Test objective: The objective is Get the list of active subscriptions as a Paged Response.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: The VNFM supports response paging for the subscriptions resources
    ...    Post-Conditions: none 
    ...    Post-Conditions: none 
    Get subscriptions
    Get subscriptions
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Contain Link
    Check HTTP Response Header Contain Link
    
    
GET subscriptions - Bad Request Response too Big
GET subscriptions - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.1.17.11
    [Documentation]    Test ID: 7.3.1.17.15
    ...    Test title: GET subscriptions - Bad Request Response too Big
    ...    Test title: GET subscriptions - Bad Request Response too Big
    ...    Test objective: The objective is to test that the retrieval of the list of active subscriptions fails because response is too big. The test also checks the JSON schema of the unsuccessful operation HTTP response.
    ...    Test objective: The objective is to test that the retrieval of the list of active subscriptions fails because response is too big. The test also checks the JSON schema of the unsuccessful operation HTTP response.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -204,14 +196,30 @@ GET subscriptions - Bad Request Response too Big
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
    
POST Create a new Subscription - Unprocessable Entity
POST Create a new Subscription - Unprocessable Entity
    [Documentation]    Test ID: 7.3.1.17.12
    [Documentation]    Test ID: 7.3.1.17.16
    ...    Test title: POST Create a new Subscription - Unprocessable Entity
    ...    Test title: POST Create a new Subscription - Unprocessable Entity
    ...    Test objective: The objective is to test that content type of the payload body is supported and the payload body of a request contains syntactically correct data but the data cannot be processed.
    ...    Test objective: The objective is to test that content type of the payload body is supported and the payload body of a request contains syntactically correct data but the data cannot be processed.
    ...    re-conditions: none
    ...    re-conditions: none
    ...    Reference: Clause 8.4.5.3.1 - ETSI GS NFV-SOL 002 [2] v3.3.1
    ...    Reference: Clause 5.4.18.3.1 - ETSI GS NFV-SOL 003 [2] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Post Create subscription
    Post Create subscription
    Check HTTP Response Status Code Is    422
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is  ProblemDetails
    Check HTTP Response Body Json Schema Is  ProblemDetails
    
GET Subscriptions as a Paged Response with nextpage_opauque_marker parameter 
     [Documentation]    Test ID: 7.3.1.17.17
    ...    Test title: GET Subscriptions as a Paged Response with nextpage_opauque_marker parameter 
    ...    Test objective: The objective is to Get the list of active subscriptions as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
    ...    Pre-conditions: A request for retrieving subscriptions as a paged response has been successfully issued (Test ID: 7.3.1.17.14)
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: The VNFM supports response paging for the subscriptions resources
    ...    Post-Conditions: none 
    Get subscriptions with nextpage_opaque_marker parameter 
    Check HTTP Response Status Code Is    200
  
*** Keywords ***
Void
    Log    do nothing
+14 −2
Original line number Original line Diff line number Diff line
@@ -156,12 +156,24 @@ GET information about multiple VNF instances to get Paged Response
    ...    Pre-conditions:  none
    ...    Pre-conditions:  none
    ...    Reference: Clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Reference: Clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: The VNFM supports response paging for the subscriptions resources
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET multiple vnfInstances
    GET multiple vnfInstances
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Contain Link
    Check HTTP Response Header Contain Link


GET information about multiple VNF instances as a Paged Response with nextpage_opauque_marker parameter 
     [Documentation]    Test ID: 7.3.1.17.12a
    ...    Test title: GET information about multiple VNF instances as a Paged Response with nextpage_opauque_marker parameter 
    ...    Test objective: The objective is to query information about multiple VNF instances as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
    ...    Pre-conditions: A request for retrieving multiple VNF instances as a paged response has been successfully issued (Test ID: 7.3.1.1.12)
    ...    Reference: Clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: The VNFM supports response paging for the VNF instance resources
    ...    Post-Conditions: none 
    Get multiple vnfInstances with nextpage_opaque_marker parameter 
    Check HTTP Response Status Code Is    200

GET information about multiple VNF instances - Bad Request Response too Big
GET information about multiple VNF instances - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.1.1.13
    [Documentation]    Test ID: 7.3.1.1.13
    ...    Test title: GET information about multiple VNF instances - Bad Request Response too Big
    ...    Test title: GET information about multiple VNF instances - Bad Request Response too Big
Loading