From: garciadeblas Date: Thu, 1 Oct 2020 16:26:20 +0000 (+0000) Subject: Fix k8scluster_lib keywords to log output of k8scluster-list X-Git-Tag: release-v9.0-start~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c8b46fadf755d559f4715ed7666eee789040e39a;p=osm%2Ftests.git Fix k8scluster_lib keywords to log output of k8scluster-list Change-Id: Ie922c4e41bdcbcaf27e6cced053d319d8445007a Signed-off-by: garciadeblas --- 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}