Update gitops_02 to set properly VIM_NAME and CLUSTER_NAME variables 35/15235/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 16 Jun 2025 10:43:11 +0000 (12:43 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 16 Jun 2025 11:08:20 +0000 (13:08 +0200)
Change-Id: Ideb090fb76329ef803e6ada444238010bb2905b9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot

index b5cc383..48115d8 100644 (file)
@@ -41,8 +41,9 @@ ${OKA_NS_PKG}   apps/namespace
 ${OKA_NS_NAME}   namespace
 ${OKA_NS_PROFILE}   app-profile
 
-# Cluster
-${CLUSTER_NAME}   cl-madrid-norte1
+# VIM and Cluster
+${VIM_NAME}   gitops_02_vim
+${CLUSTER_NAME}   cl-gitops_02
 ${CLUSTER_DESCRIPTION}   "Cluster for gitops02 Robot test suite"
 
 # KSUs
@@ -58,7 +59,7 @@ ${KSU2_ID}   ${EMPTY}
 Create Dummy VIM For The Testsuite
     [Documentation]   Create dummy VIM for the testsuite.
     [Tags]   vim   cluster   create
-    ${vim_id}=   Create VIM Target   gitops_02_vim   u   p   http://localhost/dummy   t   dummy
+    ${vim_id}=   Create VIM Target   ${VIM_NAME}   u   p   http://localhost/dummy   t   dummy
     Set Suite Variable   ${VIM_ID}   ${vim_id}
 
 Add OKA Packages For The Testsuite
@@ -71,7 +72,7 @@ Add OKA Packages For The Testsuite
 Register Cluster For Testsuite
     [Documentation]   Register K8s cluster for the testsuite.
     [Tags]   cluster   create
-    ${id}=   Register Cluster   ${CLUSTER_NAME}   ${VIM_ID}   %{CLUSTER_KUBECONFIG_CREDENTIALS}   ${CLUSTER_DESCRIPTION}
+    ${id}=   Register Cluster   ${CLUSTER_NAME}   ${VIM_NAME}   %{CLUSTER_KUBECONFIG_CREDENTIALS}   ${CLUSTER_DESCRIPTION}
     Set Suite Variable   ${CLUSTER_ID}   ${id}
     Log   ${CLUSTER_ID}