summaryrefslogtreecommitdiff
path: root/test/reverse_proxy_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-03-16 15:31:31 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-03-16 15:31:31 +0400
commit421e35b578b3fc109f820f693e91139a3e3f8970 (patch)
tree37da58962582854597cd068c603b8ba23e10f7bb /test/reverse_proxy_test.exs
parentd1c7f8e576e31487544b57d67802843b8ef38388 (diff)
parentc2527b8c63a4e35b121981efe2c39cc54c77648d (diff)
downloadpleroma-421e35b578b3fc109f820f693e91139a3e3f8970.tar.gz
pleroma-421e35b578b3fc109f820f693e91139a3e3f8970.zip
Merge branch 'develop' into global-status-expiration
Diffstat (limited to 'test/reverse_proxy_test.exs')
-rw-r--r--test/reverse_proxy_test.exs13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/reverse_proxy_test.exs b/test/reverse_proxy_test.exs
index 18d70862c..87c6aca4e 100644
--- a/test/reverse_proxy_test.exs
+++ b/test/reverse_proxy_test.exs
@@ -275,17 +275,6 @@ defmodule Pleroma.ReverseProxyTest do
end
describe "cache resp headers" do
- test "returns headers", %{conn: conn} do
- ClientMock
- |> expect(:request, fn :get, "/cache/" <> ttl, _, _, _ ->
- {:ok, 200, [{"cache-control", "public, max-age=" <> ttl}], %{}}
- end)
- |> expect(:stream_body, fn _ -> :done end)
-
- conn = ReverseProxy.call(conn, "/cache/10")
- assert {"cache-control", "public, max-age=10"} in conn.resp_headers
- end
-
test "add cache-control", %{conn: conn} do
ClientMock
|> expect(:request, fn :get, "/cache", _, _, _ ->
@@ -294,7 +283,7 @@ defmodule Pleroma.ReverseProxyTest do
|> expect(:stream_body, fn _ -> :done end)
conn = ReverseProxy.call(conn, "/cache")
- assert {"cache-control", "public"} in conn.resp_headers
+ assert {"cache-control", "public, max-age=1209600"} in conn.resp_headers
end
end