summaryrefslogtreecommitdiff
path: root/test/web/media_proxy/media_proxy_controller_test.exs
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-06-17 13:13:55 -0500
committerMark Felder <feld@FreeBSD.org>2020-06-17 13:13:55 -0500
commit2731ea1334c2c91315465659a0874829cb9e1e11 (patch)
tree4c6ce333a75350b40d4a406f069cd5363da57172 /test/web/media_proxy/media_proxy_controller_test.exs
parentc08c9db0c137d36896910194a6dc50a391a8fee2 (diff)
downloadpleroma-2731ea1334c2c91315465659a0874829cb9e1e11.tar.gz
pleroma-2731ea1334c2c91315465659a0874829cb9e1e11.zip
Change references from "deleted_urls" to "banned_urls" as nothing is handled via media deletions anymore; all actions are manual operations by an admin to ban the url
Diffstat (limited to 'test/web/media_proxy/media_proxy_controller_test.exs')
-rw-r--r--test/web/media_proxy/media_proxy_controller_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/media_proxy/media_proxy_controller_test.exs b/test/web/media_proxy/media_proxy_controller_test.exs
index 72da98a6a..d61cef83b 100644
--- a/test/web/media_proxy/media_proxy_controller_test.exs
+++ b/test/web/media_proxy/media_proxy_controller_test.exs
@@ -11,7 +11,7 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyControllerTest do
setup do: clear_config([Pleroma.Web.Endpoint, :secret_key_base])
setup do
- on_exit(fn -> Cachex.clear(:deleted_urls_cache) end)
+ on_exit(fn -> Cachex.clear(:banned_urls_cache) end)
end
test "it returns 404 when MediaProxy disabled", %{conn: conn} do
@@ -71,11 +71,11 @@ defmodule Pleroma.Web.MediaProxy.MediaProxyControllerTest do
end
end
- test "it returns 404 when url contains in deleted_urls cache", %{conn: conn} do
+ test "it returns 404 when url contains in banned_urls cache", %{conn: conn} do
Config.put([:media_proxy, :enabled], true)
Config.put([Pleroma.Web.Endpoint, :secret_key_base], "00000000000")
url = Pleroma.Web.MediaProxy.encode_url("https://google.fn/test.png")
- Pleroma.Web.MediaProxy.put_in_deleted_urls("https://google.fn/test.png")
+ Pleroma.Web.MediaProxy.put_in_banned_urls("https://google.fn/test.png")
with_mock Pleroma.ReverseProxy,
call: fn _conn, _url, _opts -> %Plug.Conn{status: :success} end do