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 8415f3b8765 HDDS-13671. Reduce CLI calls in ozone admin container 
Robot test (#10947)
8415f3b8765 is described below

commit 8415f3b87653bd737ace381efe4b27c79641ed04
Author: sravani <[email protected]>
AuthorDate: Tue Aug 4 20:32:36 2026 +0530

    HDDS-13671. Reduce CLI calls in ozone admin container Robot test (#10947)
---
 .../dist/src/main/smoketest/admincli/container.robot       | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/hadoop-ozone/dist/src/main/smoketest/admincli/container.robot 
b/hadoop-ozone/dist/src/main/smoketest/admincli/container.robot
index f0c11b0881c..9e1a8b156cd 100644
--- a/hadoop-ozone/dist/src/main/smoketest/admincli/container.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/admincli/container.robot
@@ -36,16 +36,18 @@ Container is closed
 
 Container checksums should match
     [arguments]    ${container}    ${expected_checksum}
-    ${data_checksum1} =  Execute     ozone admin container reconcile --status 
"${container}" | jq -r '.[].replicas[0].dataChecksum'
-    ${data_checksum2} =  Execute     ozone admin container reconcile --status 
"${container}" | jq -r '.[].replicas[1].dataChecksum'
-    ${data_checksum3} =  Execute     ozone admin container reconcile --status 
"${container}" | jq -r '.[].replicas[2].dataChecksum'
+    ${reconcile_output} =  Execute     ozone admin container reconcile 
--status "${container}"
+    ${data_checksum1} =    Execute     echo '${reconcile_output}' | jq -r 
'.[].replicas[0].dataChecksum'
+    ${data_checksum2} =    Execute     echo '${reconcile_output}' | jq -r 
'.[].replicas[1].dataChecksum'
+    ${data_checksum3} =    Execute     echo '${reconcile_output}' | jq -r 
'.[].replicas[2].dataChecksum'
                          Should be equal as strings    ${data_checksum1}    
${expected_checksum}
                          Should be equal as strings    ${data_checksum2}    
${expected_checksum}
                          Should be equal as strings    ${data_checksum3}    
${expected_checksum}
     # Verify that container info shows the same checksums as reconcile status
-    ${info_checksum1} =  Execute     ozone admin container info "${container}" 
--json | jq -r '.replicas[0].dataChecksum'
-    ${info_checksum2} =  Execute     ozone admin container info "${container}" 
--json | jq -r '.replicas[1].dataChecksum'
-    ${info_checksum3} =  Execute     ozone admin container info "${container}" 
--json | jq -r '.replicas[2].dataChecksum'
+    ${info_output} =       Execute     ozone admin container info 
"${container}" --json
+    ${info_checksum1} =    Execute     echo '${info_output}' | jq -r 
'.replicas[0].dataChecksum'
+    ${info_checksum2} =    Execute     echo '${info_output}' | jq -r 
'.replicas[1].dataChecksum'
+    ${info_checksum3} =    Execute     echo '${info_output}' | jq -r 
'.replicas[2].dataChecksum'
                          Should be equal as strings    ${data_checksum1}    
${info_checksum1}
                          Should be equal as strings    ${data_checksum2}    
${info_checksum2}
                          Should be equal as strings    ${data_checksum3}    
${info_checksum3}


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

Reply via email to