Add KSU2 custom parameters to gitops_02 test 78/15278/4
authormesaj <juanmanuel.mesamendez.ext@telefonica.com>
Mon, 14 Jul 2025 09:45:33 +0000 (11:45 +0200)
committermesaj <juanmanuel.mesamendez.ext@telefonica.com>
Mon, 14 Jul 2025 16:50:53 +0000 (18:50 +0200)
Change-Id: I1a87e1b5c7a22d67a8a745ab441a2bb502a9ae73
Signed-off-by: mesaj <juanmanuel.mesamendez.ext@telefonica.com>
robot-systest/resources/jenkins-params.yaml [new file with mode: 0644]
robot-systest/testsuite/gitops_02-declarative_cluster_registration_oka_ksu.robot

diff --git a/robot-systest/resources/jenkins-params.yaml b/robot-systest/resources/jenkins-params.yaml
new file mode 100644 (file)
index 0000000..b6b77a2
--- /dev/null
@@ -0,0 +1,23 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+namespace: jenkins
+inline_values:
+  service:
+    ports:
+      http: "8080"
+      https: "8443"
+secret_values:
+  jenkinsUser: admin
+  jenkinsPassword: myJ3nk1n2P2ssw0rd
+
index e5ad111..f6a85db 100644 (file)
@@ -50,6 +50,7 @@ ${CLUSTER_DESCRIPTION}   "Cluster for gitops02 Robot test suite"
 ${KSU_NS_NAME}   jenkins-ns
 ${KSU1_NAME}   testacme
 ${KSU2_NAME}   jenkins
+${KSU2_PARAMS}   jenkins-params.yaml
 ${KSU_NS_ID}   ${EMPTY}
 ${KSU1_ID}   ${EMPTY}
 ${KSU2_ID}   ${EMPTY}
@@ -101,7 +102,7 @@ Create KSU1 Without Params
 Create KSU2 With Params
     [Documentation]   Create KSU based on ${OKA2_NAME} with params.
     [Tags]   ksu   ksu2   create
-    ${id}=   Create KSU   ${KSU2_NAME}   ${KSU2_NAME}   ${CLUSTER_NAME}   app-profile   ${OKA2_NAME}   ${OKA_FOLDER}/apps/jenkins-params.yaml
+    ${id}=   Create KSU   ${KSU2_NAME}   ${KSU2_NAME}   ${CLUSTER_NAME}   app-profile   ${OKA2_NAME}   %{ROBOT_DEVOPS_FOLDER}/resources/${KSU2_PARAMS}
     Set Suite Variable   ${KSU2_ID}   ${id}
     Log   ${KSU2_ID}