diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2020-07-16 08:53:21 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-07-16 08:53:21 +0300 |
| commit | 6c59fe259d3d8eccc4102baaac64baf2aff301cb (patch) | |
| tree | b950bca418d5d12772d1aed1226731f7e23d166c /test/config | |
| parent | 4e0e19a7060da9f3eb06ffb0bdb816c7dedb720b (diff) | |
| parent | 3a2b2cb6f2d6ce39ae0d246649189c021c535992 (diff) | |
| download | pleroma-6c59fe259d3d8eccc4102baaac64baf2aff301cb.tar.gz pleroma-6c59fe259d3d8eccc4102baaac64baf2aff301cb.zip | |
Merge branch 'develop' into issue/1023
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 |
