diff options
author | Tusooa Zhu <tusooa@kazv.moe> | 2021-09-22 16:26:22 -0400 |
---|---|---|
committer | Tusooa Zhu <tusooa@kazv.moe> | 2021-12-28 01:11:08 -0500 |
commit | eb383ef8d366c1656494278dfe6d2a6afdc04bc6 (patch) | |
tree | 1b4ec2ca84b5bf15e92c328278b85a177ab970f3 /test/support | |
parent | a677c621e822673b3b2922d5b0975f704f2f59a7 (diff) | |
download | pleroma-eb383ef8d366c1656494278dfe6d2a6afdc04bc6.tar.gz |
Make move_account endpoint process non-existent users properly
Ref: emit-move
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 94900dc14..7d5ebd2de 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -725,6 +725,15 @@ defmodule HttpRequestMock do }} end + def get( + "https://mastodon.social/.well-known/webfinger?resource=acct:not_found@mastodon.social", + _, + _, + [{"accept", "application/xrd+xml,application/jrd+json"}] + ) do + {:ok, %Tesla.Env{status: 404}} + end + def get("http://gs.example.org/.well-known/host-meta", _, _, _) do {:ok, %Tesla.Env{ |