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-01-10 14:44:29 +0100
commitfaafa93775d3c56cb6f59b9096e959cac6a59e25 (patch)
tree1ef15d5ed4ec6f0d3365ac46f925da91d5b6a7eb /lib/inets/test/httpd_1_1.erl
parent940e213d07ed34ac6ea6e07bf6fcf97d4a88a64e (diff)
downloadotp-faafa93775d3c56cb6f59b9096e959cac6a59e25.tar.gz
otp-faafa93775d3c56cb6f59b9096e959cac6a59e25.tar.bz2
otp-faafa93775d3c56cb6f59b9096e959cac6a59e25.zip
inets: Start CT'ify httpd_SUITE
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..4b2a5f619d 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-2013. 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",