Skip to content
Snippets Groups Projects
Commit 838a8b0d authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

added tests for nextpage_opaque_marker SOL003 VNFPM

parent 0f9680d5
No related branches found
No related tags found
2 merge requests!228Merge 2.8.1 dev into Master",!226Merve 2.8.1 dev into Master
......@@ -178,11 +178,23 @@ GET all VNF Performance Monitoring Jobs as Paged Response
... Pre-conditions: A VNF instance is instantiated. One or more VNF performance jobs are set in the VNF.
... Reference: Clause 6.4.2.3.2 - ETSI GS NFV-SOL 003 [1] v2.8.1
... Config ID: Config_prod_VNFM
... Applicability: none
... Applicability: The VNFM supports response paging for the VNF performance jobs resources
... Post-Conditions: none
GET all VNF Performance Monitoring Jobs
Check HTTP Response Status Code Is 200
Check LINK in Header
Check HTTP Response Header Contain Link
GET all VNF Performance Monitoring Jobs as Paged Response with nextpage_opauque_marker parameter
[Documentation] Test ID: 7.3.4.1.13a
... Test title: GET all VNF Performance Monitoring Jobs as Paged Response with nextpage_opauque_marker parameter
... Test objective: The objective is to query information about all the available VNF performance monitoring jobs as a Paged Response and retrieve the next page using the nextpage_opaque_marker parameter
... Pre-conditions: A request for retrieving the available VNF performance monitoring jobs as a paged response has been successfully issued (Test ID: 7.3.4.1.13)
... Reference: Clause 6.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 performance jobs resources
... Post-Conditions: none
GET all VNF Performance Monitoring Jobs with nextpage_opaque_marker parameter
Check HTTP Response Status Code Is 200
GET VNF Performance Monitoring Jobs - Bad Request Response too Big
[Documentation] Test ID: 7.3.4.1.14
......@@ -229,7 +241,27 @@ Create Sessions
Start Process java -jar ${MOCK_SERVER_JAR} -serverPort ${callback_port} alias=mockInstance
Wait For Process handle=mockInstance timeout=5s on_timeout=continue
Create Mock Session ${callback_uri}:${callback_port}
Check HTTP Response Header Contain Link
${linkURL}= Get Value From Json ${response['headers']} $..Link
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 all VNF Performance Monitoring Jobs 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 all VNF Performance Monitoring Jobs
Log Trying to get all PM Jobs present in the VNFM
Set Headers {"Accept": "${ACCEPT_JSON}"}
......
......@@ -33,6 +33,7 @@ ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.
${objectInstanceIds} 1f50d68b-82e8-4deb-bd40-c934d4d1ac0a
${nextPageUri} /some_uri
${pmJobId} 29f4ff6a-be91-4ec8-856e-fcf1e2479e4e
${erroneousPmJobId} erroneousPmJobId
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment