Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1991

CRUD for bulkWrite tests should validate the expected result of a BulkWriteError

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      CRUD for bulkWrite tests should validate the expected result of a BulkWriteError. Right now we just validate that the bulkWrite failed as expected and ignore the "outcome.result" field when "outcome.error" is set.

      One example is "BulkWrite continue-on-error behavior with unordered (preexisting duplicate key)".

      Note that in some cases (retryable write errors for example) pymongo will raise a non-BulkWriteError exception. In those cases we cannot check the result field.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: