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

Test Failure - test_*_with_invalid_keys (test_collection.TestCollection)

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

      The test_*_with_invalid_keys tests are failing against the latest version of the server because of SERVER-29594.

      v2.9 failures against MongoDB latest:

       [2017/06/26 16:19:18.546] Traceback (most recent call last):
       [2017/06/26 16:19:18.546]   File "/data/mci/fb430455d6605b4ae6595d81805be870/src/test/test_collection.py", line 2876, in test_backport_update_with_invalid_keys
       [2017/06/26 16:19:18.546]     {"hello": "world"}, doc)
       [2017/06/26 16:19:18.546] AssertionError: OperationFailure not raised
       [2017/06/26 16:19:18.546] ======================================================================
       [2017/06/26 16:19:18.546] FAIL: test_save_with_invalid_key (test.test_collection.TestCollection)
       [2017/06/26 16:19:18.546] ----------------------------------------------------------------------
       [2017/06/26 16:19:18.546] Traceback (most recent call last):
       [2017/06/26 16:19:18.546]   File "/data/mci/fb430455d6605b4ae6595d81805be870/src/test/test_collection.py", line 1024, in test_save_with_invalid_key
       [2017/06/26 16:19:18.546]     self.assertRaises(expected, self.db.test.save, doc)
       [2017/06/26 16:19:18.546] AssertionError: OperationFailure not raised
       [2017/06/26 16:19:18.546] ======================================================================
       [2017/06/26 16:19:18.546] FAIL: test_update_with_invalid_keys (test.test_collection.TestCollection)
       [2017/06/26 16:19:18.546] ----------------------------------------------------------------------
       [2017/06/26 16:19:18.546] Traceback (most recent call last):
       [2017/06/26 16:19:18.546]   File "/data/mci/fb430455d6605b4ae6595d81805be870/src/test/test_collection.py", line 1321, in test_update_with_invalid_keys
       [2017/06/26 16:19:18.546]     self.db.test.update, {"hello": "world"}, doc)
       [2017/06/26 16:19:18.546] AssertionError: OperationFailure not raised
      

      Failures in master:

       [2017/06/26 13:55:41.787] ======================================================================
       [2017/06/26 13:55:41.787] FAIL [0.027s]: test_update_with_invalid_keys (test_collection.TestCollection)
       [2017/06/26 13:55:41.787] ----------------------------------------------------------------------
       [2017/06/26 13:55:41.787] Traceback (most recent call last):
       [2017/06/26 13:55:41.787]   File "/data/mci/7b3c0a8141f9f76c1f5804540cb10e26/src/test/test_collection.py", line 1416, in test_update_with_invalid_keys
       [2017/06/26 13:55:41.787]     {"hello": "world"}, doc)
       [2017/06/26 13:55:41.787] AssertionError: OperationFailure not raised by replace_one
       [2017/06/26 13:55:41.787] ======================================================================
       [2017/06/26 13:55:41.787] FAIL [0.020s]: test_save_with_invalid_key (test_legacy_api.TestLegacy)
       [2017/06/26 13:55:41.787] ----------------------------------------------------------------------
       [2017/06/26 13:55:41.787] Traceback (most recent call last):
       [2017/06/26 13:55:41.787]   File "/data/mci/7b3c0a8141f9f76c1f5804540cb10e26/src/test/test_legacy_api.py", line 609, in test_save_with_invalid_key
       [2017/06/26 13:55:41.787]     self.assertRaises(expected, self.db.test.save, doc)
       [2017/06/26 13:55:41.787] AssertionError: OperationFailure not raised by save
      

            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: