mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
Fix firewall test
This commit is contained in:
parent
74b74a271e
commit
4d11a1d8a1
@ -3,10 +3,14 @@ defmodule PlausibleWeb.FirewallTest do
|
||||
use Plug.Test
|
||||
alias PlausibleWeb.Firewall
|
||||
|
||||
@allowed_ip "127.0.0.2"
|
||||
@blocked_ip "127.0.0.1"
|
||||
@allowed_ip "127.0.0.1"
|
||||
@blocked_ip "127.0.0.2"
|
||||
@opts [blocklist: [@blocked_ip]]
|
||||
|
||||
setup do
|
||||
Application.put_env(:plausible, PlausibleWeb.Firewall, [blocklist: [@blocked_ip]])
|
||||
:ok
|
||||
end
|
||||
|
||||
test "ignores request if IP is allowed" do
|
||||
conn =
|
||||
|
Loading…
Reference in New Issue
Block a user