SERVER-99861 Allow gRPC cpp integration tests to run outside of gRPC build variant (#32563)

GitOrigin-RevId: 42cd8029211fe528a00db2f3f7b77ec83f3617a0
This commit is contained in:
Erin McNulty
2025-02-20 16:28:32 -05:00
committed by MongoDB Bot
parent cbfa6e89c3
commit 3a4153b3e9
9 changed files with 25 additions and 32 deletions

View File

@@ -31,21 +31,9 @@ class CPPIntegrationTestCase(interface.ProcessTestCase):
"""Configure the test case."""
interface.ProcessTestCase.configure(self, fixture, *args, **kwargs)
self.program_options["connectionString"] = self.fixture.get_shell_connection_string()
tls_mode = self.fixture.config.TLS_MODE
ca_file = self.fixture.config.TLS_CA_FILE
cert_file = self.fixture.config.SHELL_TLS_CERTIFICATE_KEY_FILE
shell_grpc = self.fixture.config.SHELL_GRPC
self.program_options["useEgressGRPC"] = shell_grpc
if tls_mode:
self.program_options["tlsMode"] = tls_mode
if ca_file:
self.program_options["tlsCAFile"] = ca_file
if cert_file:
self.program_options["tlsCertificateKeyFile"] = cert_file
self.program_options["connectionString"] = self.fixture.get_shell_connection_string(
self.program_options.get("useEgressGRPC")
)
def _make_process(self):
return core.programs.generic_program(