diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-16 14:25:55 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-16 14:25:55 +0300 |
commit | f0651730bdf018b713e21ce718719c7781398362 (patch) | |
tree | 836e0fbcbb49f0ae78635a268e30013c0e94aea7 /test/reverse_proxy | |
parent | 98ed0d1c4bd2db354154cc4a1d1e6530eb68f499 (diff) | |
parent | c2527b8c63a4e35b121981efe2c39cc54c77648d (diff) | |
download | pleroma-f0651730bdf018b713e21ce718719c7781398362.tar.gz pleroma-f0651730bdf018b713e21ce718719c7781398362.zip |
Merge branch 'develop' into gun
Diffstat (limited to 'test/reverse_proxy')
-rw-r--r-- | test/reverse_proxy/reverse_proxy_test.exs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/reverse_proxy/reverse_proxy_test.exs b/test/reverse_proxy/reverse_proxy_test.exs index abdfddcb7..c677066b3 100644 --- a/test/reverse_proxy/reverse_proxy_test.exs +++ b/test/reverse_proxy/reverse_proxy_test.exs @@ -278,17 +278,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", _, _, _ -> @@ -297,7 +286,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 |