Skip to content

Commit

Permalink
test(robot): replace "Cleanup test resources include off nodes" with …
Browse files Browse the repository at this point in the history
…"Cleanup test resources"

Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu committed Oct 9, 2024
1 parent 56c64a9 commit 49afaaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions e2e/keywords/common.resource
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ Set test environment
END

Cleanup test resources
${variables}= Get Variables
IF "\${powered_off_node}" in "$variables"
power_on_node_by_name ${powered_off_node}
END
Power on off node
uncordon_all_nodes
cleanup_control_plane_network_latency
reset_node_schedule
Expand Down
2 changes: 0 additions & 2 deletions e2e/tests/negative/node_drain.robot
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ Stopped replicas on deleted nodes should not be counted as healthy replicas when
... And All pods on Node_2 are evicted except the replica instance manager pod.
... kubectl get pods --field-selector spec.nodeName=<Node_2 name> -o wide -n longhorn-system
... And The last healthy replica exists on the Node_2.
[Teardown] Cleanup test resources include off nodes
Given Disable node 0 scheduling
And Set setting node-drain-policy to block-if-contains-last-replica
And Given Create volume 0 with size=5Gi numberOfReplicas=2 dataEngine=${DATA_ENGINE}
Expand Down Expand Up @@ -209,7 +208,6 @@ Setting Allow Node Drain with the Last Healthy Replica protects the last healthy
... kubectl get pods --field-selector spec.nodeName=<Node_2 name> -o wide -n longhorn-system
... And The PDB will be deleted and can be verified with the following command:
... kubectl get pdb <replica name, e.g., instance-manager-r-xxxxxxxx> -n longhorn-system
[Teardown] Cleanup test resources include off nodes
Given Disable node 0 scheduling
And Set setting node-drain-policy to block-if-contains-last-replica
And Given Create volume 0 with size=5Gi numberOfReplicas=2 dataEngine=${DATA_ENGINE}
Expand Down

0 comments on commit 49afaaf

Please sign in to comment.