*** Variables ***
${success_return_code} 0
-${k8scluster_launch_max_wait_time} 5min
+${k8scluster_launch_max_wait_time} 6min
${k8scluster_launch_pol_time} 30sec
${k8scluster_delete_max_wait_time} 2min
${k8scluster_delete_pol_time} 15sec
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
WAIT UNTIL KEYWORD SUCCEEDS ${k8scluster_launch_max_wait_time} ${k8scluster_launch_pol_time} Check For K8s Cluster To Be Ready ${k8scluster_name}
+ Check For K8s Cluster To Be Enabled ${k8scluster_name}
[Return] ${stdout}
Delete K8s Cluster
Should Be Empty ${stdout}
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}
+ 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}
Should Be Equal As Integers ${rc} ${success_return_code}