aboutsummaryrefslogtreecommitdiffstats
path: root/test/old_http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-21 13:28:20 +0100
committerLoïc Hoguin <[email protected]>2018-11-21 13:28:20 +0100
commitdc52ebe4407ac917bbac127a9feae756b44ef940 (patch)
tree94e75887252eb214708a69533d09dbba4413f2ee /test/old_http_SUITE.erl
parent112ff607a10519004cbad5ffa0db6450a406b202 (diff)
downloadcowboy-dc52ebe4407ac917bbac127a9feae756b44ef940.tar.gz
cowboy-dc52ebe4407ac917bbac127a9feae756b44ef940.tar.bz2
cowboy-dc52ebe4407ac917bbac127a9feae756b44ef940.zip
Move some more tests out of the old HTTP test suite
Diffstat (limited to 'test/old_http_SUITE.erl')
-rw-r--r--test/old_http_SUITE.erl31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/old_http_SUITE.erl b/test/old_http_SUITE.erl
index f50bb48..6d7c2c8 100644
--- a/test/old_http_SUITE.erl
+++ b/test/old_http_SUITE.erl
@@ -119,32 +119,9 @@ do_get(Path, Config) ->
%% Tests.
-check_raw_status(Config) ->
- Huge = [$0 || _ <- lists:seq(1, 5000)],
- HugeCookie = lists:flatten(["whatever_man_biiiiiiiiiiiig_cookie_me_want_77="
- "Wed Apr 06 2011 10:38:52 GMT-0500 (CDT)" || _ <- lists:seq(1, 40)]),
- Tests = [
- {200, ["GET / HTTP/1.0\r\nHost: localhost\r\n"
- "Set-Cookie: ", HugeCookie, "\r\n\r\n"]},
- {200, "\r\n\r\n\r\n\r\n\r\nGET / HTTP/1.1\r\nHost: localhost\r\n\r\n"},
- {400, "\n"},
- {400, "Garbage\r\n\r\n"},
- {400, "\r\n\r\n\r\n\r\n\r\n\r\n"},
- {400, "GET HTTP/1.1\r\nHost: localhost\r\n\r\n"},
- {400, "GET / HTTP/1.1\r\nHost: ninenines.eu\r\n\r\n"},
- {400, "GET / HTTP/1.1\r\nHost: localhost:bad_port\r\n\r\n"},
- {closed, Huge}
- ],
- _ = [{Status, Packet} = begin
- Ret = do_raw(Packet, Config),
- {Ret, Packet}
- end || {Status, Packet} <- Tests],
- ok.
-
check_status(Config) ->
Tests = [
{200, "/simple"},
- {404, "/not/found"},
{500, "/handler_errors?case=init_before_reply"}
],
_ = [{Status, URL} = begin
@@ -158,14 +135,6 @@ error_init_after_reply(Config) ->
{response, nofin, 200, _} = gun:await(ConnPid, Ref),
ok.
-headers_dupe(Config) ->
- ConnPid = gun_open(Config),
- Ref = gun:get(ConnPid, "/headers/dupe"),
- {response, nofin, 200, Headers} = gun:await(ConnPid, Ref),
- %% Ensure that only one connection header was received.
- [<<"close">>] = [V || {Name, V} <- Headers, Name =:= <<"connection">>],
- gun_down(ConnPid).
-
keepalive_nl(Config) ->
ConnPid = gun_open(Config),
Refs = [begin