Skip to content

Commit

Permalink
Merge pull request #1040 from bcgov/dev
Browse files Browse the repository at this point in the history
Update 02-rate-limiting.cy.ts (#1039)
  • Loading branch information
ikethecoder authored Apr 15, 2024
2 parents e6f4b9b + 21a18fb commit e61cbee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/cypress/tests/07-manage-control/02-rate-limiting.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ describe('Manage Control-Rate Limiting Spec for Service as Scope and Local Polic
cy.get('@apiowner').then(({ product }: any) => {
cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => {
expect(response.status).to.be.equal(200)
})
cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => {
expect(response.status).to.be.equal(429)
expect(response.body.message).to.be.contain('API rate limit exceeded')
})
cy.makeKongRequest(product.environment.config.serviceName, 'GET').then((response) => {
expect(response.status).to.be.equal(429)
expect(response.body.message).to.be.contain('API rate limit exceeded')
})
})
})
})
})
Expand Down Expand Up @@ -273,4 +273,4 @@ describe('Manage Control-Apply Rate limiting to Global and Consumer at Route lev
after(() => {
cy.logout()
})
})
})

0 comments on commit e61cbee

Please sign in to comment.