[ 
https://issues.apache.org/jira/browse/COUCHDB-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14985689#comment-14985689
 ] 

ASF subversion and git services commented on COUCHDB-2865:
----------------------------------------------------------

Commit 68d40cce7d89e86515dec88ff2899bafb1ee3e0c in couchdb-chttpd's branch 
refs/heads/master from [~jaydoane]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-chttpd.git;h=68d40cc ]

Explicitly create admin user and authenticate requests in chttpd_db_test cases

COUCHDB-2865
BugzID: 55502


> Tests in chttpd_db_test rely on implicit admin authorization
> ------------------------------------------------------------
>
>                 Key: COUCHDB-2865
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2865
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Test Suite
>            Reporter: Jay Doane
>
> These tests currently work because they assume an admin party, which will 
> implicitly grant the requestor the <<"_admin">> role, which is sufficient to 
> permit the actions in the test using the CouchDB security model.
> Unfortunately when the tests are run under the Cloudant security model, the 
> <<"_admin">> role is not sufficient to create dbs, nor perform the other 
> actions required by the tests, causing them to fail.
> These tests could be improved by explicitly configuring an admin user, and 
> then using that user's credentials for performing requests. A pleasant side 
> effect is that the tests will also begin to run under Cloudant's eunit test 
> suite again. A patch is forthcoming.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to