diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-07-14 18:56:40 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-07-14 18:56:40 -0500 |
commit | 48983e942139a81106416cfbb8d22743b6764053 (patch) | |
tree | 1c11c31848609a9e6b8226bc6ac77d3747e1986a /test/config/deprecation_warnings_test.exs | |
parent | df3d1bf5e57389e41a70676ccab1df81d83e3d74 (diff) | |
parent | 3f65f2ea79644cd8a119fc154c2792994723c7cb (diff) | |
download | pleroma-48983e942139a81106416cfbb8d22743b6764053.tar.gz pleroma-48983e942139a81106416cfbb8d22743b6764053.zip |
Merge remote-tracking branch 'upstream/develop' into by-approval
Diffstat (limited to 'test/config/deprecation_warnings_test.exs')
-rw-r--r-- | test/config/deprecation_warnings_test.exs | 8 |
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 |