test: fix depreciated warn log levels in tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
1b0a7499f8
commit
7cc9a37c78
|
@ -213,7 +213,7 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier.CommentsTest do
|
||||||
{:ok, %Tesla.Env{status: 404, body: "Not found"}}
|
{:ok, %Tesla.Env{status: 404, body: "Not found"}}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
assert capture_log([level: :warn], fn ->
|
assert capture_log([level: :warning], fn ->
|
||||||
{:ok, _returned_activity, _entity} = Transmogrifier.handle_incoming(data)
|
{:ok, _returned_activity, _entity} = Transmogrifier.handle_incoming(data)
|
||||||
end) =~ "[warning] Parent object is something we don't handle"
|
end) =~ "[warning] Parent object is something we don't handle"
|
||||||
end
|
end
|
||||||
|
|
|
@ -132,7 +132,7 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier.JoinTest do
|
||||||
assert reject_activity.data["id"] =~ "/reject/join/"
|
assert reject_activity.data["id"] =~ "/reject/join/"
|
||||||
|
|
||||||
# We don't accept already rejected Reject activities
|
# We don't accept already rejected Reject activities
|
||||||
assert capture_log([level: :warn], fn ->
|
assert capture_log([level: :warning], fn ->
|
||||||
assert :error == Transmogrifier.handle_incoming(reject_data)
|
assert :error == Transmogrifier.handle_incoming(reject_data)
|
||||||
end) =~
|
end) =~
|
||||||
"Tried to handle an Reject activity on a Join activity with a event object but the participant is already rejected"
|
"Tried to handle an Reject activity on a Join activity with a event object but the participant is already rejected"
|
||||||
|
|
|
@ -66,7 +66,7 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier.UpdateTest do
|
||||||
|> Map.put("actor", relay_actor_url)
|
|> Map.put("actor", relay_actor_url)
|
||||||
|> Map.put("object", object)
|
|> Map.put("object", object)
|
||||||
|
|
||||||
assert capture_log([level: :warn], fn ->
|
assert capture_log([level: :warning], fn ->
|
||||||
:error = Transmogrifier.handle_incoming(update_data)
|
:error = Transmogrifier.handle_incoming(update_data)
|
||||||
end) =~ "[warning] Activity tried to update an actor that's local or not a group"
|
end) =~ "[warning] Activity tried to update an actor that's local or not a group"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue