From ad1b2ff23468f96749693e36db1ab5058b2114b0 Mon Sep 17 00:00:00 2001
From: hammad zafar <hammad.zafar@xflowresearch.com>
Date: Thu, 4 Mar 2021 12:22:15 +0500
Subject: [PATCH] corrected test ID and updated template variable for
 CreateVnfSnapshotInfoRequest.json

---
 SOL002/VNFLifecycleManagement-API/VNFSnapshots.robot        | 2 +-
 .../VnfLcmOperationKeywords.robot                           | 2 +-
 SOL002/VNFLifecycleManagement-API/environment/variables.txt | 1 +
 .../jsons/CreateVnfSnapshotInfoRequest.json                 | 6 +++---
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/SOL002/VNFLifecycleManagement-API/VNFSnapshots.robot b/SOL002/VNFLifecycleManagement-API/VNFSnapshots.robot
index baa1fce5..59df66d7 100644
--- a/SOL002/VNFLifecycleManagement-API/VNFSnapshots.robot
+++ b/SOL002/VNFLifecycleManagement-API/VNFSnapshots.robot
@@ -172,7 +172,7 @@ PATCH VNF Snapshots - Method not implemented
     Check HTTP Response Status Code Is    405
 
 DELETE VNF Snapshots - Method not implemented
-    [Documentation]    Test ID: 6.3.5.25.11
+    [Documentation]    Test ID: 6.3.5.25.14
     ...    Test title: DELETE VNF Snapshots - Method not implemented
     ...    Test objective: The objective is to test that DELETE method is not implemented
     ...    Pre-conditions: none 
diff --git a/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot b/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
index d093d31d..4ff17df6 100644
--- a/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
+++ b/SOL002/VNFLifecycleManagement-API/VnfLcmOperationKeywords.robot
@@ -198,7 +198,7 @@ POST Create a new VNF Snapshot
     Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
     Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
     ${template} =    Get File    jsons/CreateVnfSnapshotInfoRequest.json
-    ${body}=        Format String   ${template}     vnfdId=${Descriptor_ID}
+    ${body}=        Format String   ${template}     vnfSnapshotPkgId=${vnfSnapshotPkgId}
     Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots    ${body}
     ${outputResponse}=    Output    response
 	Set Global Variable    ${response}    ${outputResponse} 	
diff --git a/SOL002/VNFLifecycleManagement-API/environment/variables.txt b/SOL002/VNFLifecycleManagement-API/environment/variables.txt
index e16cba00..fb0bb290 100644
--- a/SOL002/VNFLifecycleManagement-API/environment/variables.txt
+++ b/SOL002/VNFLifecycleManagement-API/environment/variables.txt
@@ -50,6 +50,7 @@ ${PAGING_SUPPORTED}    0
 ${vnfSnapshotInfoId}
 ${invalidVnfSnapshotInfoId}
 ${vnfSnapshotInfoId_InUse}    snapshotId-of-a-resource-AlreadyInUse
+${vnfSnapshotPkgId}
 
 ${callback_uri}    http://localhost
 ${callback_port}    9091
diff --git a/SOL002/VNFLifecycleManagement-API/jsons/CreateVnfSnapshotInfoRequest.json b/SOL002/VNFLifecycleManagement-API/jsons/CreateVnfSnapshotInfoRequest.json
index 55fd9aa6..c16bca9c 100644
--- a/SOL002/VNFLifecycleManagement-API/jsons/CreateVnfSnapshotInfoRequest.json
+++ b/SOL002/VNFLifecycleManagement-API/jsons/CreateVnfSnapshotInfoRequest.json
@@ -1,3 +1,3 @@
-{
-  "vnfSnapshotPkgId": ""
-}
\ No newline at end of file
+{{
+  "vnfSnapshotPkgId": "{vnfSnapshotPkgId}"
+}}
\ No newline at end of file
-- 
GitLab