This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 98363c9876 HDDS-9427. Add robot test for `ozone admin pipeline list
--json` (#5423)
98363c9876 is described below
commit 98363c987664772f397dce0200378b8b6d8abc3e
Author: Pratyush Bhatt <[email protected]>
AuthorDate: Thu Oct 12 01:33:40 2023 +0530
HDDS-9427. Add robot test for `ozone admin pipeline list --json` (#5423)
---
hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot
b/hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot
index 2f9ceee571..c35cb7f53d 100644
--- a/hadoop-ozone/dist/src/main/smoketest/admincli/pipeline.robot
+++ b/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"}])'
+
+ Should be true $output
+
Deactivate pipeline
Execute ozone admin pipeline deactivate
"${PIPELINE}"
${output} = Execute ozone admin pipeline list | grep
"${PIPELINE}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]