diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2023-08-10 22:52:38 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2023-08-11 00:08:05 +0200 |
commit | 9effa24f308917f70276c41f91fb204b7684d942 (patch) | |
tree | bff6578207993c87b4dd13bb4820e3bd52fee17a /test | |
parent | b729a8b140306fd67817442bdde1299e05aca5b2 (diff) | |
download | pleroma-9effa24f308917f70276c41f91fb204b7684d942.tar.gz pleroma-9effa24f308917f70276c41f91fb204b7684d942.zip |
Implement api/v2/instance route
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/mastodon_api/controllers/instance_controller_test.exs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/instance_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/instance_controller_test.exs index a556ef6a8..2243b0d4a 100644 --- a/test/pleroma/web/mastodon_api/controllers/instance_controller_test.exs +++ b/test/pleroma/web/mastodon_api/controllers/instance_controller_test.exs @@ -106,4 +106,11 @@ defmodule Pleroma.Web.MastodonAPI.InstanceControllerTest do |> get("/api/v1/instance") |> json_response_and_validate_schema(200) end + + test "get instance information v2", %{conn: conn} do + clear_config([:auth, :oauth_consumer_strategies], []) + + assert get(conn, "/api/v2/instance") + |> json_response_and_validate_schema(200) + end end |