Browse Source

tests: add legal boilerplate

tags/v0.9.9
William Pitcock 5 years ago
parent
commit
3c08d229db
82 changed files with 328 additions and 0 deletions
  1. +4
    -0
      test/activity_test.exs
  2. +4
    -0
      test/captcha_test.exs
  3. +4
    -0
      test/config_test.exs
  4. +4
    -0
      test/filter_test.exs
  5. +4
    -0
      test/formatter_test.exs
  6. +4
    -0
      test/html_test.exs
  7. +4
    -0
      test/http_test.exs
  8. +4
    -0
      test/integration/mastodon_websocket_test.exs
  9. +4
    -0
      test/list_test.exs
  10. +4
    -0
      test/media_proxy_test.exs
  11. +4
    -0
      test/notification_test.exs
  12. +4
    -0
      test/object_test.exs
  13. +4
    -0
      test/plugs/admin_secret_authentication_plug_test.exs
  14. +4
    -0
      test/plugs/authentication_plug_test.exs
  15. +4
    -0
      test/plugs/basic_auth_decoder_plug_test.exs
  16. +4
    -0
      test/plugs/ensure_authenticated_plug_test.exs
  17. +4
    -0
      test/plugs/ensure_user_key_plug_test.exs
  18. +4
    -0
      test/plugs/http_security_plug_test.exs
  19. +4
    -0
      test/plugs/http_signature_plug_test.exs
  20. +4
    -0
      test/plugs/instance_static_test.exs
  21. +4
    -0
      test/plugs/legacy_authentication_plug_test.exs
  22. +4
    -0
      test/plugs/oauth_plug_test.exs
  23. +4
    -0
      test/plugs/session_authentication_plug_test.exs
  24. +4
    -0
      test/plugs/set_user_session_id_plug_test.exs
  25. +4
    -0
      test/plugs/user_enabled_plug_test.exs
  26. +4
    -0
      test/plugs/user_fetcher_plug_test.exs
  27. +4
    -0
      test/plugs/user_is_admin_plug_test.exs
  28. +4
    -0
      test/support/captcha_mock.ex
  29. +4
    -0
      test/support/channel_case.ex
  30. +4
    -0
      test/support/conn_case.ex
  31. +4
    -0
      test/support/data_case.ex
  32. +4
    -0
      test/support/factory.ex
  33. +4
    -0
      test/support/helpers.ex
  34. +4
    -0
      test/support/http_request_mock.ex
  35. +4
    -0
      test/support/ostatus_mock.ex
  36. +4
    -0
      test/support/websocket_client.ex
  37. +4
    -0
      test/support/websub_mock.ex
  38. +4
    -0
      test/tasks/relay_test.exs
  39. +4
    -0
      test/tasks/uploads_test.exs
  40. +4
    -0
      test/tasks/user_test.exs
  41. +4
    -0
      test/test_helper.exs
  42. +4
    -0
      test/upload_test.exs
  43. +4
    -0
      test/user_test.exs
  44. +4
    -0
      test/web/activity_pub/activity_pub_controller_test.exs
  45. +4
    -0
      test/web/activity_pub/activity_pub_test.exs
  46. +4
    -0
      test/web/activity_pub/relay_test.exs
  47. +4
    -0
      test/web/activity_pub/transmogrifier_test.exs
  48. +4
    -0
      test/web/admin_api/admin_api_controller_test.exs
  49. +4
    -0
      test/web/common_api/common_api_test.exs
  50. +4
    -0
      test/web/common_api/common_api_utils_test.exs
  51. +4
    -0
      test/web/federator_test.exs
  52. +4
    -0
      test/web/http_sigs/http_sig_test.exs
  53. +4
    -0
      test/web/mastodon_api/account_view_test.exs
  54. +4
    -0
      test/web/mastodon_api/list_view_test.exs
  55. +4
    -0
      test/web/mastodon_api/mastodon_api_controller_test.exs
  56. +4
    -0
      test/web/mastodon_api/status_view_test.exs
  57. +4
    -0
      test/web/node_info_test.exs
  58. +4
    -0
      test/web/oauth/authorization_test.exs
  59. +4
    -0
      test/web/oauth/oauth_controller_test.exs
  60. +4
    -0
      test/web/oauth/token_test.exs
  61. +4
    -0
      test/web/ostatus/activity_representer_test.exs
  62. +4
    -0
      test/web/ostatus/feed_representer_test.exs
  63. +4
    -0
      test/web/ostatus/ostatus_controller_test.exs
  64. +4
    -0
      test/web/ostatus/ostatus_test.exs
  65. +4
    -0
      test/web/ostatus/user_representer_test.exs
  66. +4
    -0
      test/web/plugs/federating_plug_test.exs
  67. +4
    -0
      test/web/retry_queue_test.exs
  68. +4
    -0
      test/web/salmon/salmon_test.exs
  69. +4
    -0
      test/web/streamer_test.exs
  70. +4
    -0
      test/web/twitter_api/representers/activity_representer_test.exs
  71. +4
    -0
      test/web/twitter_api/representers/object_representer_test.exs
  72. +4
    -0
      test/web/twitter_api/twitter_api_controller_test.exs
  73. +4
    -0
      test/web/twitter_api/twitter_api_test.exs
  74. +4
    -0
      test/web/twitter_api/views/activity_view_test.exs
  75. +4
    -0
      test/web/twitter_api/views/notification_view_test.exs
  76. +4
    -0
      test/web/twitter_api/views/user_view_test.exs
  77. +4
    -0
      test/web/views/error_view_test.exs
  78. +4
    -0
      test/web/web_finger/web_finger_controller_test.exs
  79. +4
    -0
      test/web/web_finger/web_finger_test.exs
  80. +4
    -0
      test/web/websub/websub_controller_test.exs
  81. +4
    -0
      test/web/websub/websub_test.exs
  82. +4
    -0
      test/xml_builder_test.exs

