Merge branch 'develop' into feature/disable-account
authorEgor Kislitsyn <egor@kislitsyn.com>
Thu, 25 Apr 2019 06:41:10 +0000 (13:41 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Thu, 25 Apr 2019 06:41:10 +0000 (13:41 +0700)
1  2 
config/config.exs
docs/api/pleroma_api.md
lib/pleroma/notification.ex
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/router.ex
lib/pleroma/web/twitter_api/controllers/util_controller.ex
lib/pleroma/web/twitter_api/twitter_api.ex
test/user_test.exs
test/web/twitter_api/util_controller_test.exs

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 0288e24d151b9fd3269dabae62f7f553fb193883,56474447b59cfa1cee948fffb39cb32829c48459..14a8225f097caac84a6c9de636e77357930fa36f
@@@ -246,21 -246,9 +246,27 @@@ defmodule Pleroma.Web.TwitterAPI.UtilCo
      end
    end
  
+   test "GET /api/pleroma/healthcheck", %{conn: conn} do
+     conn = get(conn, "/api/pleroma/healthcheck")
+     assert conn.status in [200, 503]
+   end
++
 +  describe "POST /api/pleroma/disable_account" do
 +    test "it returns HTTP 200", %{conn: conn} do
 +      user = insert(:user)
 +
 +      response =
 +        conn
 +        |> assign(:user, user)
 +        |> post("/api/pleroma/disable_account", %{"password" => "test"})
 +        |> json_response(:ok)
 +
 +      assert response == %{"status" => "success"}
 +
 +      user = User.get_cached_by_id(user.id)
 +
 +      assert user.info.deactivated == true
 +    end
 +  end
  end