Robot tests for feature 11014 - reset-values flag in helm upgrade
Change-Id: Icfb5f8b2ff4a7b37d6424d768b850ab1dc738464
Signed-off-by: uniyalna <uuniyal@indracompany.com>
diff --git a/robot-systest/lib/ns_lib.resource b/robot-systest/lib/ns_lib.resource
index 9c996c0..cce11c7 100644
--- a/robot-systest/lib/ns_lib.resource
+++ b/robot-systest/lib/ns_lib.resource
@@ -243,3 +243,15 @@
${stdout}= Run osm ns-show ${ns_id} --literal | grep nsd-id | awk '{print $2}'
Log ${stdout}
RETURN ${stdout}
+
+Get Additional Params And Values From Kdu
+ [Documentation] Return the value of additional params (empty if none) of a KNF instance.
+ [Arguments] ${ns_name} ${param_name}
+ Should Not Be Empty ${ns_name}
+ Should Not Be Empty ${param_name}
+ ${rc0} ${stdout0}= Run And Return Rc And Output osm ns-show ${ns_name} --literal | yq -e '._admin.deployed' | yq '.K8s[]."detailed-status"'
+ Should Be Equal As Integers ${rc0} ${SUCCESS_RETURN_CODE} msg=${stdout0} values=False
+ ${rc} ${stdout}= Run And Return Rc And Output echo ${stdout0} | yq '.config.${param_name}'
+ Should Be Equal As Integers ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False
+ ${return}= Set Variable If '${stdout}' == 'null' ${EMPTY} ${stdout}
+ RETURN ${return}