+ 4
- 0
test/activity_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ActivityTest do
use Pleroma.DataCase
import Pleroma.Factory


+ 4
- 0
test/captcha_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.CaptchaTest do
use ExUnit.Case



+ 4
- 0
test/config_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ConfigTest do
use ExUnit.Case



+ 4
- 0
test/filter_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.FilterTest do
alias Pleroma.Repo
use Pleroma.DataCase


+ 4
- 0
test/formatter_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.FormatterTest do
alias Pleroma.Formatter
alias Pleroma.User


+ 4
- 0
test/html_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTMLTest do
alias Pleroma.HTML
use Pleroma.DataCase


+ 4
- 0
test/http_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.HTTPTest do
use Pleroma.DataCase
import Tesla.Mock


+ 4
- 0
test/integration/mastodon_websocket_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Integration.MastodonWebsocketTest do
use Pleroma.DataCase



+ 4
- 0
test/list_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ListTest do
alias Pleroma.Repo
use Pleroma.DataCase


+ 4
- 0
test/media_proxy_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.MediaProxyTest do
use ExUnit.Case
import Pleroma.Web.MediaProxy


+ 4
- 0
test/notification_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.NotificationTest do
use Pleroma.DataCase
alias Pleroma.Web.TwitterAPI.TwitterAPI


+ 4
- 0
test/object_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.ObjectTest do
use Pleroma.DataCase
import Pleroma.Factory


+ 4
- 0
test/plugs/admin_secret_authentication_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.AdminSecretAuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true
import Pleroma.Factory


+ 4
- 0
test/plugs/authentication_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.AuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/basic_auth_decoder_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.BasicAuthDecoderPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/ensure_authenticated_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.EnsureAuthenticatedPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/ensure_user_key_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.EnsureUserKeyPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/http_security_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Config


+ 4
- 0
test/plugs/http_signature_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Plugs.HTTPSignaturePlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Web.HTTPSignatures


