summaryrefslogtreecommitdiff
path: root/test/config/deprecation_warnings_test.exs
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2020-07-14 18:07:44 +0000
committerfeld <feld@feld.me>2020-07-14 18:07:44 +0000
commit3f65f2ea79644cd8a119fc154c2792994723c7cb (patch)
tree1f82bee15cc9f338c566413881e88108c16f8ff5 /test/config/deprecation_warnings_test.exs
parent63798e89deb2079cc0828c8722489c907c13f93c (diff)
parentb3764423251c963a5ca007517189f556bfe95155 (diff)
downloadpleroma-3f65f2ea79644cd8a119fc154c2792994723c7cb.tar.gz
pleroma-3f65f2ea79644cd8a119fc154c2792994723c7cb.zip
Merge branch 'feature/1922-media-proxy-whitelist' into 'develop'
Support for hosts with scheme in MediaProxy whitelist setting Closes #1922 See merge request pleroma/pleroma!2754
Diffstat (limited to 'test/config/deprecation_warnings_test.exs')
-rw-r--r--test/config/deprecation_warnings_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/config/deprecation_warnings_test.exs b/test/config/deprecation_warnings_test.exs
index 548ee87b0..555661a71 100644
--- a/test/config/deprecation_warnings_test.exs
+++ b/test/config/deprecation_warnings_test.exs
@@ -54,4 +54,12 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
assert Pleroma.Config.get(new_group2) == 2
assert Pleroma.Config.get(new_group3) == 3
end
+
+ test "check_media_proxy_whitelist_config/0" do
+ clear_config([:media_proxy, :whitelist], ["https://example.com", "example2.com"])
+
+ assert capture_log(fn ->
+ Pleroma.Config.DeprecationWarnings.check_media_proxy_whitelist_config()
+ end) =~ "Your config is using old format (only domain) for MediaProxy whitelist option"
+ end
end