bypass icon indicating copy to clipboard operation
bypass copied to clipboard

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.

Results 30 bypass issues
Sort by recently updated
recently updated
newest added

@ream88 any possibility of making it so that within one test I can stack two expect_once's so that the first call to the given route gets my first expect_once and...

enhancement
help wanted

## Motivation Would be nice to be able to pipe expectation calls, passing the bypass instance to next expectation. ```elixir bypass |> Bypass.expect("POST", "/auth", fn conn -> # response ......

enhancement

Hello! First of all I'd like to say I really like and appreciate Bypass!!! However, I'm running into an issue I'm having trouble resolving. I have a test that makes...

help wanted

I'm trying to use Bypass in my tests to return two different responses in quick succession. The only difference between the two requests is the Authentication headers; I may be...

help wanted

I want to test that I'm able to abort a request that takes too long for any reason. I decided to use a task to wrap my request, the task...

help wanted

When asserting in bypass, bypass dies and responds with a 500 no matter what ```[error] #PID running Bypass.Plug (connection #PID, stream id 1) terminated Server: localhost:55394 (http) Request: GET /api/v2/accounts...

more info needed

``` warning: Application.get_env/3 is discouraged in the module body, use Application.compile_env/3 instead │ 6 │ if Application.get_env(:bypass, :enable_debug_log, false) do │ ~ │ └─ lib/bypass/utils.ex:6:18: Bypass.Utils (module) ```

At the moment it appears that `dispatch_awaiting_callers/1` attempts to shut down the current instance using `GenServer.stop(:normal)`. This causes a crash as the first argument to `GenServer.stop/3` is meant to be...

Allows the user to specify the number of calls to expect. Verify will fail if the number of actual calls is different than the number of expected calls. Added `expect/3`...