aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpd_1_1.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-12-06 15:12:49 +0100
committerIngela Anderton Andin <[email protected]>2014-02-05 10:32:28 +0100
commit5b40274acb3355d23e65ef59def92e92f89c72e2 (patch)
tree336e1eb60efaa1d3f67053cb9e030c7ae92c15d8 /lib/inets/test/httpd_1_1.erl
parent2c0afc1a1b4d2dd370024b7bd4884e41c3e3c148 (diff)
downloadotp-5b40274acb3355d23e65ef59def92e92f89c72e2.tar.gz
otp-5b40274acb3355d23e65ef59def92e92f89c72e2.tar.bz2
otp-5b40274acb3355d23e65ef59def92e92f89c72e2.zip
inets: Start CT'ify httpd_SUITE
Conflicts: lib/inets/test/httpd_SUITE.erl
Diffstat (limited to 'lib/inets/test/httpd_1_1.erl')
-rw-r--r--lib/inets/test/httpd_1_1.erl12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/inets/test/httpd_1_1.erl b/lib/inets/test/httpd_1_1.erl
index 07d94ea97a..9d2b623772 100644
--- a/lib/inets/test/httpd_1_1.erl
+++ b/lib/inets/test/httpd_1_1.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2005-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2005-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -20,8 +20,6 @@
-module(httpd_1_1).
--include("test_server.hrl").
--include("test_server_line.hrl").
-include_lib("kernel/include/file.hrl").
-export([host/4, chunked/4, expect/4, range/4, if_test/5, http_trace/4,
@@ -40,14 +38,10 @@
%%-------------------------------------------------------------------------
-%% Test cases starts here.
+%% Test cases
%%-------------------------------------------------------------------------
host(Type, Port, Host, Node) ->
- %% No host needed for HTTP/1.0
- ok = httpd_test_lib:verify_request(Type, Host, Port, Node,
- "GET / HTTP/1.0\r\n\r\n",
- [{statuscode, 200},
- {version, "HTTP/1.0"}]),
+
%% No host must generate an error
ok = httpd_test_lib:verify_request(Type, Host, Port, Node,
"GET / HTTP/1.1\r\n\r\n",