Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2865

Tests in chttpd_db_test rely on implicit admin authorization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Test Suite
    • None

    Description

      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.

      Attachments

        Activity

          People

            jaydoane Jay Doane
            jaydoane Jay Doane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: