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: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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:
              Resolved: