Commit e70762ee authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

added new resource ManifestInIndividualVNFPackage

parent 08d342f0
*** Settings ***
Library JSONSchemaLibrary schemas/
Resource environment/variables.txt
Resource VNFPackageManagementKeywords.robot
Library JSONLibrary
Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} ssl_verify=false
*** Test Cases ***
Get Manifest in Individual VNF Package
[Documentation] Test ID: 7.3.3.9.1
... Test title: Get Manifest in Individual VNF Package
... Test objective: The objective is to test that the Get request read the content of manifest within a NVF Package and perform a validation that returned content is in plain text format
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual VNF Package
Check HTTP Response Status Code Is 200
Check HTTP Response Header Content-Type Is text/plain
Get Manifest in Individual VNF Package with security information
[Documentation] Test ID: 7.3.3.9.2
... Test title: Get Manifest in Individual VNF Package with security information
... Test objective: The objective is to test the retrieval of manifest for an individual VNF package shall also security certificates when requested with "include_signature" parameter, and perform a validation that returned content is in Zip format
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual VNF Package with security information
Check HTTP Response Status Code Is 200
Check HTTP Response Header Content-Type Is application/zip
Get Manifest in Individual VNF Package - Not acceptable
[Documentation] Test ID: 7.3.3.9.3
... Test title: Get Manifest in Individual VNF Package - Not acceptable
... Test objective: The objective is to test that retriveal of the of manifest for an individual VNF package fails when request contained an "Accept" header not compatible with the Content type "application/zip" but the "include_signatures" flag was provided, and perform a validation of the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual VNF Package
Check HTTP Response Status Code Is 406
Check HTTP Response Body Json Schema Is ProblemDetails
Get Manifest in Individual VNF Package - Conflict
[Documentation] Test ID: 7.3.3.9.4
... Test title: Get Manifest in Individual VNF Package - Conflict
... Test objective: The objective is to test that the retrieval of the manifest for an individual VNF package fails due to a conflict when the VNF Package is not in onboarding state ONBOARDED in the NFVO. The test also performs a validation of the JSON schema validation of the failed operation HTTP response
... Pre-conditions: The onboarding state of the VNF package for which the VNFD is requested is different from ONBOARDED.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual VNF Package with conflict due to onboarding state
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
POST Manifest in Individual VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.5
... Test title: POST Manifest in Individual VNF Package - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new resource
... Pre-conditions: none
... Reference: Clause 10.4.4a.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send POST Request for Manifest in individual VNF Package
Check HTTP Response Status Code Is 405
PUT Manifest in Individual VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.6
... Test title: PUT Manifest in Individual VNF Package - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PUT Request for Manifest in individual VNF Package
Check HTTP Response Status Code Is 405
PATCH Manifest in Individual VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.7
... Test title: PATCH Manifest in Individual VNF Package - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PATCH Request for Manifest in individual VNF Package
Check HTTP Response Status Code Is 405
DELETE Manifest in Individual VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.8
... Test title: DELETE Manifest in Individual VNF Package - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: Resource is not deleted by the failed operation
Send DELETE Request for Manifest in individual VNF Package
Check HTTP Response Status Code Is 405
Get Manifest in Individual OnBoarded VNF Package
[Documentation] Test ID: 7.3.3.9.9
... Test title: Get Manifest in Individual OnBoarded VNF Package
... Test objective: The objective is to test that the Get request read the content of manifest within a OnBoarded NVF Package and perform a validation that returned content is in plain text format
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual OnBoarded VNF Package
Check HTTP Response Status Code Is 200
Check HTTP Response Header Content-Type Is text/plain
Get Manifest in Individual OnBoarded VNF Package with security information
[Documentation] Test ID: 7.3.3.9.10
... Test title: Get Manifest in Individual OnBoarded VNF Package with security information
... Test objective: The objective is to test the retrieval of manifest for an individual OnBoarded VNF package shall also security certificates when requested with "include_signature" parameter, and perform a validation that returned content is in Zip format
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual OnBoarded VNF Package with security information
Check HTTP Response Status Code Is 200
Check HTTP Response Header Content-Type Is application/zip
Get Manifest in Individual OnBoarded VNF Package - Not acceptable
[Documentation] Test ID: 7.3.3.9.11
... Test title: Get Manifest in Individual OnBoarded VNF Package - Not acceptable
... Test objective: The objective is to test that retriveal of the of manifest for an individual OnBoarded VNF package fails when request contained an "Accept" header not compatible with the Content type "application/zip" but the "include_signatures" flag was provided, and perform a validation of the JSON schema validation of the failed operation HTTP response
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual OnBoarded VNF Package
Check HTTP Response Status Code Is 406
Check HTTP Response Body Json Schema Is ProblemDetails
Get Manifest in Individual OnBoarded VNF Package - Conflict
[Documentation] Test ID: 7.3.3.9.12
... Test title: Get Manifest in Individual OnBoarded VNF Package - Conflict
... Test objective: The objective is to test that the retrieval of the manifest for an individual OnBoarded VNF package fails due to a conflict when the VNF Package is not in onboarding state ONBOARDED in the NFVO. The test also performs a validation of the JSON schema validation of the failed operation HTTP response
... Pre-conditions: The onboarding state of the VNF package for which the VNFD is requested is different from ONBOARDED.
... Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Get Manifest in Individual OnBoarded VNF Package with conflict due to onboarding state
Check HTTP Response Status Code Is 409
Check HTTP Response Body Json Schema Is ProblemDetails
POST Manifest in Individual OnBoarded VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.13
... Test title: POST Manifest in Individual OnBoarded VNF Package - Method not implemented
... Test objective: The objective is to test that POST method is not allowed to create new resource
... Pre-conditions: none
... Reference: Clause 10.4.4a.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send POST Request for Manifest in individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
PUT Manifest in Individual OnBoarded VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.14
... Test title: PUT Manifest in Individual OnBoarded VNF Package - Method not implemented
... Test objective: The objective is to test that PUT method is not allowed to modify resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PUT Request for Manifest in individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
PATCH Manifest in Individual OnBoarded VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.15
... Test title: PATCH Manifest in Individual OnBoarded VNF Package - Method not implemented
... Test objective: The objective is to test that PATCH method is not allowed to update resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: none
Send PATCH Request for Manifest in individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
DELETE Manifest in Individual OnBoarded VNF Package - Method not implemented
[Documentation] Test ID: 7.3.3.9.16
... Test title: DELETE Manifest in Individual OnBoarded VNF Package - Method not implemented
... Test objective: The objective is to test that DELETE method is not allowed to delete resource
... Pre-conditions: One or more VNF packages are onboarded in the NFVO.
... Reference: Clause 10.4.4a.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions: Resource is not deleted by the failed operation
Send DELETE Request for Manifest in individual OnBoarded VNF Package
Check HTTP Response Status Code Is 405
\ No newline at end of file
......@@ -1211,4 +1211,120 @@ GET Individual OnBoarded VNF Package Artifact with incompatable header
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/artifacts/${artifactPath}/include_signatures
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
Set Suite Variable ${response} ${output}
Get Manifest in Individual VNF Package
Log Trying to get content of manifest file from a given VNF Package present in the NFVO Catalogue
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Get Manifest in Individual VNF Package with security information
Log Trying to get a manifest from a given VNF Package present in the NFVO Catalogue with security certificates
Set Headers {"Accept": "${ACCEPT_PLAIN}"}
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest/include_signatures
${output}= Output response
Set Suite Variable ${response} ${output}
Get Manifest in Individual VNF Package with conflict due to onboarding state
Log Trying to get a manifest from a given VNF Package present in the NFVO Catalogue
Set Headers {"Accept": "${ACCEPT_PLAIN}"}
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${onboardingStateVnfPkgId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send POST Request for Manifest in individual VNF Package
Log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
POST ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send PUT Request for Manifest in individual VNF Package
Log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PUT ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send PATCH Request for Manifest in individual VNF Package
Log Trying to perform a PATCH. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PATCH ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send DELETE Request for Manifest in individual VNF Package
Log Trying to perform a DELETE. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
DELETE ${apiRoot}/${apiName}/${apiVersion}/vnf_packages/${vnfPackageId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Get Manifest in Individual OnBoarded VNF Package
Log Trying to get content of manifest file from a given OnBoarded VNF Package present in the NFVO Catalogue
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Get Manifest in Individual OnBoarded VNF Package with security information
Log Trying to get a manifest from a given OnBoarded VNF Package present in the NFVO Catalogue with security certificates
Set Headers {"Accept": "${ACCEPT_PLAIN}"}
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndIdZipVnfd}/manifest/include_signatures
${output}= Output response
Set Suite Variable ${response} ${output}
Get Manifest in Individual OnBoarded VNF Package with conflict due to onboarding state
Log Trying to get a manifest from a given OnBoarded VNF Package present in the NFVO Catalogue
Set Headers {"Accept": "${ACCEPT_PLAIN}"}
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
GET ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${onboardingStateVnfdId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send POST Request for Manifest in individual OnBoarded VNF Package
Log Trying to perform a POST. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
POST ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send PUT Request for Manifest in individual OnBoarded VNF Package
Log Trying to perform a PUT. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PUT ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send PATCH Request for Manifest in individual OnBoarded VNF Package
Log Trying to perform a PATCH. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
PATCH ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
Send DELETE Request for Manifest in individual OnBoarded VNF Package
Log Trying to perform a DELETE. This method should not be implemented
Set Headers {"Accept": "${ACCEPT_ZIP}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization": "${AUTHORIZATION}"}
DELETE ${apiRoot}/${apiName}/${apiVersion}/onboarded_vnf_packages/${vndId}/manifest
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
Markdown is supported
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