summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-01 00:59:26 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-01 00:59:26 +0000
commit5731599ef0128fca97444ee34dd2ca71edcaf16a (patch)
tree68d565fd579cd74a10341733d67b9893c19e39b9 /test
parentc46bbe3d924e9e56b6f4ade94e0e27eec9e5a37c (diff)
better tests for the vhost globals, fixed a bug
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-xtest/etap/160-vhosts.t11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/etap/160-vhosts.t b/test/etap/160-vhosts.t
index 8d8dd2a7..77d9d58b 100755
--- a/test/etap/160-vhosts.t
+++ b/test/etap/160-vhosts.t
@@ -122,11 +122,10 @@ test_vhost_request_with_qs() ->
end.
test_vhost_request_with_global() ->
- Url = server() ++ "_uuids",
- case ibrowse:send_req(Url, [], get, [], [{host_header, "example.com"}]) of
- {ok, _, _, Body} ->
- {JsonProps} = couch_util:json_decode(Body),
- HasUuids = proplists:is_defined(<<"uuids">>, JsonProps),
- etap:is(HasUuids, true, "should return _uuids");
+ Url2 = server() ++ "_utils/index.html",
+ case ibrowse:send_req(Url2, [], get, [], [{host_header, "example.com"}]) of
+ {ok, _, _, Body2} ->
+ "<!DOCTYPE" ++ _Foo = Body2,
+ etap:is(true, true, "should serve /_utils even inside vhosts");
_Else -> false
end.