Skip to content

Commit

Permalink
Add delays before the invocations for custom ratelimit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 committed Dec 14, 2023
1 parent 9faf4d7 commit f8ba5df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Feature: Custom ratelimit
# Request 4
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 200
And I wait for 3 seconds
# Request 5 - should be limitted
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 429
Expand Down Expand Up @@ -64,6 +65,7 @@ Feature: Custom ratelimit
# Request 10 - for org_id descriptor
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 200
And I wait for 3 seconds
# Request 11 - for org_id descriptor
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 429
Expand Down Expand Up @@ -102,6 +104,7 @@ Feature: Custom ratelimit
# Request 10
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 200
And I wait for 3 seconds
# Request 11 - should be limitted
And I send "GET" request to "https://default.gw.wso2.com:9095/test-custom-ratelimit/employee" with body ""
Then the response status code should be 429
Expand Down

0 comments on commit f8ba5df

Please sign in to comment.