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

Test failure - test_database.TestDatabase. test_command

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7.2
    • Affects Version/s: None
    • Component/s: Tests
    • None

      test_database.TestDatabase. test_command failed because it does not ignore the $clusterTime field.

       [2018/10/09 15:00:19.562] FAIL [0.010s]: test_command (test_database.TestDatabase)
       [2018/10/09 15:00:19.563] ----------------------------------------------------------------------
       [2018/10/09 15:00:19.563] Traceback (most recent call last):
       [2018/10/09 15:00:19.563]   File "/data/mci/fb9ad359c4a73a372b22814509053a43/src/test/test_database.py", line 442, in test_command
       [2018/10/09 15:00:19.563]     self.assertEqual(first, second)
       [2018/10/09 15:00:19.563] AssertionError: {u'st[537 chars]12, 12), u'signature': {u'keyId': 661047737894[1004 chars]loc'} != {u'st[537 chars]12, 16), u'signature': {u'keyId': 661047737894[1004 chars]loc'}
       [2018/10/09 15:00:19.563] - {u'$clusterTime': {u'clusterTime': Timestamp(1539122012, 12),
       [2018/10/09 15:00:19.563] ?                                                           ^
       [2018/10/09 15:00:19.563] + {u'$clusterTime': {u'clusterTime': Timestamp(1539122012, 16),
       [2018/10/09 15:00:19.563] ?                                                           ^
       [2018/10/09 15:00:19.563]                      u'signature': {u'hash': Binary('\n\xbf\x07\x85\x1c\xe9\xa7\xd1=%\x1dy\x81]\x98\xb2Y\x96.D', 0),
       [2018/10/09 15:00:19.563]                                     u'keyId': 6610477378948825089L}},
       [2018/10/09 15:00:19.563]    u'allocator': u'tcmalloc',
       [2018/10/09 15:00:19.563]    u'bits': 64,
       [2018/10/09 15:00:19.563]    u'buildEnvironment': {u'cc': u'/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0',
       [2018/10/09 15:00:19.563]                          u'ccflags': u'-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp',
       [2018/10/09 15:00:19.563]                          u'cxx': u'/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0',
       [2018/10/09 15:00:19.563]                          u'cxxflags': u'-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++14',
       [2018/10/09 15:00:19.563]                          u'distarch': u'x86_64',
       [2018/10/09 15:00:19.563]                          u'distmod': u'rhel62',
       [2018/10/09 15:00:19.563]                          u'linkflags': u'-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro -Wl,-rpath,/usr/lib64/perl5/CORE',
       [2018/10/09 15:00:19.563]                          u'target_arch': u'x86_64',
       [2018/10/09 15:00:19.563]                          u'target_os': u'linux'},
       [2018/10/09 15:00:19.563]    u'debug': False,
       [2018/10/09 15:00:19.563]    u'gitVersion': u'3b07af3d4f471ae89e8186d33bbb1d5259597d51',
       [2018/10/09 15:00:19.563]    u'javascriptEngine': u'mozjs',
       [2018/10/09 15:00:19.563]    u'maxBsonObjectSize': 16777216,
       [2018/10/09 15:00:19.563]    u'modules': [u'enterprise'],
       [2018/10/09 15:00:19.563]    u'ok': 1.0,
       [2018/10/09 15:00:19.563]    u'openssl': {u'compiled': u'OpenSSL 1.0.1e-fips 11 Feb 2013',
       [2018/10/09 15:00:19.563]                 u'running': u'OpenSSL 1.0.1e-fips 11 Feb 2013'},
       [2018/10/09 15:00:19.563]    u'storageEngines': [u'devnull',
       [2018/10/09 15:00:19.563]                        u'ephemeralForTest',
       [2018/10/09 15:00:19.563]                        u'inMemory',
       [2018/10/09 15:00:19.563]                        u'mmapv1',
       [2018/10/09 15:00:19.563]                        u'queryable_mmapv1',
       [2018/10/09 15:00:19.563]                        u'queryable_wt',
       [2018/10/09 15:00:19.563]                        u'wiredTiger'],
       [2018/10/09 15:00:19.563]    u'sysInfo': u'deprecated',
       [2018/10/09 15:00:19.563]    u'version': u'4.0.0',
       [2018/10/09 15:00:19.563]    u'versionArray': [4, 0, 0, 0]}
       [2018/10/09 15:00:19.563] ----------------------------------------------------------------------
      

      https://evergreen.mongodb.com/task/mongo_python_driver_3.7_tests_python_version_rhel62_test_ssl__auth~auth_ssl~ssl_python_version~2.6_coverage~coverage_test_4.0_replica_set_patch_775943602a5b7a9d8adf27c8d25b4086298fd846_5bbd21d1e3c3315c26d8588e_18_10_09_21_47_24

            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: