summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-12 15:08:02 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-12 15:08:02 +0000
commitfe67665e19cc98faff4a8ee53a3f4ca4190ca2ef (patch)
tree9a6941d0e165e1f52cb414645420157ac2a0d421 /test
parent5dda13ee5f9302cfef215c8ffaa527e9a572a37b (diff)
downloadpleroma-fe67665e19cc98faff4a8ee53a3f4ca4190ca2ef.tar.gz
pleroma-fe67665e19cc98faff4a8ee53a3f4ca4190ca2ef.zip
rename CSPPlug to HTTPSecurityPlug.
Diffstat (limited to 'test')
-rw-r--r--test/plugs/http_security_plug_test.exs (renamed from test/plugs/csp_plug_test.exs)14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/plugs/csp_plug_test.exs b/test/plugs/http_security_plug_test.exs
index e27b24db9..5268a1972 100644
--- a/test/plugs/csp_plug_test.exs
+++ b/test/plugs/http_security_plug_test.exs
@@ -1,10 +1,10 @@
-defmodule Pleroma.Web.Plugs.CSPPlugTest do
+defmodule Pleroma.Web.Plugs.HTTPSecurityPlugTest do
use Pleroma.Web.ConnCase
alias Pleroma.Config
alias Plug.Conn
test "it sends CSP headers when enabled", %{conn: conn} do
- Config.put([:csp, :enabled], true)
+ Config.put([:http_security, :enabled], true)
conn =
conn
@@ -20,7 +20,7 @@ defmodule Pleroma.Web.Plugs.CSPPlugTest do
end
test "it does not send CSP headers when disabled", %{conn: conn} do
- Config.put([:csp, :enabled], false)
+ Config.put([:http_security, :enabled], false)
conn =
conn
@@ -36,8 +36,8 @@ defmodule Pleroma.Web.Plugs.CSPPlugTest do
end
test "it sends STS headers when enabled", %{conn: conn} do
- Config.put([:csp, :enabled], true)
- Config.put([:csp, :sts], true)
+ Config.put([:http_security, :enabled], true)
+ Config.put([:http_security, :sts], true)
conn =
conn
@@ -48,8 +48,8 @@ defmodule Pleroma.Web.Plugs.CSPPlugTest do
end
test "it does not send STS headers when disabled", %{conn: conn} do
- Config.put([:csp, :enabled], true)
- Config.put([:csp, :sts], false)
+ Config.put([:http_security, :enabled], true)
+ Config.put([:http_security, :sts], false)
conn =
conn