diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-11 10:36:36 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-12 12:41:40 +0300 |
commit | b3764423251c963a5ca007517189f556bfe95155 (patch) | |
tree | d9f0c2aa9a7c69a267487e88298714a7bc5a442c /test/config | |
parent | d6f67fa91b00b28d7be9f82bb300f9d650c73744 (diff) | |
download | pleroma-b3764423251c963a5ca007517189f556bfe95155.tar.gz |
MediaProxy whitelist setting now supports hosts with scheme
added deprecation warning about using bare domains
Diffstat (limited to 'test/config')
-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 |