couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch commit: updated refs/heads/master to 1df597f
Date Thu, 04 Aug 2016 09:57:45 GMT
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 <rnewson@apache.org>
Authored: Thu Aug 4 10:57:37 2016 +0100
Committer: Robert Newson <rnewson@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">>])


Mime
View raw message