From 4a7520c4e85c0c20028a1f3424fd328db0e38c1f Mon Sep 17 00:00:00 2001
From: zulfiqar <sana.zulfiqar@xflowresearch.com>
Date: Fri, 5 Mar 2021 09:18:11 +0100
Subject: [PATCH] added TD for onboarded_vnf_packages

---
 .../VNFPackageArtifacts.robot                       | 13 +++++++++++++
 .../VNFPackageManagementKeywords.robot              |  8 ++++++++
 2 files changed, 21 insertions(+)

diff --git a/SOL003/VNFPackageManagement-API/VNFPackageArtifacts.robot b/SOL003/VNFPackageManagement-API/VNFPackageArtifacts.robot
index 946193f6..2d8d1e99 100644
--- a/SOL003/VNFPackageManagement-API/VNFPackageArtifacts.robot
+++ b/SOL003/VNFPackageManagement-API/VNFPackageArtifacts.robot
@@ -399,4 +399,17 @@ Get VNF Package Artifact with "include_external_artifacts" parameter
     ...    Post-Conditions: none
     Get Artifact in VNF Package with include_external_artifacts parameter
     Check HTTP Response Status Code Is    200
+    Check HTTP Response Header Content-Type Is    application/zip
+    
+Get OnBoarded VNF Package Artifact with "include_external_artifacts" parameter
+    [Documentation]    Test ID: 7.3.3.11.17
+    ...    Test title: Get OnBoarded VNF Package Artifact with "include_external_artifacts" parameter
+    ...    Test objective: The objective is to test that the GET request read the whole content of the archive containing the external OnBoarded VNF Package Artifacts successfully when requested with "include_external_artifacts" parameter
+    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
+    ...    Reference: Clause 10.4.5a.3.2 - ETSI GS NFV-SOL 003 [1] v3.3.1
+    ...    Config ID: Config_prod_NFVO
+    ...    Applicability: none
+    ...    Post-Conditions: none
+    Get Artifact in OnBoarded VNF Package with include_external_artifacts parameter
+    Check HTTP Response Status Code Is    200
     Check HTTP Response Header Content-Type Is    application/zip
\ No newline at end of file
diff --git a/SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot b/SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
index 398dc75c..d8fff843 100644
--- a/SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
+++ b/SOL003/VNFPackageManagement-API/VNFPackageManagementKeywords.robot
@@ -1454,6 +1454,14 @@ Get Artifact in OnBoarded VNF Package with exclude_all_non_mano_artifacts parame
     ${output}=    Output    response
     Set Suite Variable    ${response}    ${output}
     
+Get Artifact in OnBoarded VNF Package with include_external_artifacts parameter
+    Log    Trying to get Artifact in OnBoarded VNF Package with include_external_artifacts
+    Set Headers    {"Accept": "${ACCEPT_ZIP}"}
+    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
+    GET    ${apiRoot}/${apiName}/${apiMajorVersion}/onboarded_vnf_packages/${vnfPackageId}/artifacts/include_external_artifacts
+    ${output}=    Output    response
+    Set Suite Variable    ${response}    ${output}
+    
 Get Artifact in OnBoarded VNF Package with select_non_mano_artifact_sets parameter
     Log    Trying to get Artifact in OnBoarded VNF Package with security certificates
     Pass Execution If    ${NFVO_non-MANO_OK} == 0    Skipping this test as NFVO is not able to handle partial Requests.
-- 
GitLab