slfan1989 commented on code in PR #7016:
URL: https://github.com/apache/ozone/pull/7016#discussion_r1767966149


##########
hadoop-ozone/dist/src/main/smoketest/admincli/scmrole.robot:
##########
@@ -30,4 +30,8 @@ Run scm roles
 List scm roles as JSON
     ${output} =         Execute          ozone admin scm roles --json
     ${leader} =         Execute          echo '${output}' | jq -r '.[] | 
select(.raftPeerRole == "LEADER")'
-                        Should Not Be Equal       ${leader}       ${EMPTY}
\ No newline at end of file
+                        Should Not Be Equal       ${leader}       ${EMPTY}
+
+List scm roles as TABLE
+    ${output} =         Execute          ozone admin scm roles --table
+                        Should contain   ${output}   LEADER

Review Comment:
   @whbing If it's JSON, should we confirm the presence of characters like`{`, 
`}` and `:`among others?
   
   I have set it to `\\|.*LEADER.*`
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to