summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Enable coverage for mango eunit testsarchive/mango-eunit-test-fixesmango-eunit-test-fixesJay Doane2020-02-161-0/+2
|
* Fix mango_cursor_view testsJay Doane2020-02-141-4/+4
| | | | | | | Wrap `RowProps` in a tuple, and correctly order assertions. Note that `does_not_run_match_on_doc_with_value_test` still fails with a `no_match`.
* Fix mango_idx testsJay Doane2020-02-141-9/+14
|
* Fix mango_jobs_indexer_testJay Doane2020-02-141-2/+2
|
* Suppress compiler warningsJay Doane2020-02-133-18/+12
|
* Fix mango_indexer_testJay Doane2020-02-131-1/+1
| | | | The callback first argument shape changed to `{doc, SortKeys, JsonDoc}`.
* split out queries and all tests passingGarren Smith2020-02-139-125/+164
|
* Remove printsJay Doane2020-02-132-2/+0
|
* Eliminate compiler warningsJay Doane2020-02-131-1/+1
|
* Fix failing test getting 500 expecting 503Jay Doane2020-02-131-1/+6
| | | | | | 06-basic-text-test.py", line 27, in test_create_text_index assert resp.status_code == 503, resp AssertionError: <Response [500]>
* basic loading of conflicts for docsGarren Smith2020-02-133-2/+24
|
* getting tests to passGarren Smith2020-02-1313-40/+49
|
* add bookmark supportGarren Smith2020-02-134-39/+70
|
* Wrap lines to 80 chars and remove trailing whitespaceJay Doane2020-02-133-90/+270
|
* more work on background indexerGarren Smith2020-02-1313-32/+44
|
* background indexing for mangoGarren Smith2020-02-1316-56/+877
|
* fix loading doc body in mango_idx:listGarren Smith2020-02-137-15/+25
|
* Refactor mango indexer hookJay Doane2020-02-132-33/+43
|
* able to add/delete/update mango fdb indexesGarren Smith2020-02-137-166/+252
|
* range query fixes from testsGarren Smith2020-02-1312-415/+448
|
* index and _all_docs queries workingGarren Smith2020-02-138-393/+439
|
* initial creation of fdb startkey/endkeyGarren Smith2020-02-139-138/+223
|
* very rough indexing and return docsGarren Smith2020-02-1317-855/+1328
|
* mango crud index definitionsGarren Smith2020-02-135-24/+69
|
* change mango test auth to match elixirGarren Smith2020-02-132-4/+4
|
* add crude mango hook and indexer setupGarren Smith2020-02-135-4/+215
|
* Encode startkey/endkey for all_docs (#2538)garren smith2020-02-133-16/+60
| | | | | | | * Encode startkey/endkey for all_docs Encodes the startkey/endkey so that if a startkey is not binary it will return the expected results.
* Merge pull request #2519 from cloudant/fix-b3-headeriilyak2020-02-046-112/+121
|\ | | | | Fix b3 header
| * Add basic test case for b3 fixILYA Khlopotov2020-02-042-0/+103
| |
| * fix b3 - Headers suppose to be stringsILYA Khlopotov2020-02-041-1/+1
| |
| * Support setting base_url in Couch test helperILYA Khlopotov2020-02-041-7/+14
| |
| * Update httpotion to 3.1.3ILYA Khlopotov2020-02-043-104/+3
|/ | | | | | | | There were couple of hacks in test/elixir/lib/couch.ex We've got changes needed to remove them into httpotion 3.1.3. The changes were introduced in: - https://github.com/myfreeweb/httpotion/pull/118 - https://github.com/myfreeweb/httpotion/pull/130
* Merge pull request #2494 from cloudant/add-http-reporteriilyak2020-01-304-16/+56
|\ | | | | Add http reporter
| * Support jaeger http reporterILYA Khlopotov2020-01-304-16/+56
|/
* Merge pull request #2503 from apache/reserve-search-namespaceRobert Newson2020-01-291-0/+1
|\ | | | | reserve search namespace
| * reserve search namespacereserve-search-namespaceRobert Newson2020-01-291-0/+1
|/
* Merge pull request #2499 from apache/expiring-cache-cleanupJay Doane2020-01-281-1/+0
|\ | | | | Delete unused ets table creation
| * Delete unused ets table creationexpiring-cache-cleanupJay Doane2020-01-281-1/+0
|/ | | | | | This ets table was a holdover from when couch_expiring_cache was a non- library OTP application. It is unused, and would prevent multiple users of the library in the same project.
* Merge pull request #2495 from apache/prototype/fdb-layer-bump-ioqEric Avdey2020-01-281-1/+1
|\ | | | | Bump ioq to 2.1.3
| * Bump ioq to 2.1.3prototype/fdb-layer-bump-ioqEric Avdey2020-01-281-1/+1
|/
* Change map indexes to be stored in one rowGarren Smith2020-01-223-114/+17
| | | | | Changes map indexes to store the original key and value in a single FDB row.
* Merge pull request #2451 from cloudant/tracing-externaliilyak2020-01-212-5/+10
|\ | | | | Add `external` tag to opentrace events
| * Add `external` tag to opentrace eventsILYA Khlopotov2020-01-142-5/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | This PR adds an ability to selectively enable opentracing for HTTP requests with X-B3-... headers. This is helpful in following cases: - tracing all requests with X-B3-... headers `all = (#{external := E}) when E == true -> true` - tracing all requests to specific database with X-B3-... headers ``` all = (#{external := E, 'db.name' := Db}) when E == true andalso Db == <<"foo">> -> true ``` - tracing requests to specific endpoint with X-B3-... headers ``` db.design.view.read = (#{external := E, 'design.id' := Name}) when E == true andalso Name == <<"bar">> -> true ``` I want to remind that we support following X-B3-... headers: - X-B3-TraceId - X-B3-SpanId - X-B3-ParentSpanId - B3 which is in the following format <TraceId>-<SpanId>-<1 | 0>-<ParentSpanId>
* Improve transaction name setting when tracing FDB transactionsNick Vatamaniuc2019-12-181-1/+4
| | | | | | | | | Previously the per-request nonce value was set as the transaction name and so in the trace logs multiple transactions ended up having the same `TransactionID` which was pretty confusing. To fix the issue, append a transaction ID to the name. The ID is guaranteed to be unique for the life of the VM node.
* Merge pull request #2331 from cloudant/expiring-cacheJay Doane2019-12-109-0/+507
|\ | | | | Expiring cache
| * Expiring cacheexpiring-cacheJay Doane2019-12-109-0/+507
|/ | | | | | | | | | This is a library for creating an FDB backed key value cache, where each entry has a `stale` and `expires` time associated with it. Once the current time exceeds the `expires` time, the entry is automatically removed. The `stale` time can be used to indicate that a refresh is necessary, while still returning a non-expired value. It is potentially useful for implementing e.g. caches to external systems of record, such as OAuth 2.
* Delete attachments when no longer referencedPaul J. Davis2019-12-105-20/+428
| | | | | | | | | | | | | This fixes attachment handling to properly remove attachment data when it is no longer referenced by the document's revision tree. As implemented this accounts for the possibility that multiple revisions may reference a given attachment id. However, due to how the current revision tree removes revisions aggressively it's not currently possible for multiple leaf revisions to share an underlying attachment. This is because when attempting to use a stub attachment when replicating in a conflict we will encounter the `missing_stub` error because the previous shared revision has already been removed.
* Silence test suite warning message about cryptoPaul J. Davis2019-12-101-0/+4
|
* Normalize fabric2 test suitePaul J. Davis2019-12-0517-209/+214
| | | | | This change ensures that all test names are visible and follows a single unified pattern for each test module.
* Retry for failed indexes buildsGarren Smith2019-12-023-6/+103
| | | | | Retry building a failing index for a set number of retries. If it never completes, then return the error to the user.