Skip to content

Commit

Permalink
HDDS-10414. Some acceptance tests fail with Docker Compose V2 (#6269)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArafatKhan2198 authored Mar 12, 2024
1 parent a8dd1c2 commit 91af26a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
12 changes: 6 additions & 6 deletions hadoop-ozone/dist/src/main/smoketest/recon/recon-api.robot
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ Check if Recon picks up OM data
Check if Recon picks up DN heartbeats
${result} = Execute curl --negotiate -u : -LSs ${API_ENDPOINT_URL}/datanodes
Should contain ${result} datanodes
Should contain ${result} datanode_1
Should contain ${result} datanode_2
Should contain ${result} datanode_3
Should Match Regexp ${result} datanode[-_]1
Should Match Regexp ${result} datanode[-_]2
Should Match Regexp ${result} datanode[-_]3

${result} = Execute curl --negotiate -u : -LSs ${API_ENDPOINT_URL}/pipelines
Should contain ${result} pipelines
Should contain ${result} RATIS
Should contain ${result} OPEN
Should contain ${result} datanode_1
Should contain ${result} datanode_2
Should contain ${result} datanode_3
Should Match Regexp ${result} datanode[-_]1
Should Match Regexp ${result} datanode[-_]2
Should Match Regexp ${result} datanode[-_]3

${result} = Execute curl --negotiate -u : -LSs ${API_ENDPOINT_URL}/clusterState
Should contain ${result} \"totalDatanodes\"
Expand Down
21 changes: 16 additions & 5 deletions hadoop-ozone/dist/src/main/smoketest/topology/cli.robot
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,29 @@ Test Timeout 5 minutes

*** Variables ***

*** Keywords ***
Validate PrintTopology Output
[Arguments] ${output}
Should Contain ${output} State = HEALTHY
Should Contain ${output} IN_SERVICE
Should Match Regexp ${output} .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*rack.*


*** Test Cases ***
Run printTopology
${output} = Execute ozone admin printTopology
Should contain ${output} 10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE /rack2
Validate PrintTopology Output ${output}

Run printTopology -o
${output} = Execute ozone admin printTopology -o
Should contain ${output} Location: /rack2
Should contain ${output} 10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE
Should Match Regexp ${output} Location: /.*rack.*
Should Match Regexp ${output} .*ozone.*datanode[-_]\\d+.*IN_SERVICE.*

Run printTopology --operational-state IN_SERVICE
${output} = Execute ozone admin printTopology --operational-state IN_SERVICE
Should contain ${output} 10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE /rack2
Validate PrintTopology Output ${output}

Run printTopology --node-state HEALTHY
${output} = Execute ozone admin printTopology --node-state HEALTHY
Should contain ${output} 10.5.0.7(ozone-topology_datanode_4_1.ozone-topology_net) IN_SERVICE /rack2
Validate PrintTopology Output ${output}

0 comments on commit 91af26a

Please sign in to comment.