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

Update ChangeStream tests for 4.1.1 "drop" notifications

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Two new test failures caused by the new "drop" notifications added in SERVER-35028:

       [2018/06/11 11:58:20.256] ======================================================================
       [2018/06/11 11:58:20.256] FAIL [0.115s]: test_change_operations (test_change_stream.TestChangeStream)
       [2018/06/11 11:58:20.256] Test each operation type.
       [2018/06/11 11:58:20.256] ----------------------------------------------------------------------
       [2018/06/11 11:58:20.256] Traceback (most recent call last):
       [2018/06/11 11:58:20.256]   File "/data/mci/90bdce61ae31cce95a13bcd3934d672f/src/test/test_change_stream.py", line 319, in test_change_operations
       [2018/06/11 11:58:20.256]     self.assertEqual(change['operationType'], 'invalidate')
       [2018/06/11 11:58:20.256] AssertionError: 'drop' != 'invalidate'
       [2018/06/11 11:58:20.256] - drop
       [2018/06/11 11:58:20.256] + invalidate
       [2018/06/11 11:58:20.256] ======================================================================
       [2018/06/11 11:58:20.256] FAIL [0.045s]: test_iteration (test_change_stream.TestChangeStream)
       [2018/06/11 11:58:20.256] ----------------------------------------------------------------------
       [2018/06/11 11:58:20.256] Traceback (most recent call last):
       [2018/06/11 11:58:20.256]   File "/data/mci/90bdce61ae31cce95a13bcd3934d672f/src/test/test_change_stream.py", line 131, in test_iteration
       [2018/06/11 11:58:20.256]     self.assertEqual(change['operationType'], 'insert')
       [2018/06/11 11:58:20.256] AssertionError: 'drop' != 'insert'
      

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

              Created:
              Updated:
              Resolved: