[JAVA-2691] Ensure that core driver integration tests execute with a session where possible Created: 06/Dec/17  Updated: 28/Oct/23  Resolved: 07/Dec/17

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 3.6.1

Type: Improvement Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
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 DRIVERS-430 Test that killCursors really succeeds Implementing

 Description   

As implicit sessions are implemented as part of MongoClient, the current test suites only use them when running integration tests using MongoClient. But as most of the integration tests in the driver are in the driver-core module, it means that none of them run with implicit sessions.

The driver-core test suite should be enhanced such that when running against MongoDB 3.6+ an implicit session is used when executing all driver-core tests.



 Comments   
Comment by Githook User [ 07/Dec/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2691: Fix test for MongoDB 3.0 and below
Branch: 3.6.x
https://github.com/mongodb/mongo-java-driver/commit/94990d700fcc69f4022ad8ca7e9e6b1b666a66ef

Comment by Githook User [ 07/Dec/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2691: Fix test for MongoDB 3.0 and below
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/23092368d007f1479e45e8d2aa27648301d92d84

Comment by Githook User [ 07/Dec/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2691: Ensure that all driver-core integration tests run with sessions enabled on MongoDB 3.6+
Branch: 3.6.x
https://github.com/mongodb/mongo-java-driver/commit/357ffae157b836086b7fdc1f2a6e9e4f68fca588

Comment by Githook User [ 07/Dec/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2691: Ensure that all driver-core integration tests run with sessions enable on MongoDB 3.6+
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/cd31c679999a78d7f591e22ceb41687311b041fd

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