Skip to content

Commit f8ba5df

Browse files
committed
Add delays before the invocations for custom ratelimit test case
1 parent 9faf4d7 commit f8ba5df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: test/cucumber-tests/src/test/resources/tests/api/CustomRatelimit.feature

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Feature: Custom ratelimit
2424
# Request 4
2525
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
2626
Then the response status code should be 200
27+
And I wait for 3 seconds
2728
# Request 5 - should be limitted
2829
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
2930
Then the response status code should be 429
@@ -64,6 +65,7 @@ Feature: Custom ratelimit
6465
# Request 10 - for org_id descriptor
6566
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
6667
Then the response status code should be 200
68+
And I wait for 3 seconds
6769
# Request 11 - for org_id descriptor
6870
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
6971
Then the response status code should be 429
@@ -102,6 +104,7 @@ Feature: Custom ratelimit
102104
# Request 10
103105
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
104106
Then the response status code should be 200
107+
And I wait for 3 seconds
105108
# Request 11 - should be limitted
106109
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
107110
Then the response status code should be 429

0 commit comments

Comments
 (0)