summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhref <href@random.sh>2020-06-10 17:34:23 +0200
committerrinpatch <rinpatch@sdf.org>2020-06-12 18:57:46 +0300
commit8efd1614ecfe694a7c6c58a6c59e3acf88e99c91 (patch)
tree01c321dee3d9c28dbbe3ff08a396fc7822be2ed6 /test
parent8b8b8599e9359ea5c1212144c50ab406025016c5 (diff)
downloadpleroma-8efd1614ecfe694a7c6c58a6c59e3acf88e99c91.tar.gz
pleroma-8efd1614ecfe694a7c6c58a6c59e3acf88e99c91.zip
Remove use of atoms in MRF.UserAllowListPolicy
Diffstat (limited to 'test')
-rw-r--r--test/web/activity_pub/mrf/user_allowlist_policy_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/mrf/user_allowlist_policy_test.exs b/test/web/activity_pub/mrf/user_allowlist_policy_test.exs
index 87c9e1b29..7dd03870b 100644
--- a/test/web/activity_pub/mrf/user_allowlist_policy_test.exs
+++ b/test/web/activity_pub/mrf/user_allowlist_policy_test.exs
@@ -17,14 +17,14 @@ defmodule Pleroma.Web.ActivityPub.MRF.UserAllowListPolicyTest do
test "pass filter if allow list isn't empty and user in allow list" do
actor = insert(:user)
- Pleroma.Config.put([:mrf_user_allowlist, :localhost], [actor.ap_id, "test-ap-id"])
+ Pleroma.Config.put([:mrf_user_allowlist], %{"localhost" => [actor.ap_id, "test-ap-id"]})
message = %{"actor" => actor.ap_id}
assert UserAllowListPolicy.filter(message) == {:ok, message}
end
test "rejected if allow list isn't empty and user not in allow list" do
actor = insert(:user)
- Pleroma.Config.put([:mrf_user_allowlist, :localhost], ["test-ap-id"])
+ Pleroma.Config.put([:mrf_user_allowlist], %{"localhost" => ["test-ap-id"]})
message = %{"actor" => actor.ap_id}
assert UserAllowListPolicy.filter(message) == {:reject, nil}
end