Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1268

Test Failure - test_hello_without_speculative_authenticate_command_and_server_reply_are_not_redacted

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Python Drivers

      TestCommandLoggingRedactedCommands.test_hello_without_speculative_authenticate_command_and_server_reply_are_not_redacted is failing:

       [2024/02/29 15:29:38.924] _ TestCommandLoggingRedactedCommands.test_hello_without_speculative_authenticate_command_and_server_reply_are_not_redacted _
       [2024/02/29 15:29:38.924] self = <test.test_command_logging.TestCommandLoggingRedactedCommands testMethod=test_hello_without_speculative_authenticate_command_and_server_reply_are_not_redacted>
       [2024/02/29 15:29:38.924]     def test_case(self):
       [2024/02/29 15:29:38.924] >       self.run_scenario(spec)
       [2024/02/29 15:29:38.924] test/unified_format.py:1854:
       [2024/02/29 15:29:38.924] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/29 15:29:38.924] test/unified_format.py:1801: in run_scenario
       [2024/02/29 15:29:38.924]     self._run_scenario(spec, uri)
       [2024/02/29 15:29:38.924] test/unified_format.py:1828: in _run_scenario
       [2024/02/29 15:29:38.924]     self.check_log_messages(spec["operations"], expect_log_messages)
       [2024/02/29 15:29:38.924] test/unified_format.py:1762: in check_log_messages
       [2024/02/29 15:29:38.924]     self.match_evaluator.match_result(expected_data, actual_data)
       [2024/02/29 15:29:38.924] test/unified_format.py:791: in match_result
       [2024/02/29 15:29:38.924]     return self._match_document(expectation, actual, is_root=not in_recursive_call)
       [2024/02/29 15:29:38.924] test/unified_format.py:776: in _match_document
       [2024/02/29 15:29:38.924]     if self._evaluate_if_special_operation(expectation, actual, key):
       [2024/02/29 15:29:38.924] test/unified_format.py:763: in _evaluate_if_special_operation
       [2024/02/29 15:29:38.924]     self._evaluate_special_operation(
       [2024/02/29 15:29:38.924] test/unified_format.py:728: in _evaluate_special_operation
       [2024/02/29 15:29:38.924]     method(spec, actual, key_to_compare)
       [2024/02/29 15:29:38.924] test/unified_format.py:716: in _operation_matchAsDocument
       [2024/02/29 15:29:38.924]     self._match_document(spec, json_util.loads(actual[key_to_compare]), False)
       [2024/02/29 15:29:38.924] bson/json_util.py:507: in loads
       [2024/02/29 15:29:38.924]     return json.loads(s, *args, **kwargs)
       [2024/02/29 15:29:38.924] /opt/python/3.12/lib/python3.12/json/__init__.py:359: in loads
       [2024/02/29 15:29:38.924]     return cls(**kw).decode(s)
       [2024/02/29 15:29:38.924] /opt/python/3.12/lib/python3.12/json/decoder.py:337: in decode
       [2024/02/29 15:29:38.924]     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
       [2024/02/29 15:29:38.924] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/29 15:29:38.924] self = <json.decoder.JSONDecoder object at 0x7fc3933ebdd0>
       [2024/02/29 15:29:38.924] s = '{"topologyVersion": {"processId": {"$oid": "65e1112562fe19b30e6fb7a9"}, "counter": 6}, "hosts": ["localhost:27017", "..."$clusterTime": {"clusterTime": {"$timestamp": {"t": 1709248989, "i": 11}}, "signature": {"hash": {"$binary": {"bas...'
       [2024/02/29 15:29:38.924] idx = 0
       [2024/02/29 15:29:38.924]     def raw_decode(self, s, idx=0):
       [2024/02/29 15:29:38.924]         """Decode a JSON document from ``s`` (a ``str`` beginning with
       [2024/02/29 15:29:38.924]         a JSON document) and return a 2-tuple of the Python
       [2024/02/29 15:29:38.924]         representation and the index in ``s`` where the document ended.
       [2024/02/29 15:29:38.924]         This can be used to decode a JSON document from a string that may
       [2024/02/29 15:29:38.924]         have extraneous data at the end.
       [2024/02/29 15:29:38.924]         """
       [2024/02/29 15:29:38.924]         try:
       [2024/02/29 15:29:38.924] >           obj, end = self.scan_once(s, idx)
       [2024/02/29 15:29:38.924] E           json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 997 (char 996)
       [2024/02/29 15:29:38.925] /opt/python/3.12/lib/python3.12/json/decoder.py:353: JSONDecodeError
      

      https://spruce.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro_py312_os~rhel84_test_latest_replica_set_e8a6d6de3ce622a4b501f7477d01769c7bc6fce0_24_02_29_23_15_22/logs?execution=0&sortBy=STATUS&sortDir=ASC

      This test was introduced in PYTHON-3473.

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

              Created:
              Updated:
              Resolved: