From 23fcfe9eead838d75c8e28522ba5e914ce78b117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 13 Jul 2017 00:20:56 +0200 Subject: Fix more of the older tests The Cowboy behavior has changed a little and gives more accurate error responses now. And in some cases, successes. --- test/http_SUITE.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/http_SUITE.erl') diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 2141049..5f899e4 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -211,13 +211,13 @@ The document has moved {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, ["POST /crash/content-length HTTP/1.1\r\nHost: localhost\r\nContent-Length: 5000,5000\r\n\r\n", Huge]}, - {505, 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\r\n"}, {408, "GET / HTTP/1.1\r\nHost: localhost\r\n\r"}, - {414, Huge}, - {400, "GET / HTTP/1.1\r\n" ++ 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, "\r\n"}, @@ -234,9 +234,9 @@ check_status(Config) -> Tests = [ {200, "/"}, {200, "/simple"}, - {400, "/static/%2f"}, - {400, "/static/%2e"}, - {400, "/static/%2e%2e"}, + {404, "/static/%2f"}, + {403, "/static/%2e"}, %% This routes to /static. + {200, "/static/%2e%2e"}, %% This routes to /. {403, "/static/directory"}, {403, "/static/directory/"}, {403, "/static/unreadable"}, -- cgit v1.2.3