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

added tests for nextpage_opaque_marker SOL003 VR Quota

parent 386f59d8
...@@ -133,11 +133,23 @@ GET Virtualised Resources Quota Available Notification Subscriptions as Paged Re ...@@ -133,11 +133,23 @@ GET Virtualised Resources Quota Available Notification Subscriptions as Paged Re
... Pre-conditions: none ... Pre-conditions: none
... Reference: Clause 11.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1 ... Reference: Clause 11.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 subscription resources
... Post-Conditions: none ... Post-Conditions: none
GET Virtualised Resources Quota Available Notification Subscriptions GET Virtualised Resources Quota Available Notification Subscriptions
Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200
Check LINK in Header Check HTTP Response Header Contain Link
GET Virtualised Resources Quota Available Notification Subscriptions as Paged Response with nextpage_opauque_marker parameter
[Documentation] Test ID: 7.3.7.1.10a
... Test title: GET Virtualised Resources Quota Available Notification Subscriptions as Paged Response with nextpage_opauque_marker parameter
... Test objective: The objective is to query the list of active Virtualised Resources Quota Available Notification subscriptions as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
... Pre-conditions: A request for retrieving the list of active Virtualised Resources Quota Available Notification subscriptions as a paged response has been successfully issued (Test ID: 7.3.7.1.10)
... Reference: Clause 11.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 subscription resources
... Post-Conditions: none
GET Virtualised Resources Quota Available Notification Subscriptions with nextpage_opaque_marker parameter
Check HTTP Response Status Code Is 200
GET Virtualised Resources Quota Available Notification subscriptions - Bad Request Response too Big GET Virtualised Resources Quota Available Notification subscriptions - Bad Request Response too Big
[Documentation] Test ID: 7.3.7.1.11 [Documentation] Test ID: 7.3.7.1.11
...@@ -148,7 +160,7 @@ GET Virtualised Resources Quota Available Notification subscriptions - Bad Reque ...@@ -148,7 +160,7 @@ GET Virtualised Resources Quota Available Notification subscriptions - Bad Reque
... Config ID: Config_prod_VNFM ... Config ID: Config_prod_VNFM
... Applicability: none ... Applicability: none
... Post-Conditions: none ... Post-Conditions: none
GET Virtualised Resources Quota Available Notification Subscriptions GET Virtualised Resources Quota Available Notification Subscriptions
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
......
...@@ -156,6 +156,15 @@ GET Virtualised Resources Quota Available Notification Subscriptions ...@@ -156,6 +156,15 @@ GET Virtualised Resources Quota Available Notification 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 Virtualised Resources Quota Available Notification Subscriptions with nextpage_opaque_marker parameter
Log Get next page of subscriptions
Set Headers {"Accept":"${ACCEPT}"}
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 Virtualised Resources Quota Available Notification Subscriptions with Filter GET Virtualised Resources Quota Available Notification Subscriptions with Filter
Log Get the list of active subscriptions Log Get the list of active subscriptions
...@@ -201,7 +210,14 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc ...@@ -201,7 +210,14 @@ Send Delete request for Virtualised Resources Quota Available Notification subsc
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
Check LINK in Header 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]}
\ No newline at end of file
...@@ -24,6 +24,8 @@ ${sleep_interval} 20s ...@@ -24,6 +24,8 @@ ${sleep_interval} 20s
${notification_request} [] ${notification_request} []
${notification_response} [] ${notification_response} []
${nextPageUri} /some_uri
${apiRoot} / ${apiRoot} /
${apiName} vrqan ${apiName} vrqan
${apiMajorVersion} v1 ${apiMajorVersion} v1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment