Update gitops02 testsuite to use a dummy VIM for cluster registration instead of... 84/15184/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 25 Apr 2025 11:54:18 +0000 (13:54 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 25 Apr 2025 11:54:18 +0000 (13:54 +0200)
Change-Id: I6fb674d8de5269389a8f5b27cd957293beaba272
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot

index 4f3a07a..b5cc383 100644 (file)
@@ -21,6 +21,7 @@ Library   Collections
 Library   Process
 
 Resource   ../lib/advanced_cluster_mgmt_lib.resource
+Resource   ../lib/vim_lib.resource
 
 Test Tags   gitops_02   cluster_gitops
 
@@ -54,6 +55,12 @@ ${KSU2_ID}   ${EMPTY}
 
 
 *** Test Cases ***
+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
+    Set Suite Variable   ${VIM_ID}   ${vim_id}
+
 Add OKA Packages For The Testsuite
     [Documentation]   Add OKA packages for the testsuite.
     [Tags]   oka   create
@@ -64,7 +71,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_TARGET}   %{CLUSTER_KUBECONFIG_CREDENTIALS}   ${CLUSTER_DESCRIPTION}
+    ${id}=   Register Cluster   ${CLUSTER_NAME}   ${VIM_ID}   %{CLUSTER_KUBECONFIG_CREDENTIALS}   ${CLUSTER_DESCRIPTION}
     Set Suite Variable   ${CLUSTER_ID}   ${id}
     Log   ${CLUSTER_ID}
 
@@ -132,6 +139,11 @@ Deregister Cluster For Testsuite
     [Tags]   cleanup   cluster
     Deregister Cluster   ${CLUSTER_NAME}
 
+Delete Dummy VIM For The Testsuite
+    [Documentation]   Delete dummy VIM for the testsuite.
+    [Tags]   vim   cluster   cleanup
+    Delete VIM Target   gitops_02_vim
+
 Delete OKA Packages For The Testsuite
     [Documentation]   Delete OKA packages for the testsuite.
     [Tags]   cleanup   oka