Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2344

CRUD spec runner not properly checking error labels

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Spec Comp, Tests
    • None

      The CRUD spec runner is not properly checking the `errorLabelContains` and `errorLabelOmits` fields in some (maybe all?) cases.

      As an example, in `spec/spec_tests/data/retryable_writes/insertOne-serverErrors.yml`, change the error on line 452 and run the tests. Observe that none of the tests fail.

      I believe that part of the problem is that, in the CRUD spec test verifier, the error labels are only checked when the actual result is a Hash, but they should be checking when the result is an error. (This is just my guess and I would have to look into it further.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: