Skip to content

Latest commit

 

History

History
115 lines (82 loc) · 3.05 KB

File metadata and controls

115 lines (82 loc) · 3.05 KB

Too Many Requests Tests

429 - Too Many Requests

Scenario: An API consumer submitting requests when exceeding the specific app spike arrest rate limit for another app

Given A specific app spike arrest rate limit is set for a different app
When requests exceeding that limit are submitted
Then the response is 200 OK

Asserts

  • Response returns a 200 OK
  • Response returns the expected message body

Scenario: An API consumer submitting requests when exceeding the specific app quota rate limit for another app

Given A specific app quota rate limit is set for a different app
When requests exceeding that limit are submitted
Then the response is 200 OK

Asserts

  • Response returns a 200 OK
  • Response returns the expected message body

Scenario: An API consumer submitting requests when exceeding the global app quota rate limit

Given A global app quota rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body

Scenario: An API consumer submitting requests when exceeding the global app spike arrest rate limit

Given A global app spike arrest rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body

Scenario: An API consumer submitting requests when exceeding the proxy quota rate limit

Given A proxy quota rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body

Scenario: An API consumer submitting requests when exceeding the proxy spike arrest rate limit

Given A proxy spike arrest rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body

Scenario: An API consumer submitting requests when exceeding the specific app quota rate limit

Given A specific app quota rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body

Scenario: An API consumer submitting requests when exceeding the specific app spike arrest rate limit

Given A specific app spike arrest rate limit
When requests exceeding that limit are submitted
Then the response is a 429 Too Many Requests error

Asserts

  • Response returns a 429 Too Many Requests error
  • Response returns the expected error message body