[CDRIVER-3531] Do not require session support to run CRUD tests Created: 10/Feb/20  Updated: 28/Oct/23  Resolved: 14/May/20

Status: Closed
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: 1.17.0-beta2, 1.17.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CDRIVER-3477 _mongoc_bulk_operation_update_append ... Closed

 Description   

Crud tests are skipped if libmongoc is not built with sessions support:
https://github.com/mongodb/mongo-c-driver/blob/1.16.0/src/libmongoc/tests/test-mongoc-crud.c/#L40-L43

   install_json_test_suite_with_check (suite,
                                       resolved,
                                       &test_crud_cb,
                                       test_framework_skip_if_no_sessions);

But I do not believe this should require driver sessions support. However, changing this to:

   install_json_test_suite_with_check (suite,
                                       resolved,
                                       &test_crud_cb,
                                       TestSuite_CheckLive);

Does result in some test failures:
https://evergreen.mongodb.com/version/5e418a2232f4174d3be1b9c3

Which I cannot reproduce locally on my macOS machine.



 Comments   
Comment by Githook User [ 25/May/20 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: CDRIVER-3531 do not require session support for CRUD tests
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/2f341028c75fa383681d684ca22c649d7975b5a4

Generated at Wed Feb 07 21:18:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.