From 0c14bb154c889ffea8d8bb165ae1b489a8570608 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 1 Oct 2020 16:26:20 +0000 Subject: [PATCH] Fix k8scluster_lib keywords to log output of k8scluster-list Change-Id: Ie922c4e41bdcbcaf27e6cced053d319d8445007a Signed-off-by: garciadeblas --- robot-systest/lib/k8scluster_lib.robot | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/robot-systest/lib/k8scluster_lib.robot b/robot-systest/lib/k8scluster_lib.robot index 8a68bce..5dd43ac 100644 --- a/robot-systest/lib/k8scluster_lib.robot +++ b/robot-systest/lib/k8scluster_lib.robot @@ -54,12 +54,16 @@ Check For K8s Cluster To Be Deleted Check For K8s Cluster To Be Ready [Arguments] ${k8scluster_name} - ${rc} ${stdout}= Run and Return RC and Output osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" | awk '{print $2}' | grep ${k8scluster_name} + ${rc} ${stdout}= Run and Return RC and Output osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED,DEGRADED" + log ${stdout} + ${rc} ${stdout}= Run and Return RC and Output echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Should Be Equal As Integers ${rc} ${success_return_code} Should Be Equal As Strings ${stdout} ${k8scluster_name} Check For K8s Cluster To Be Enabled [Arguments] ${k8scluster_name} - ${rc} ${stdout}= Run and Return RC and Output osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED" | awk '{print $2}' | grep ${k8scluster_name} + ${rc} ${stdout}= Run and Return RC and Output osm k8scluster-list --filter name="${k8scluster_name}" --filter _admin.operationalState="ENABLED" + log ${stdout} + ${rc} ${stdout}= Run and Return RC and Output echo "${stdout}" | awk '{print $2}' | grep ${k8scluster_name} Should Be Equal As Integers ${rc} ${success_return_code} Should Be Equal As Strings ${stdout} ${k8scluster_name} -- 2.25.1