Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
This test only passes if there are exactly 3 healthy/in-service datanodes:
Filter list by NodeOperationalState ${uuid} = Execute ozone admin datanode list | grep '^Datanode:' | head -1 | awk '{ print \$2 }' ${output} = Execute ozone admin datanode list --operational-state IN_SERVICE Should contain ${output} Datanode: ${uuid} ${datanodes} = Get Lines Containing String ${output} Datanode: @{lines} = Split To Lines ${datanodes} ${count} = Get Length ${lines} Should Be Equal As Integers ${count} 3 Filter list by NodeState ${uuid} = Execute ozone admin datanode list | grep '^Datanode:' | head -1 | awk '{ print \$2 }' ${output} = Execute ozone admin datanode list --node-state HEALTHY Should contain ${output} Datanode: ${uuid} ${datanodes} = Get Lines Containing String ${output} Datanode: @{lines} = Split To Lines ${datanodes} ${count} = Get Length ${lines} Should Be Equal As Integers ${count} 3
It should be less specific about number of nodes.