+ 4
- 0
test/plugs/instance_static_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.RuntimeStaticPlugTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/plugs/legacy_authentication_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/oauth_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.OAuthPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/session_authentication_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.SessionAuthenticationPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/set_user_session_id_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.SetUserSessionIdPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/user_enabled_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserEnabledPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/user_fetcher_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserFetcherPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/plugs/user_is_admin_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Plugs.UserIsAdminPlugTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/support/captcha_mock.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Captcha.Mock do
alias Pleroma.Captcha.Service
@behaviour Service


+ 4
- 0
test/support/channel_case.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ChannelCase do
@moduledoc """
This module defines the test case to be used by


+ 4
- 0
test/support/conn_case.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ConnCase do
@moduledoc """
This module defines the test case to be used by


+ 4
- 0
test/support/data_case.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.DataCase do
@moduledoc """
This module defines the setup for tests requiring


+ 4
- 0
test/support/factory.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Factory do
use ExMachina.Ecto, repo: Pleroma.Repo



+ 4
- 0
test/support/helpers.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Tests.Helpers do
@moduledoc """
Helpers for use in tests.


+ 4
- 0
test/support/http_request_mock.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule HttpRequestMock do
require Logger



+ 4
- 0
test/support/ostatus_mock.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatusMock do
import Pleroma.Factory



+ 4
- 0
test/support/websocket_client.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Integration.WebsocketClient do
# https://github.com/phoenixframework/phoenix/blob/master/test/support/websocket_client.exs



+ 4
- 0
test/support/websub_mock.ex View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.WebsubMock do
def verify(sub) do
{:ok, sub}


+ 4
- 0
test/tasks/relay_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Mix.Tasks.Pleroma.RelayTest do
alias Pleroma.Activity
alias Pleroma.Web.ActivityPub.{ActivityPub, Relay, Utils}


+ 4
- 0
test/tasks/uploads_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Mix.Tasks.Pleroma.UploadsTest do
alias Pleroma.Upload
use Pleroma.DataCase


+ 4
- 0
test/tasks/user_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Mix.Tasks.Pleroma.UserTest do
alias Pleroma.User
use Pleroma.DataCase


+ 4
- 0
test/test_helper.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

ExUnit.start()

Ecto.Adapters.SQL.Sandbox.mode(Pleroma.Repo, :manual)


+ 4
- 0
test/upload_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.UploadTest do
alias Pleroma.Upload
use Pleroma.DataCase


+ 4
- 0
test/user_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.UserTest do
alias Pleroma.Builders.UserBuilder
alias Pleroma.{User, Repo, Activity}


+ 4
- 0
test/web/activity_pub/activity_pub_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory


+ 4
- 0
test/web/activity_pub/activity_pub_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
use Pleroma.DataCase
alias Pleroma.Web.ActivityPub.ActivityPub


+ 4
- 0
test/web/activity_pub/relay_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.RelayTest do
use Pleroma.DataCase



+ 4
- 0
test/web/activity_pub/transmogrifier_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
use Pleroma.DataCase
alias Pleroma.Web.ActivityPub.Transmogrifier


+ 4
- 0
test/web/admin_api/admin_api_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/web/common_api/common_api_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.CommonAPI.Test do
use Pleroma.DataCase
alias Pleroma.Web.CommonAPI


+ 4
- 0
test/web/common_api/common_api_utils_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.CommonAPI.UtilsTest do
alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.Endpoint


+ 4
- 0
test/web/federator_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.FederatorTest do
alias Pleroma.Web.Federator
alias Pleroma.Web.CommonAPI


+ 4
- 0
test/web/http_sigs/http_sig_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

# http signatures
# Test data from https://tools.ietf.org/html/draft-cavage-http-signatures-08#appendix-C
defmodule Pleroma.Web.HTTPSignaturesTest do


+ 4
- 0
test/web/mastodon_api/account_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
use Pleroma.DataCase
import Pleroma.Factory


