[SERVER-19113] MongoRunner should use correct SSL configuration to connect to the processes it starts Created: 24/Jun/15  Updated: 05/Feb/16  Resolved: 30/Jun/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.6

Type: Improvement Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-19035 Implement OP_COMMAND autodetection in... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platform 6 07/17/15
Participants:

 Description   

MongoRunner is a test fixture used in our jstest suite to start Mongo processes.

After MongoRunner launches a mongo process, it detects that it is ready for connections by repeatedly creating a new Mongo object in a loop. Note that the Mongo object inherits the SSL configuration of the shell that created it.

As creating a Mongo object previously did nothing but open a socket to the remote server, this test worked regardless of whether the shell was enabled to connect with SSL, even if the MongoDB instance it started was configured to only accept connections with SSL.

As part of SERVER-19035, DBClientConnection, the C++ object exposed to javascript through the Mongo object, was changed to call 'isMaster' after connecting. This breaks SSL tests (ssl_crl.js, ssl_mixedmode.js) that start MongoDB instances with different SSL configurations than the underlying shell.

To fix this, we will need to change MongoRunner.startWithArgs to instead repeatedly attempt to launch a new mongo shell with the correct SSL configuration to connect to the newly started server.



 Comments   
Comment by Githook User [ 30/Jun/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-19113 rewrite ssl_crl.js and ssl_mixedmode.js to not depend on legacy DBClientConnection behavior
Branch: master
https://github.com/mongodb/mongo/commit/2186037a81b3483681f23bc9c614f40ecc413326

Generated at Thu Feb 08 03:49:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.