ssulav commented on code in PR #8654:
URL: https://github.com/apache/ozone/pull/8654#discussion_r2163872859


##########
hadoop-ozone/dist/src/main/smoketest/ozone-fi/BytemanKeywords.robot:
##########
@@ -0,0 +1,52 @@
+*** Settings ***
+Library    ../lib/BytemanLibrary.py
+Library    String
+
+*** Variables ***
+${BYTEMAN_PORT}                   9091
+${DATANODE1_BYTEMAN_HOST_PORT}    datanode1:${BYTEMAN_PORT}
+${DATANODE2_BYTEMAN_HOST_PORT}    datanode2:${BYTEMAN_PORT}
+${DATANODE3_BYTEMAN_HOST_PORT}    datanode3:${BYTEMAN_PORT}
+${OM1_BYTEMAN_HOST_PORT}          om1:${BYTEMAN_PORT}
+${OM2_BYTEMAN_HOST_PORT}          om2:${BYTEMAN_PORT}
+${OM3_BYTEMAN_HOST_PORT}          om3:${BYTEMAN_PORT}
+${RECON_BYTEMAN_HOST_PORT}        recon:${BYTEMAN_PORT}
+${SCM1_BYTEMAN_HOST_PORT}         scm1.org:${BYTEMAN_PORT}
+${SCM2_BYTEMAN_HOST_PORT}         scm2.org:${BYTEMAN_PORT}
+${SCM3_BYTEMAN_HOST_PORT}         scm3:${BYTEMAN_PORT}
+${HTTPFS_BYTEMAN_HOST_PORT}       httpfs:${BYTEMAN_PORT}
+${S3G_BYTEMAN_HOST_PORT}          s3g:${BYTEMAN_PORT}
+
+*** Keywords ***
+Setup Byteman For Component
+    [Arguments]    ${component}    ${host_port}
+    ${host}    ${port} =    Split String    ${host_port}    :
+    Connect To Byteman Agent    ${component}    ${host}    ${port}
+    
+Setup All Byteman Agents
+    Log   Inside Setup All Byteman Agents
+    Setup Byteman For Component    datanode1   ${DATANODE1_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    datanode2   ${DATANODE2_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    datanode3   ${DATANODE3_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    om1         ${OM1_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    om2         ${OM2_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    om3         ${OM3_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    recon       ${RECON_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    scm1        ${SCM1_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    scm2        ${SCM2_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    scm3        ${SCM3_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    https       ${HTTPFS_BYTEMAN_HOST_PORT}
+    Setup Byteman For Component    s3g         ${S3G_BYTEMAN_HOST_PORT}

Review Comment:
   Cleaned up



##########
hadoop-ozone/dist/src/main/smoketest/ozone-fi/byteman_faults_sample.robot:
##########
@@ -0,0 +1,32 @@
+*** Variables ***
+${RULE}    /opt/hadoop/share/ozone/byteman/skip-put-block.btm
+${vol}     vol1
+${buck}    buck1
+${key}     key1
+${SECURITY_ENABLED}  true
+
+*** Settings ***
+Resource            BytemanKeywords.robot
+Resource            os.robot
+Resource            ../lib/os.robot

Review Comment:
   Done



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