Add execution of primitives to k8s_04 35/12035/2
authorDavid Garcia <david.garcia@canonical.com>
Wed, 11 May 2022 14:04:26 +0000 (16:04 +0200)
committergarciadav <david.garcia@canonical.com>
Wed, 11 May 2022 21:24:15 +0000 (23:24 +0200)
Change-Id: I5d87c6f9c83fadab349be1b100f5b7dc3f8b44f5
Signed-off-by: David Garcia <david.garcia@canonical.com>
robot-systest/testsuite/k8s_04-openldap_helm.robot

index 8264bf4..5ce9ea3 100644 (file)
@@ -36,14 +36,14 @@ ${k8scluster_name}   k8s04
 ${k8scluster_version}   v1
 
 # NS and VNF descriptor package folder and ids
-${vnfd_pkg}   openldap_knf
+${vnfd_pkg}   openldap_primitives_knf
 ${vnfd_name}   openldap_knf
-${nsd_pkg}   openldap_ns
+${nsd_pkg}   openldap_primitives_ns
 ${nsd_name}   openldap_ns
 
 # NS instance name and configuration
 ${ns_name}   ldap
-${ns_config}   {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}} ] }
+${ns_config}   {vld: [ {name: mgmtnet, vim-network-name: %{VIM_MGMT_NET}}], additionalParamsForVnf: [ {member-vnf-index: openldap, additionalParamsForKdu: [ {kdu_name: ldap, additionalParams: {service: {type: LoadBalancer }, adminPassword: admin}} ] } ] }
 
 ${ns_id}   ${EMPTY}
 ${publickey}   ${EMPTY}
@@ -52,7 +52,9 @@ ${kdu_name}   ldap
 ${upgrade_action}   upgrade
 ${rollback_action}   rollback
 ${replica_count}   3
-
+${action_name}   get-user-info
+${action_param_cn}   admin
+${action_param_dc}   example.org
 
 *** Test Cases ***
 Create Package For OpenLDAP CNF
@@ -83,6 +85,12 @@ Get Vnf Id
     Log List  ${vnfr_list}
     Set Suite Variable  ${vnf_id}  ${vnfr_list}[0]
 
+Execute Day 2 Operations
+    [Documentation]     Performs one Day 2 operation.
+
+    Variable Should Exist  ${ns_id}  msg=Network service instance is not available
+    ${ns_op_id}=  Execute NS K8s Action  ${ns_name}  ${action_name}  ${vnf_member_index}  ${kdu_name}  cn=${action_param_cn}  dc=${action_param_dc}
+
 Execute Upgrade Operation
     [Tags]   verify
     Variable Should Exist  ${ns_id}  msg=Network service instance is not available