You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2016/08/04 09:57:45 UTC
couch commit: updated refs/heads/master to 1df597f
Repository: couchdb-couch
Updated Branches:
refs/heads/master 4e7b6265b -> 1df597fc2
update tests for COUCHDB-3084
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/1df597fc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/1df597fc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/1df597fc
Branch: refs/heads/master
Commit: 1df597fc2e9a8208e7716f8542a7f6a8e9b606e8
Parents: 4e7b626
Author: Robert Newson <rn...@apache.org>
Authored: Thu Aug 4 10:57:37 2016 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Aug 4 10:57:37 2016 +0100
----------------------------------------------------------------------
test/couchdb_auth_tests.erl | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/1df597fc/test/couchdb_auth_tests.erl
----------------------------------------------------------------------
diff --git a/test/couchdb_auth_tests.erl b/test/couchdb_auth_tests.erl
index 9fb4ceb..0d3cb79 100644
--- a/test/couchdb_auth_tests.erl
+++ b/test/couchdb_auth_tests.erl
@@ -27,7 +27,7 @@ teardown(_, _) ->
auth_test_() ->
Tests = [
fun should_return_username_on_post_to_session/2,
- fun should_return_authenticated_field/2,
+ fun should_not_return_authenticated_field/2,
fun should_return_list_of_handlers/2
],
{
@@ -58,21 +58,21 @@ should_return_username_on_post_to_session(_PortType, Url) ->
proplists:get_value(<<"name">>, Json)
end).
-should_return_authenticated_field(_PortType, Url) ->
- ?_assertEqual(<<"local">>,
+should_not_return_authenticated_field(_PortType, Url) ->
+ ?_assertThrow({not_found, _},
begin
couch_util:get_nested_json_value(session(Url), [
<<"info">>, <<"authenticated">>])
end).
should_return_list_of_handlers(backdoor, Url) ->
- ?_assertEqual([<<"oauth">>,<<"cookie">>,<<"default">>, <<"local">>],
+ ?_assertEqual([<<"oauth">>,<<"cookie">>,<<"default">>],
begin
couch_util:get_nested_json_value(session(Url), [
<<"info">>, <<"authentication_handlers">>])
end);
should_return_list_of_handlers(clustered, Url) ->
- ?_assertEqual([<<"cookie">>,<<"default">>,<<"local">>],
+ ?_assertEqual([<<"cookie">>,<<"default">>],
begin
couch_util:get_nested_json_value(session(Url), [
<<"info">>, <<"authentication_handlers">>])