Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-pe": "${ACCEPT_JSON}"}
Set Headers {"${AUTHORIZATION_HEADER}":"${X-Subject-Token}"}
+ Run Process api-tests/SOL003/cnflcm/update_config.sh ${Instance_ID} ${X-Subject-Token} shell=yes
${body}= Get File api-tests/SOL003/cnflcm/jsons/inst.json
Post ${apiRoot}/${apiName}/${apiVersion}/vnf_instances/${Instance_ID}/instantiate ${body}
${outputResponse}= Output response
--- /dev/null
+#!/bin/bash
+
+# Update values in variables.txt file
+instance_id='${vnfInstanceId} '$1
+sed -i "s/$(grep vnfInstanceId api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt)/$instance_id/" api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt
+
+port='${VNFM_PORT} ''9890'
+sed -i "s/$(grep VNFM_PORT api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt)/$port/" api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt
+
+schema='${VNFM_SCHEMA} ''http'
+sed -i "s/$(grep VNFM_SCHEMA api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt)/$schema/" api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt
+
+header='${AUTHORIZATION_HEADER} ''X-Auth-Token'
+sed -i "s/$(grep AUTHORIZATION_HEADER api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt)/$header/" api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt
+
+token='${AUTHORIZATION_TOKEN} '$2
+sed -i "s/$(grep AUTHORIZATION_TOKEN api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt)/$token/" api-tests/SOL003/VNFLifecycleManagement-API/environment/variables.txt
+
+# Comment out incorrect check step and unnecessary test cases
+sed -i 's/ Check Individual VNF LCM operation occurrence operationState is STARTING/\# Check Individual VNF LCM operation occurrence operationState is STARTING\n\n\*\*\* comment \*\*\*/g' api-tests/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot
+
+#exit 0
+
suites:
- >-
/opt/stack/tacker/tacker/tests/xtesting/api-tests/SOL003/CNFDeployment/IndividualCnfLcmOperationOccurrence.robot
-
+ - case_name: cnf-heal-validation
+ project_name: smo
+ criteria: 100
+ blocking: true
+ clean_flag: false
+ description: ''
+ run:
+ name: robotframework
+ args:
+ suites:
+ - >-
+ /opt/stack/tacker/tacker/tests/xtesting/api-tests/SOL003/VNFLifecycleManagement-API/HealVNFTask.robot