From: Ariadne Conill Date: Wed, 17 Jul 2019 17:48:08 +0000 (+0000) Subject: tests: add test for fetching the internal fetch actor X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3d23a12d75fc159d3ec25424245847fe703b7bd6;p=akkoma tests: add test for fetching the internal fetch actor --- 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