1. Jul 14, 2021
  2. Jul 13, 2021
  3. Jul 06, 2021
    • Andreas Braun's avatar
      Sync sdam spec tests (#813) · 3a6f54eb
      Andreas Braun authored
      This brings the tests up-to-date with mongodb/specifications@b07c26dc.
      3a6f54eb
    • Andreas Braun's avatar
      CDRIVER-4000 Test redaction of sensitive commands (#814) · 6d8fc7ea
      Andreas Braun authored
      * Sync command monitoring spec tests
      
      This brings the spec tests up to date with mongodb/specifications#84ac002b
      
      * Add support for 1.5 unified test format schema
      
      This adds support for the "observeSensitiveCommands" monitoring option, as well as the new "auth" runOnRequirement.
      
      * Redact sensitive commands for APM
      
      * Test redaction of replies for sensitive commands
      
      * Force redaction of replies for sensitive commands
      
      Previously, the driver would not redact the reply to a hello command with speculative authentication unless the reply also was sensitive. As this makes the test completely useless, we've decided to always require redaction of replies when the command was redacted.
      
      * Document is_redacted and force_redaction arguments to APM initialisers
      
      * Make redaction helpers static
      6d8fc7ea
  4. Jul 04, 2021
  5. Jul 01, 2021
  6. Jun 29, 2021
  7. Jun 25, 2021
  8. Jun 24, 2021
    • Benjamin Rewis's avatar
      Upgrade Ubuntu tasks Evergreen (#796) · dad33550
      Benjamin Rewis authored
      * CDRIVER-3912 Run OCSP tests against Ubuntu 20.04
      * CDRIVER-3946 Run Evg tasks on Ubuntu 18.04 and RHEL 8.1 (power8)
      * CDRIVER-4022 Skip invalid_wc_server_error test on mongos
      dad33550
  9. Jun 23, 2021
  10. Jun 22, 2021
    • Andreas Braun's avatar
      CDRIVER-3997 Use "hello" command for monitoring if supported (#797) · d2617271
      Andreas Braun authored
      
      
      * Handle helloOk flag in server description
      
      * Refactor handshake command naming
      
      * Use hello command after seeing helloOk in legacy hello response
      
      * Fix 5.0 test
      
      * Update SDAM spec tests to latest version
      
      * Reset hello_ok in mongoc_server_description_reset only
      
      * Don't update initial server description in server monitor
      
      * Always build legacy_hello_cmd with legacy hello command
      
      * Test fallback to legacy hello after connection is closed
      
      * Update wrong comment
      
      Co-authored-by: default avatarKevin Albertson <kevin.albertson@10gen.com>
      
      * Don't modify legacy_hello_cmd when using versioned API
      
      * Lock topology mutex before obtaining server description
      
      * Don't update hello_ok when declaring API version
      
      This is not necessary since we don't rely on hello_ok if an API version was declared
      
      This partially reverts commit 7d58f04773c53b78043cb4cb89f07b8cb64a17a5.
      
      * Remove early return when reconciling scanner nodes
      
      Co-authored-by: default avatarKevin Albertson <kevin.albertson@10gen.com>
      d2617271
  11. Jun 18, 2021
  12. Jun 16, 2021
    • Jeremy Mikola's avatar
      CDRIVER-3895: Remove dots/dollars validation for insert/replace docs (#801) · 2597f6d4
      Jeremy Mikola authored
      * CDRIVER-3895: Update CRUD, transactions, and unified spec tests
      
      Also replaces CRUD legacy/v2 tests with unified equivalents for CDRIVER-3960.
      
      Synced with mongodb/specifications@a124e21be89cbfc78606725c6ed1fa00dc992777
      
      * Skip unified CRUD tests related to CDRIVER-3630
      
      * Ensure upsertedIds is always present in BulkWriteResult
      
      * Allow array or document for updateOne/Many update arg
      
      * Remove dot/dollar restrictions for insert/replace validation
      
      This adds top-level key validation to _mongoc_validate_replace, similar to what existed in _mongoc_validate_update.
      
      * Remove redundant replace doc validation for legacy updates
      
      Replacement docs will already be validated by _mongoc_validate_replace before this function is reached.
      
      This adds logic to ensure "q" and "u" documents are present, similar to what existed in _mongoc_write_command_delete_legacy.
      
      * Test success and failure for legacy update code path
      
      The failure code path is testing that arguments are still validated by mongoc-util.c, despite replacement validation being removed in a previous commit.
      
      * Revert "Skip tests with dots and dollars in field names on 5.0+ (#795)"
      
      This reverts commit bd014ee7
      
      .
      
      * Revise bulk and collection tests for allowing dots/dollars
      
      Empty keys can be used as a reliable BSON validation error, since insert, replace, and update all specify BSON_VALIDATE_EMPTY_KEYS in their vflags. Error message expectations are adjusted accordingly.
      
      An _id document with a dollar-prefixed key is also used as a reliable server-side validation error.
      
      * Allow methods in bulk_op_append to fail so expectError can be evaluated
      
      * Skip unified tests due to schema version and outstanding issues
      
      Allow entire files to be skipped to preempt schema version errors.
      
      * Ensure WC is set on database and collection entities
      
      Co-authored-by: default avatarKevin Albertson <kevin.albertson@10gen.com>
      2597f6d4
  13. Jun 12, 2021
  14. Jun 11, 2021
    • Jeremy Mikola's avatar
      CDRIVER-3970: Remove DBRef validation from Extended JSON parser (#800) · 3ecb8481
      Jeremy Mikola authored
      * CDRIVER-3970: Remove DBRef validation from Extended JSON parser
      
      Documents that resemble but do not conform to a DBRef should be left as-is.
      
      Syncs BSON corpus tests with mongodb/specifications@a274fbfddfd39f5f3d00712c422e4f1b062d783c
      
      Skips were added for additional corpus tests unrelated to this spec change.
      
      Use hex escaping instead of unicode for MSVC compatibility
      3ecb8481
  15. Jun 09, 2021
  16. Jun 04, 2021
  17. Jun 03, 2021
  18. May 27, 2021
    • Jeremy Mikola's avatar
      Fix typo in bson_utf8_validate doc block · d88b9d17
      Jeremy Mikola authored
      d88b9d17
    • Andreas Braun's avatar
      CDRIVER-3985 Remove Oppressive Terminology From Code (#794) · f1093ba1
      Andreas Braun authored
      * Remove deprecated terminology for legacy hello
      
      * Remove deprecated terminology for secondaryOk
      
      * Remove deprecated terminology for allow/deny list
      
      * Remove deprecated terminology for notPrimary
      
      * Update terminology in spec tests
      
      * Fix issues from code review
      
      * Remove more language in docs
      
      * Undo accidental change to hello
      
      * Use secondaryOk when printing query flags
      
      * Fix wrong variable name
      
      * Remove deprecated terminology in tests
      
      * Remove branch name from installation docs
      
      * Clarify build examples in readme
      f1093ba1
  19. May 22, 2021
  20. May 20, 2021
  21. May 18, 2021
    • Andreas Braun's avatar
      CDRIVER-3947 Use "hello" command when an API version is declared (#784) · d08ef111
      Andreas Braun authored
      * Use hello command for handshake with versioned API
      
      * Support handling hello command responses
      
      * Deprecate legacy hello terminology
      
      * Test handling hello command responses
      
      * Refactor internal methods to use hello terminology
      
      * Change mock server to also handle hello
      
      * Replace deprecated terminology in test expectations
      
      * Use hello in tests
      
      * Fix speculative auth responder
      
      * Fix legacy hello command usage
      
      * Add test for behaviour when server does not support hello command
      
      * Use legacy hello in tests to avoid failures on old server versions
      
      * Update SDAM spec tests
      
      * Fix memory leak
      
      * Fix wrong command expectations for handshake
      
      * Refactor handshake autoresponders
      
      * Fix wrong comment style
      
      * Rename mongoc_server_description_hello_response
      
      * Use method to retrieve hello response
      
      * Improve deprecation declaration
      
      * Rename methods for hello callbacks
      
      * Fix various test issues
      
      * Rename hello_response method
      d08ef111
  22. May 10, 2021
  23. May 05, 2021
  24. May 03, 2021
  25. Apr 30, 2021
  26. Apr 27, 2021