aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-01-03 18:07:39 +0100
committerLoïc Hoguin <[email protected]>2017-01-03 18:07:39 +0100
commit42c95b1584c245d73e6ddc052a922c8e7c68dee2 (patch)
tree88919e0f88c44da8da20c378c0349f087569f37c /test/http_SUITE.erl
parentf59c29dff02b1b79652e93dec76a5a26f207e628 (diff)
downloadcowboy-42c95b1584c245d73e6ddc052a922c8e7c68dee2.tar.gz
cowboy-42c95b1584c245d73e6ddc052a922c8e7c68dee2.tar.bz2
cowboy-42c95b1584c245d73e6ddc052a922c8e7c68dee2.zip
Rewrite the tests for header name/value limits
Putting them in the correct test suite, with the proper documentation etc.
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index e47557e..1fa583a 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -307,20 +307,6 @@ echo_body(Config) ->
end || Size <- lists:seq(MTU - 500, MTU)],
ok.
-%% Check if sending request whose header name is bigger than 64 bytes causes 431
-echo_body_max_header_name_length(Config) ->
- ConnPid = gun_open(Config),
- Ref = gun:post(ConnPid, "/echo/body", [{binary:copy(<<$a>>, 32768), <<"bad">>}], << "echo=name" >>),
- {response, fin, 431, _} = gun:await(ConnPid, Ref),
- ok.
-
-%% Check if sending request whose header name is bigger than 64 bytes causes 431
-echo_body_max_header_value_length(Config) ->
- ConnPid = gun_open(Config),
- Ref = gun:post(ConnPid, "/echo/body", [{<<"bad">>, binary:copy(<<$a>>, 32768)}], << "echo=name" >>),
- {response, fin, 431, _} = gun:await(ConnPid, Ref),
- ok.
-
%% Check if sending request whose size is bigger than 1000000 bytes causes 413
echo_body_max_length(Config) ->
ConnPid = gun_open(Config),