[GODRIVER-1254] Fix libmongocrypt wrapper test failure Created: 26/Aug/19  Updated: 28/Oct/23  Resolved: 26/Aug/19

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.0

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

CDRIVER-3125 fixed a key caching bug that happened when keyAltName was specified. As a result, the assertion on https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/mongocrypt/mongocrypt_test.go#L356 fails because libmongocrypt caches the key and does not enter the NeedMongoKeys state again. Fix this by checking for the Ready state immediately.

While fixing this, another error was found: an error message in libmongocrypt was updated, causing 2 spec tests to fail. The work for this ticket should also include syncing spec test files to pull in changes from commit c12dc705f7a75be056fe88525731363e5372c385 in the specs repo.



 Comments   
Comment by Githook User [ 26/Aug/19 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: Fix libmongocrypt tests.

  • Fix wrapper unit test to account for libmongocrypt bugfix.
  • Update JSON files to account for modified error message in libmongocrypt..

GODRIVER-1254

Change-Id: Iad0781ce0aee553b86958182361f6ab4920fb198
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/bcadbaff2e4c08c1bfff077b6b1a670ad88226d2

Comment by Divjot Arora (Inactive) [ 26/Aug/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/466340

Generated at Thu Feb 08 08:36:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.