diff options
author | Mark Felder <feld@feld.me> | 2021-01-12 16:31:35 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-01-12 16:31:35 -0600 |
commit | 8b28dce82ac244c6c5e67d8379e68e5742bfe875 (patch) | |
tree | 0c76abd0fb13ecc1a79581cea56d090fe56d2fbf /test | |
parent | 5453038ce92597fe2d26cb843d48e9aa660d1ee9 (diff) | |
download | pleroma-8b28dce82ac244c6c5e67d8379e68e5742bfe875.tar.gz pleroma-8b28dce82ac244c6c5e67d8379e68e5742bfe875.zip |
Deprecate Pleroma.Uploaders.S3, :public_endpoint
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/config/deprecation_warnings_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pleroma/config/deprecation_warnings_test.exs b/test/pleroma/config/deprecation_warnings_test.exs index f52629f8a..161bf6e90 100644 --- a/test/pleroma/config/deprecation_warnings_test.exs +++ b/test/pleroma/config/deprecation_warnings_test.exs @@ -94,6 +94,15 @@ defmodule Pleroma.Config.DeprecationWarningsTest do end) =~ "Your config is using old namespace for activity expiration configuration." end + test "check_uploders_s3_public_endpoint/0" do + clear_config(Pleroma.Uploaders.S3, public_endpoint: "https://fake.amazonaws.com/bucket/") + + assert capture_log(fn -> + DeprecationWarnings.check_uploders_s3_public_endpoint() + end) =~ + "Your config is using the old setting for controlling the URL of media uploaded to your S3 bucket." + end + describe "check_gun_pool_options/0" do test "await_up_timeout" do config = Config.get(:connections_pool) |