Endava / cats

CATS is a REST API Fuzzer and negative testing tool for OpenAPI endpoints. CATS automatically generates, runs and reports tests with minimum configuration and no coding effort. Tests are self-healing and do not require maintenance.
Apache License 2.0
1.2k stars 73 forks source link

I have application which required bearer token but getting unauthorized 401 for 28 request bcos cat is running the the 2nd request as **/api/logout** . #137

Closed nayanmathur25 closed 2 months ago

nayanmathur25 commented 3 months ago

Scenario: I have a swagger file which has around 30 request which includes login and logout functionality and i m using bearer token to login . When i m running the cats tool ,it runs the 2nd request as /api/logout and for rest of the application i m getting unauthorized 401.

Solution: The cats running sequence should work in such a way that the logout or signout url should be handled at the last.

en-milie commented 3 months ago

@nayanmathur25 You can use --skipPath "/api/logout" to skip this specific path, and run cats only on that path after using --path "/api/logout".

en-milie commented 3 months ago

@nayanmathur25 Does it work with the suggested approach?

en-milie commented 2 months ago

I will close this for now. Please raise another ticket if the suggested approach doesn't work.