adoroszlai commented on code in PR #5423:
URL: https://github.com/apache/ozone/pull/5423#discussion_r1355709251


##########
hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot:
##########
@@ -36,10 +36,20 @@ List pipelines
     ${output} =         Execute          ozone admin pipeline list
                         Should contain   ${output}   STANDALONE/ONE
 
+List pipeline with json option
+    ${output} =         Execute          ozone admin pipeline list --json | jq 
'map(.replicationConfig) | contains([{"replicationFactor": "ONE", 
"replicationType": "STANDALONE"}])'
+
+    Should be true      $output
+
 List pipelines with explicit host
     ${output} =         Execute          ozone admin pipeline list --scm ${SCM}
                         Should contain   ${output}   STANDALONE/ONE
 
+List pipelines with explicit host and json option
+    ${output} =         Execute   ozone admin pipeline list --scm ${SCM} 
--json | jq 'map(.replicationConfig) | contains([{"replicationFactor": "ONE", 
"replicationType": "STANDALONE"}])'

Review Comment:
   I don't think `--scm` option needs to be tested with JSON, but no harm in 
keeping this test.



-- 
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