Commit d60ff1cc authored by Elian Kraja's avatar Elian Kraja Committed by Giacomo Bernini
Browse files

Fix issue #153

parent e26b745a
...@@ -2071,8 +2071,9 @@ GET VNF State Snapshot - Range Request ...@@ -2071,8 +2071,9 @@ GET VNF State Snapshot - Range Request
Set Headers {"Range":"${range}"} Set Headers {"Range":"${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots/${vnfSnapshotInfoId}/vnf_state_snapshot Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots/${vnfSnapshotInfoId}/vnf_state_snapshot
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET VNF State Snapshot - Invalid Range GET VNF State Snapshot - Invalid Range
Pass Execution If ${VNFM_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests. Pass Execution If ${VNFM_RANGE_OK} == 0 Skipping this test as NFVO is not able to handle partial Requests.
...@@ -2081,8 +2082,9 @@ GET VNF State Snapshot - Invalid Range ...@@ -2081,8 +2082,9 @@ GET VNF State Snapshot - Invalid Range
Set Headers {"Range":"${erroneousRange}"} Set Headers {"Range":"${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots/${vnfSnapshotInfoId}/vnf_state_snapshot Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots/${vnfSnapshotInfoId}/vnf_state_snapshot
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET VNF State Snapshot - Conflict in State GET VNF State Snapshot - Conflict in State
Log Trying to get information about a VNF State Snapshot whose creation process is not completed Log Trying to get information about a VNF State Snapshot whose creation process is not completed
...@@ -2134,4 +2136,4 @@ Check HTTP Content-Length Header Is Set ...@@ -2134,4 +2136,4 @@ Check HTTP Content-Length Header Is Set
Log Check Content-Range HTTP Header Log Check Content-Range HTTP Header
Should Contain ${response['headers']} Content-Length Should Contain ${response['headers']} Content-Length
Should Be Equal As Strings ${response['headers']['Content-Length']} ${full_length} Should Be Equal As Strings ${response['headers']['Content-Length']} ${full_length}
Log Header Content-Length is present Log Header Content-Length is present
\ No newline at end of file
...@@ -279,6 +279,7 @@ GET Individual VNF Package Content with Range Request ...@@ -279,6 +279,7 @@ GET Individual VNF Package Content with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -288,6 +289,7 @@ GET Individual VNF Package Content with explicit Range Request ...@@ -288,6 +289,7 @@ GET Individual VNF Package Content with explicit Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -311,6 +313,7 @@ GET Individual VNF Package Content with invalid Range Request ...@@ -311,6 +313,7 @@ GET Individual VNF Package Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -581,6 +584,7 @@ GET Individual VNF Package Artifact with Range Request ...@@ -581,6 +584,7 @@ GET Individual VNF Package Artifact with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath} GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -591,6 +595,7 @@ GET Individual VNF Package Artifact with invalid Range Request ...@@ -591,6 +595,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath} GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1054,6 +1059,7 @@ GET Individual OnBoarded VNF Package Content with Range Request ...@@ -1054,6 +1059,7 @@ GET Individual OnBoarded VNF Package Content with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1064,6 +1070,7 @@ GET Individual OnBoarded VNF Package Content with invalid Range Request ...@@ -1064,6 +1070,7 @@ GET Individual OnBoarded VNF Package Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1103,6 +1110,7 @@ GET Individual OnBoarded VNF Package Artifact with Range Request ...@@ -1103,6 +1110,7 @@ GET Individual OnBoarded VNF Package Artifact with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath} GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1113,6 +1121,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid Range Request ...@@ -1113,6 +1121,7 @@ GET Individual OnBoarded VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath} GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1397,6 +1406,7 @@ Get Artifact in VNF Package with Range Request ...@@ -1397,6 +1406,7 @@ Get Artifact in VNF Package with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1430,6 +1440,7 @@ GET VNF Package Artifact with invalid Range Request ...@@ -1430,6 +1440,7 @@ GET VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1520,6 +1531,7 @@ Get Artifact in OnBoarded VNF Package with Range Request ...@@ -1520,6 +1531,7 @@ Get Artifact in OnBoarded VNF Package with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1553,6 +1565,7 @@ GET OnBoarded VNF Package Artifact with invalid Range Request ...@@ -1553,6 +1565,7 @@ GET OnBoarded VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts GET ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1661,4 +1674,4 @@ Match the VNF subscription Response Attributes with Descriptors ...@@ -1661,4 +1674,4 @@ Match the VNF subscription Response Attributes with Descriptors
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts'][0]['vnfProductName']} ${Product_Name} Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts'][0]['vnfProductName']} ${Product_Name}
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfSoftwareVersion']} ${Software_Version} Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfSoftwareVersion']} ${Software_Version}
Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfdVersion']} ${Descriptor_Version} Should Be Equal As Strings ${response['body']['filter']['vnfProductsFromProviders'][0]['vnfProducts']['versions'][0]['vnfdVersion']} ${Descriptor_Version}
\ No newline at end of file
...@@ -285,6 +285,7 @@ GET VNF Snapshot Package Content - Range Request ...@@ -285,6 +285,7 @@ GET VNF Snapshot Package Content - Range Request
Set Headers {"Range":"${range}"} Set Headers {"Range":"${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -295,6 +296,7 @@ GET VNF Snapshot Package Content - Invalid Range ...@@ -295,6 +296,7 @@ GET VNF Snapshot Package Content - Invalid Range
Set Headers {"Range":"${erroneousRange}"} Set Headers {"Range":"${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -374,6 +376,7 @@ GET Individual VNF Snapshot Package Artifact - Range Request ...@@ -374,6 +376,7 @@ GET Individual VNF Snapshot Package Artifact - Range Request
Set Headers {"Range":"${range}"} Set Headers {"Range":"${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath} Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -384,6 +387,7 @@ GET Individual VNF Snapshot Package Artifact - Invalid Range ...@@ -384,6 +387,7 @@ GET Individual VNF Snapshot Package Artifact - Invalid Range
Set Headers {"Range":"${erroneousRange}"} Set Headers {"Range":"${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath} Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
......
...@@ -346,6 +346,7 @@ GET NSD Content with Range Request ...@@ -346,6 +346,7 @@ GET NSD Content with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -356,6 +357,7 @@ GET NSD Content with invalid Range Request ...@@ -356,6 +357,7 @@ GET NSD Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoIdZip}/nsd_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -658,6 +660,7 @@ Get PNFD Content with Range Request ...@@ -658,6 +660,7 @@ Get PNFD Content with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -667,6 +670,7 @@ Get PNFD Content with invalid Range Request ...@@ -667,6 +670,7 @@ Get PNFD Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/pnfd_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1379,6 +1383,7 @@ GET Individual PNFD Archive Artifact with Range Request ...@@ -1379,6 +1383,7 @@ GET Individual PNFD Archive Artifact with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/artifacts/${pnfd_artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/artifacts/${pnfd_artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1411,6 +1416,7 @@ GET Individual PNFD Archive Artifact with invalid Range Request ...@@ -1411,6 +1416,7 @@ GET Individual PNFD Archive Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/artifacts/${pnfd_artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/pnf_descriptors/${pnfdInfoId}/artifacts/${pnfd_artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1450,6 +1456,7 @@ GET Individual NSD Archive Artifact with Range Request ...@@ -1450,6 +1456,7 @@ GET Individual NSD Archive Artifact with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoId}/artifacts/${artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1494,6 +1501,7 @@ GET Individual NSD Archive Artifact with invalid Range Request ...@@ -1494,6 +1501,7 @@ GET Individual NSD Archive Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoId}/artifacts/${artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/ns_descriptors/${nsdInfoId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
......
...@@ -457,6 +457,7 @@ GET Individual VNF Package Content with Range Request ...@@ -457,6 +457,7 @@ GET Individual VNF Package Content with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -466,6 +467,7 @@ GET Individual VNF Package Content with explicit Range Request ...@@ -466,6 +467,7 @@ GET Individual VNF Package Content with explicit Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -489,6 +491,7 @@ GET Individual VNF Package Content with invalid Range Request ...@@ -489,6 +491,7 @@ GET Individual VNF Package Content with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/package_content
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -586,6 +589,7 @@ GET Individual VNF Package Artifact with Range Request ...@@ -586,6 +589,7 @@ GET Individual VNF Package Artifact with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -596,6 +600,7 @@ GET Individual VNF Package Artifact with invalid Range Request ...@@ -596,6 +600,7 @@ GET Individual VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath} REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1133,6 +1138,7 @@ Get Artifact in VNF Package with Range Request ...@@ -1133,6 +1138,7 @@ Get Artifact in VNF Package with Range Request
Set Headers {"Range": "${range}"} Set Headers {"Range": "${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
...@@ -1166,6 +1172,7 @@ GET VNF Package Artifact with invalid Range Request ...@@ -1166,6 +1172,7 @@ GET VNF Package Artifact with invalid Range Request
Set Headers {"Range": "${erroneousRange}"} Set Headers {"Range": "${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts REST.GET ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_packages/${vnfPackageId}/artifacts
Unset Headers ["Range"]
${output}= Output response ${output}= Output response
Set Suite Variable ${response} ${output} Set Suite Variable ${response} ${output}
......
...@@ -324,6 +324,7 @@ GET VNF Snapshot Package Content - Range Request ...@@ -324,6 +324,7 @@ GET VNF Snapshot Package Content - Range Request
Set Headers {"Range":"${range}"} Set Headers {"Range":"${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -334,6 +335,7 @@ GET VNF Snapshot Package Content - Invalid Range ...@@ -334,6 +335,7 @@ GET VNF Snapshot Package Content - Invalid Range
Set Headers {"Range":"${erroneousRange}"} Set Headers {"Range":"${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/package_content
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -438,6 +440,7 @@ GET Individual VNF Snapshot Package Artifact - Range Request ...@@ -438,6 +440,7 @@ GET Individual VNF Snapshot Package Artifact - Range Request
Set Headers {"Range":"${range}"} Set Headers {"Range":"${range}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath} Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -448,6 +451,7 @@ GET Individual VNF Snapshot Package Artifact - Invalid Range ...@@ -448,6 +451,7 @@ GET Individual VNF Snapshot Package Artifact - Invalid Range
Set Headers {"Range":"${erroneousRange}"} Set Headers {"Range":"${erroneousRange}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath} Get ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/artifacts/${artifactPath}
Unset Headers ["Range"]
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
...@@ -825,4 +829,4 @@ DELETE Access Configuration for External Artifacts ...@@ -825,4 +829,4 @@ DELETE Access Configuration for External Artifacts
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access Patch ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshot_packages/${vnfSnapshotPkgId}/ext_artifacts_access
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
\ No newline at end of file
## To install the libraries, use: ## To install the libraries, use:
# pip -r requirements.txt # pip -r requirements.txt
git+https://github.com/etsi-cti-admin/RESTinstance
robotframework==3.1 robotframework==3.1
RESTinstance==1.0.0rc4 #RESTinstance==1.0.0rc4
robotframework-dependencylibrary==1.0.0.post1 robotframework-dependencylibrary==1.0.0.post1
robotframework-jsonlibrary==0.3 robotframework-jsonlibrary==0.3
robotframework-jsonschemalibrary==1.0 robotframework-jsonschemalibrary==1.0
......
FROM ubuntu:16.04 FROM ubuntu:18.04
MAINTAINER ETSI STF 583 MAINTAINER ETSI STF 583
......
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