From f78d54eed1ea1f7f36a441c617528656d2a5c790 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 25 Apr 2025 13:54:18 +0200 Subject: [PATCH] Update gitops02 testsuite to use a dummy VIM for cluster registration instead of default VIM_TARGET Change-Id: I6fb674d8de5269389a8f5b27cd957293beaba272 Signed-off-by: garciadeblas --- ...-declarative_cluster_registration_oka_ksu.robot | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot b/robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot index 4f3a07a..b5cc383 100644 --- a/robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot +++ b/robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot @@ -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 -- 2.25.1