+ 4
- 0
test/web/mastodon_api/list_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.ListViewTest do
use Pleroma.DataCase
import Pleroma.Factory


+ 4
- 0
test/web/mastodon_api/mastodon_api_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/web/mastodon_api/status_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
use Pleroma.DataCase



+ 4
- 0
test/web/node_info_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.NodeInfoTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/web/oauth/authorization_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.AuthorizationTest do
use Pleroma.DataCase
alias Pleroma.Web.OAuth.{Authorization, App}


+ 4
- 0
test/web/oauth/oauth_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.OAuthControllerTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory


+ 4
- 0
test/web/oauth/token_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OAuth.TokenTest do
use Pleroma.DataCase
alias Pleroma.Web.OAuth.{App, Token, Authorization}


+ 4
- 0
test/web/ostatus/activity_representer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatus.ActivityRepresenterTest do
use Pleroma.DataCase



+ 4
- 0
test/web/ostatus/feed_representer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatus.FeedRepresenterTest do
use Pleroma.DataCase
import Pleroma.Factory


+ 4
- 0
test/web/ostatus/ostatus_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatus.OStatusControllerTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory


+ 4
- 0
test/web/ostatus/ostatus_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatusTest do
use Pleroma.DataCase
alias Pleroma.Web.OStatus


+ 4
- 0
test/web/ostatus/user_representer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.OStatus.UserRepresenterTest do
use Pleroma.DataCase
alias Pleroma.Web.OStatus.UserRepresenter


+ 4
- 0
test/web/plugs/federating_plug_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.FederatingPlugTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/web/retry_queue_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule MockActivityPub do
def publish_one(ret) do
{ret, "success"}


+ 4
- 0
test/web/salmon/salmon_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Salmon.SalmonTest do
use Pleroma.DataCase
alias Pleroma.Web.Salmon


+ 4
- 0
test/web/streamer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.StreamerTest do
use Pleroma.DataCase



+ 4
- 0
test/web/twitter_api/representers/activity_representer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
use Pleroma.DataCase
alias Pleroma.{User, Activity, Object}


+ 4
- 0
test/web/twitter_api/representers/object_representer_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.Representers.ObjectReprenterTest do
use Pleroma.DataCase



+ 4
- 0
test/web/twitter_api/twitter_api_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.ControllerTest do
use Pleroma.Web.ConnCase
alias Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter


+ 4
- 0
test/web/twitter_api/twitter_api_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
use Pleroma.DataCase
alias Pleroma.Web.TwitterAPI.{TwitterAPI, UserView}


+ 4
- 0
test/web/twitter_api/views/activity_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
use Pleroma.DataCase



+ 4
- 0
test/web/twitter_api/views/notification_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.NotificationViewTest do
use Pleroma.DataCase



+ 4
- 0
test/web/twitter_api/views/user_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.TwitterAPI.UserViewTest do
use Pleroma.DataCase



+ 4
- 0
test/web/views/error_view_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ErrorViewTest do
use Pleroma.Web.ConnCase, async: true



+ 4
- 0
test/web/web_finger/web_finger_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.WebFinger.WebFingerControllerTest do
use Pleroma.Web.ConnCase



+ 4
- 0
test/web/web_finger/web_finger_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.WebFingerTest do
use Pleroma.DataCase
alias Pleroma.Web.WebFinger


+ 4
- 0
test/web/websub/websub_controller_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.Websub.WebsubControllerTest do
use Pleroma.Web.ConnCase
import Pleroma.Factory


+ 4
- 0
test/web/websub/websub_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.WebsubTest do
use Pleroma.DataCase
alias Pleroma.Web.Websub


+ 4
- 0
test/xml_builder_test.exs View File

@@ -1,3 +1,7 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.XmlBuilderTest do
use Pleroma.DataCase
alias Pleroma.XmlBuilder


Loading…
Cancel
Save