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

added tests for nextpage_opaque_marker SOL003 VNFLCM

parent 20c9eb76
Loading
Loading
Loading
Loading
+63 −54
Original line number Original line Diff line number Diff line
@@ -89,57 +89,49 @@ 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] v2.8.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

GET subscriptions with exclude_default attribute selector
    [Documentation]    Test ID: 7.3.1.17.8
    [Documentation]    Test ID: 7.3.1.17.8
    ...    Test title: GET subscriptions with exclude_default 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] v2.8.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none 
    ...    Post-Conditions: Void
    Get subscriptions with exclude_default attribute selector
    Void
    Check HTTP Response Status Code Is    200
    
    Check HTTP Response Body Json Schema Is    Subscriptions
Void

GET subscriptions with fields attribute selector
    [Documentation]    Test ID: 7.3.1.17.9
    [Documentation]    Test ID: 7.3.1.17.9
    ...    Test title: GET subscriptions with 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] v2.8.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none 
    ...    Post-Conditions: Void
    Get subscriptions with fields attribute selector
    Void
    Check HTTP Response Status Code Is    200
    
    Check HTTP Response Body Json Schema Is    Subscriptions
Void

GET subscriptions with exclude_fields attribute selector
    [Documentation]    Test ID: 7.3.1.17.10
    [Documentation]    Test ID: 7.3.1.17.10
    ...    Test title: GET subscriptions with exclude_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] v2.8.1
    ...    Reference: Void
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Void
    ...    Applicability: none
    ...    Applicability: Void
    ...    Post-Conditions: none 
    ...    Post-Conditions: Void
    Get subscriptions with exclude_fields attribute selector
    Void
    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.11
    [Documentation]    Test ID: 7.3.1.17.11
@@ -184,7 +176,7 @@ GET Subscriptions as a Paged Response
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Reference: Clause 5.4.18.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.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
@@ -208,10 +200,27 @@ POST Create a new Subscription - Unprocessable Entity
    ...    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 003 [1] v2.8.1
    ...    Reference: Clause 5.4.18.3.1 - ETSI GS NFV-SOL 003 [1] v2.8.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
     
 No newline at end of file
+16 −3
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] v2.8.1
    ...    Reference: Clause 5.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.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
@@ -187,3 +199,4 @@ GET information about multiple VNF instances with "exclude_default" and "fields"
    GET multiple vnfInstances with exclude_default and fields attribute selector
    GET multiple vnfInstances with exclude_default and fields attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstances
    Check HTTP Response Body Json Schema Is    vnfInstances
    
 No newline at end of file
+40 −2
Original line number Original line Diff line number Diff line
@@ -437,6 +437,16 @@ GET multiple vnfInstances
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 		
	Set Global Variable    ${response}    ${outputResponse} 		


Get multiple vnfInstances with nextpage_opaque_marker parameter
    Log    Get next page of subscriptions
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    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 multiple vnfInstances with bad attribute	
GET multiple vnfInstances with bad attribute	
    Log    Query VNF The GET method queries information about multiple VNF instances.
    Log    Query VNF The GET method queries information about multiple VNF instances.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -942,6 +952,15 @@ GET VNF LCM Operation occurrences
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}
Get VNF LCM Operation occurrences with nextpage_opaque_marker parameter
    Log    Get next page of subscriptions
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    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 VNF LCM Operation occurrences invalid attribute
GET VNF LCM Operation occurrences invalid attribute
    Log    Query status information about multiple VNF lifecycle management operation occurrences.
    Log    Query status information about multiple VNF lifecycle management operation occurrences.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -1307,6 +1326,17 @@ Get subscriptions
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions	
    Get    ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions	
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}

Get subscriptions with nextpage_opaque_marker parameter
    Log    Get next page of subscriptions
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    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 subscriptions - filter
Get subscriptions - filter
    Log    Get the list of active subscriptions using a filter
    Log    Get the list of active subscriptions using a filter
    Set Headers    {"Accept": "${ACCEPT}"}
    Set Headers    {"Accept": "${ACCEPT}"}
@@ -1440,6 +1470,7 @@ POST Operation occurrence
    Verify Mock Expectation  ${req}
    Verify Mock Expectation  ${req}
    Log  Cleaning the endpoint
    Log  Cleaning the endpoint
    Clear Requests  ${callback_endpoint}
    Clear Requests  ${callback_endpoint}
    
POST Id creation
POST Id creation
    log    The POST method delivers a notification from the server to the client.
    log    The POST method delivers a notification from the server to the client.
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
    ${json}=	Get File	schemas/vnfIdentifierCreationNotification.schema.json
@@ -1478,6 +1509,13 @@ GET test endpoint
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]}    
    
    
Check HTTP Response Body vnfInstance content against VNF Descriptor
Check HTTP Response Body vnfInstance content against VNF Descriptor
    Run Keyword If    ${check_descriptors} == 1    Check Individual VNF Instance Content
    Run Keyword If    ${check_descriptors} == 1    Check Individual VNF Instance Content
+13 −1
Original line number Original line Diff line number Diff line
@@ -152,12 +152,24 @@ GET status information about multiple VNF LCM Operation OCC to get Paged Respons
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.12.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Reference: Clause 5.4.12.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: The VNFM supports response paging for the VNF lifecycle management operation occurrences resources
    ...    Post-Conditions: none   
    ...    Post-Conditions: none   
    GET VNF LCM Operation occurrences
    GET VNF LCM Operation occurrences
    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 LCM Operation OCC as a Paged Response with nextpage_opauque_marker parameter 
     [Documentation]    Test ID: 7.3.1.11.12a
    ...    Test title: GET information about multiple VNF LCM Operation OCC as a Paged Response with nextpage_opauque_marker parameter 
    ...    Test objective: The objective is to query information about multiple VNF lifecycle management operation occurrences as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
    ...    Pre-conditions: A request for retrieving multiple VNF lifecycle management operation occurrences as a paged response has been successfully issued (Test ID: 7.3.1.11.12)
    ...    Reference: Clause 5.4.12.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 lifecycle management operation occurrences resources
    ...    Post-Conditions: none 
    GET VNF LCM Operation occurrences with nextpage_opaque_marker parameter 
    Check HTTP Response Status Code Is    200

GET status information about multiple VNF LCM Operation OCC - Bad Request Response too Big
GET status information about multiple VNF LCM Operation OCC - Bad Request Response too Big
    [Documentation]    Test ID: 7.3.1.11.13
    [Documentation]    Test ID: 7.3.1.11.13
    ...    Test title: GET status information about multiple VNF LCM Operation OCC - Bad Request Response too Big
    ...    Test title: GET status information about multiple VNF LCM Operation OCC - Bad Request Response too Big
+1 −0
Original line number Original line Diff line number Diff line
@@ -97,6 +97,7 @@ ${stopType} FORCEFUL


${terminationType}    GRACEFUL
${terminationType}    GRACEFUL


${nextPageUri}    /someuri


${LccnSubscriptions}    
${LccnSubscriptions}    
${scaleInfo}
${scaleInfo}