0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Remove more tests from old_http_SUITE which exist elsewhere

This commit is contained in:
Loïc Hoguin 2018-05-17 16:47:02 +02:00
parent 3d35319112
commit fd2643b017
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -209,19 +209,15 @@ The document has moved
{400, "\n"}, {400, "\n"},
{400, "Garbage\r\n\r\n"}, {400, "Garbage\r\n\r\n"},
{400, "\r\n\r\n\r\n\r\n\r\n\r\n"}, {400, "\r\n\r\n\r\n\r\n\r\n\r\n"},
{400, " / HTTP/1.1\r\nHost: localhost\r\n\r\n"},
{400, "GET HTTP/1.1\r\nHost: localhost\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: ninenines.eu\r\n\r\n"},
{400, "GET http://proxy/ HTTP/1.1\r\n\r\n"}, {400, "GET http://proxy/ HTTP/1.1\r\n\r\n"},
{400, "GET / HTTP/1.1\r\nHost: localhost:bad_port\r\n\r\n"}, {400, "GET / HTTP/1.1\r\nHost: localhost:bad_port\r\n\r\n"},
{400, ResponsePacket}, {400, ResponsePacket},
{408, "GET / HTTP/1.1\r\n"},
{408, "GET / HTTP/1.1\r\nHost: localhost"}, {408, "GET / HTTP/1.1\r\nHost: localhost"},
{408, "GET / HTTP/1.1\r\nHost: localhost\r\n"}, {408, "GET / HTTP/1.1\r\nHost: localhost\r\n"},
{408, "GET / HTTP/1.1\r\nHost: localhost\r\n\r"}, {408, "GET / HTTP/1.1\r\nHost: localhost\r\n\r"},
{closed, Huge}, {closed, Huge},
{431, "GET / HTTP/1.1\r\n" ++ Huge},
{505, "GET / HTTP/1.2\r\nHost: localhost\r\n\r\n"},
{closed, ""}, {closed, ""},
{closed, "\r\n"}, {closed, "\r\n"},
{closed, "\r\n\r\n"}, {closed, "\r\n\r\n"},
@ -606,22 +602,6 @@ path_allow_colon(_Config) ->
cowboy_router:compile([{'_', [{"/foo/bar:blah", http_handler, []}]}]), cowboy_router:compile([{'_', [{"/foo/bar:blah", http_handler, []}]}]),
ok. ok.
set_resp_body(Config) ->
ConnPid = gun_open(Config),
Ref = gun:get(ConnPid, "/set_resp/body"),
{response, nofin, 200, _} = gun:await(ConnPid, Ref),
{ok, <<"A flameless dance does not equal a cycle">>}
= gun:await_body(ConnPid, Ref),
ok.
set_resp_header(Config) ->
ConnPid = gun_open(Config),
Ref = gun:get(ConnPid, "/set_resp/header"),
{response, nofin, 200, Headers} = gun:await(ConnPid, Ref),
{_, <<"Accept">>} = lists:keyfind(<<"vary">>, 1, Headers),
{_, _} = lists:keyfind(<<"set-cookie">>, 1, Headers),
ok.
set_resp_overwrite(Config) -> set_resp_overwrite(Config) ->
ConnPid = gun_open(Config), ConnPid = gun_open(Config),
Ref = gun:get(ConnPid, "/set_resp/overwrite"), Ref = gun:get(ConnPid, "/set_resp/overwrite"),