Skip to content

Commit 03417ba

Browse files
feat: add wait keyword to suite setup and teardown
1 parent 39dbef5 commit 03417ba

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

integration-tests/robot/tests/zookeeper/acl_tests/acl_tests.robot

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ ${ADMIN_PASSWORD} admin
66
${USERNAME} user123
77
${PASSWORD} pwd123
88
${ACL_VALUE} ACL
9+
${SUITE_RETRY_TIME} 2min
10+
${SUITE_RETRY_INTERVAL} 10s
911

1012
*** Settings ***
1113
Library String
1214
Library Collections
13-
Library RetryFailed
15+
Library RetryFailed
1416
Resource ../../shared/keywords.robot
15-
Suite Setup Setup
16-
Suite Teardown Cleanup
17-
Test Teardown Run Keyword If Test Failed Sleep 5s
17+
Suite Setup Wait Until Keyword Succeeds ${SUITE_RETRY_TIME} ${SUITE_RETRY_INTERVAL} Setup
18+
Suite Teardown Wait Until Keyword Succeeds ${SUITE_RETRY_TIME} ${SUITE_RETRY_INTERVAL} Cleanup
19+
Test Teardown Run Keyword If Test Failed Sleep 5s
1820

1921
*** Keywords ***
2022
Setup

integration-tests/robot/tests/zookeeper/sasl/sasl_tests.robot

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ ${ZOOKEEPER_ADMIN_PASSWORD} %{ZOOKEEPER_ADMIN_PASSWORD}
66
${ZOOKEEPER_CLIENT_USERNAME} %{ZOOKEEPER_CLIENT_USERNAME}
77
${ZOOKEEPER_CLIENT_PASSWORD} %{ZOOKEEPER_CLIENT_PASSWORD}
88
${ACL_VALUE} ACL
9+
${SUITE_RETRY_TIME} 2min
10+
${SUITE_RETRY_INTERVAL} 10s
911

1012
*** Settings ***
1113
Library String
1214
Library Collections
13-
Library RetryFailed
15+
Library RetryFailed
1416
Resource ../../shared/keywords.robot
15-
Suite Setup Setup
16-
Suite Teardown Cleanup
17-
Test Teardown Run Keyword If Test Failed Sleep 5s
17+
Suite Setup Wait Until Keyword Succeeds ${SUITE_RETRY_TIME} ${SUITE_RETRY_INTERVAL} Setup
18+
Suite Teardown Wait Until Keyword Succeeds ${SUITE_RETRY_TIME} ${SUITE_RETRY_INTERVAL} Cleanup
19+
Test Teardown Run Keyword If Test Failed Sleep 5s
1820

1921
*** Keywords ***
2022
Setup

0 commit comments

Comments
 (0)