- :FOR ${component} IN @{GLOBAL_RICPLT_COMPONENTS}
- \ ${deploymentName} = Get From Dictionary ${GLOBAL_RICPLT_COMPONENTS} ${Component}
- \ ${deploy} = Deployment ${deploymentName}
- \ ${status} = Most Recent Availability Condition @{deploy.status.conditions}
- \ Should Be Equal As Strings ${status} True ignore_case=True msg=${Component} is not available
+ FOR ${component} IN @{GLOBAL_RICPLT_COMPONENTS}
+ ${controllerName} = Get From Dictionary ${GLOBAL_RICPLT_COMPONENTS} ${Component}
+ ${cType} ${name} = Split String ${controllerName} |
+ Log To Console ${cType}
+ ${ctrl} = Run Keyword ${cType} ${name}
+ Should Be Equal ${ctrl.status.replicas} ${ctrl.status.ready_replicas}
+ Log To Console ${Component}
+ #Log To Console ${cType}
+ #
+
+ Log To Console ${ctrl.status}
+ ${status} = Run Keyword If '${cType}' == 'deployment'
+ ... Most Recent Availability Condition @{ctrl.status.conditions}
+ ... ELSE
+ ... Assign True
+ Log To Console ${status}
+ Log To Console ----------------------------
+ Should Be Equal As Strings ${status} True ignore_case=True msg=${Component} is not available
+ END
+