diff options
| author | lambda <lain@soykaf.club> | 2019-03-26 16:01:52 +0000 | 
|---|---|---|
| committer | lambda <lain@soykaf.club> | 2019-03-26 16:01:52 +0000 | 
| commit | c6ab5ebe7cd31ef7aa040d280d5efa63f9bcdc50 (patch) | |
| tree | 4c95faef03eb4838c17413a9a4b002d60e26ddb8 /test/web | |
| parent | 9e3899bf36cea47560c5de1d4787125f6296a3b8 (diff) | |
| parent | 47b49ab1a1453ac2068cca336ad6db9877c3e64b (diff) | |
| download | pleroma-c6ab5ebe7cd31ef7aa040d280d5efa63f9bcdc50.tar.gz pleroma-c6ab5ebe7cd31ef7aa040d280d5efa63f9bcdc50.zip | |
Merge branch 'features/mastoapi/2.7.2-instance-attributes' into 'develop'
Mastodon 2.7.2 instance attributes (registrations, languages)
See merge request pleroma/pleroma!979
Diffstat (limited to 'test/web')
| -rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index b2302422b..21e88eda9 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -1808,6 +1808,27 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do    end    test "get instance information", %{conn: conn} do +    conn = get(conn, "/api/v1/instance") +    assert result = json_response(conn, 200) + +    # Note: not checking for "max_toot_chars" since it's optional +    assert %{ +             "uri" => _, +             "title" => _, +             "description" => _, +             "version" => _, +             "email" => _, +             "urls" => %{ +               "streaming_api" => _ +             }, +             "stats" => _, +             "thumbnail" => _, +             "languages" => _, +             "registrations" => _ +           } = result +  end + +  test "get instance stats", %{conn: conn} do      user = insert(:user, %{local: true})      user2 = insert(:user, %{local: true}) | 
