mongodb/test
Pierre Mizrahi 995087e9a0 repair single document upserts when using OP_MSG
780df80cfc introduces support for the
OP_MSG protocol. Unfortunately, the upsert and multi options of the
update command still use flagBits to communicate the options, whereas
they must be provided directly into the command document,
alongside the "q" and "v" fields.

This commit:
 - introduces a test for a single-document upsert that, if isolated,
   succeeds against the reference MongoDB 3.6 container, but fails
   against an official 6.0 image.
 - provides a patch that sets the appropriate options.

The test is not perfect as the upsert operation is inherently racy and
this difficult to test. A comfortable threadDelay has been inserted as
a workaround to accomodate for medium workloads.
2023-02-13 14:05:56 +01:00
..
Main.hs Tests use env variable to find mongodb host 2017-04-09 10:20:10 -07:00
QuerySpec.hs repair single document upserts when using OP_MSG 2023-02-13 14:05:56 +01:00
Spec.hs Report the version of mongodb we run tests against 2016-05-20 23:41:24 -07:00
TestImport.hs Drop testing of GHC 7.6 and mongo 2.4 2017-04-09 13:54:19 -07:00