You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst testing my Saloon API integration with Pest, I stumbled upon the following message: Saloon was unable to guess a mock response for your request, consider using a wildcard url mock or a connector mock..
After a few minutes of debugging, I narrowed it down to the custom authenticator which makes another request to get the authentication token.
When using a fixture & the custom authenticator, Saloon appears to see the request to the authentication endpoint as the response from the parent request using the authentication.
Simply removing the defaultAuth method from App\Http\Integrations\HTTPDump\Requests\DumpRequest will cause the test to succeed.
Whilst testing my Saloon API integration with Pest, I stumbled upon the following message:
Saloon was unable to guess a mock response for your request, consider using a wildcard url mock or a connector mock.
.After a few minutes of debugging, I narrowed it down to the custom authenticator which makes another request to get the authentication token.
When using a fixture & the custom authenticator, Saloon appears to see the request to the authentication endpoint as the response from the parent request using the authentication.
Simply removing the
defaultAuth
method fromApp\Http\Integrations\HTTPDump\Requests\DumpRequest
will cause the test to succeed.This is Saloon v2, but the documentation seems to have a similar method for v3: https://docs.saloon.dev/conclusion/how-to-guides/per-request-authentication
Test below.
The text was updated successfully, but these errors were encountered: