aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-07-17 17:48:08 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-07-17 17:48:08 +0000
commit3d23a12d75fc159d3ec25424245847fe703b7bd6 (patch)
tree7790efcbea15cf89f2394f0688f534649b3cba41
parentcf9cb953d5c341bb13e4b86272ff4ef405aeab92 (diff)
downloadpleroma-3d23a12d75fc159d3ec25424245847fe703b7bd6.tar.gz
tests: add test for fetching the internal fetch actor
-rw-r--r--test/web/activity_pub/activity_pub_controller_test.exs11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs
index 452172bb4..40344f17e 100644
--- a/test/web/activity_pub/activity_pub_controller_test.exs
+++ b/test/web/activity_pub/activity_pub_controller_test.exs
@@ -48,6 +48,17 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
end
end
+ describe "/internal/fetch" do
+ test "it returns the internal fetch user", %{conn: conn} do
+ res =
+ conn
+ |> get(activity_pub_path(conn, :internal_fetch))
+ |> json_response(200)
+
+ assert res["id"] =~ "/fetch"
+ end
+ end
+
describe "/users/:nickname" do
test "it returns a json representation of the user with accept application/json", %{
conn: conn