cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

Fix tests for FDB. #395

Closed smithsz closed 5 years ago

smithsz commented 5 years ago

Checklist

Description

Test only changes.

Allow the testing suite to be executed against a non-"cloudant.com" database URL (like FDB).

See FDB results here. Summary of outstanding failures:

Cloudant
  set_security
    1) add _reader nobody role
    2) add _writer nobody role (with missing cloudant key)
    3) set couchdb_auth_only mode

Issue #292
  4) lists all query indices
  5) creates new query index

Authentication
  6) supports Authentication API - POST /_api/v2/api_keys

CORS
  7) supports CORS API - GET /_api/v2/user/config/cors
  8) supports CORS API - PUT /_api/v2/user/config/cors

Authorization
  9) supports Authorization API GET _api/v2/db/<db>/_security
  10) supports Authorization API - PUT _api/v2/db/<db/_security

Cloudant-Specific APIs
  11) Has geo querying

Cloudant Query
  12) supports Cloudant Query create indexes - POST /<db/_index API call
  13) supports Cloudant Query get indexes - GET /<db/_index
  14) supports Cloudant Query - POST /<db/_find API call
  15) supports deleting a Cloudant Query index - DELETE /db/_design/ddocname/type/viewname

Cloudant Search
  16) searches test data: author:charles
  17) searches test data: title:two

Stream
  18) bulk documents to database
  19) all documents to file
  20) all documents to file (when piping inside response handler)
smithsz commented 5 years ago

I've merged the cloudant/error-on-cookie-auth-failure-tests PR here to keep all these tests changes together.

Note that the token manager open PRs will contains fixes for the failing Travis tests.