Skip to content

Commit

Permalink
HDDS-9427. Add robot test for ozone admin pipeline list --json (#5423)
Browse files Browse the repository at this point in the history
  • Loading branch information
LZD-PratyushBhatt authored Oct 11, 2023
1 parent ae58e4a commit 98363c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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"}])'

Should be true $output

Deactivate pipeline
Execute ozone admin pipeline deactivate "${PIPELINE}"
${output} = Execute ozone admin pipeline list | grep "${PIPELINE}"
Expand Down

0 comments on commit 98363c9

Please sign in to comment.