SERVER-121808 Add gRPC gate for proxy UDS tests (#49792)
GitOrigin-RevId: c7b1e1c66d9d17f3981e917d428191d9d1ca7fc1
This commit is contained in:
parent
b225fc473a
commit
eeaeda335b
@ -13,6 +13,12 @@ if (!isLinux()) {
|
||||
quit();
|
||||
}
|
||||
|
||||
// Proxy protocol is not supported over gRPC.
|
||||
if (jsTestOptions().shellGRPC) {
|
||||
jsTestLog("Test is not compatible with gRPC.");
|
||||
quit();
|
||||
}
|
||||
|
||||
function runTest(mongosCon, mode, proxyIngressAddress, proxyIngressPort, restrictionAddress) {
|
||||
// Use a direct, non-proxied connection to the server to run setup operations.
|
||||
const adminMongo = new Mongo(mongosCon.host);
|
||||
|
||||
@ -155,7 +155,7 @@ function testDollarAuditPropagation(st, fcv, isLoadBalanced = false, proxy_serve
|
||||
st.stop();
|
||||
}
|
||||
|
||||
{
|
||||
if (!_isWindows() && !jsTestOptions().shellGRPC) {
|
||||
// Test the expected metadata is propagated in a load balanced cluster using the latestFCV.
|
||||
jsTest.log(
|
||||
`Testing FCV ${latestFCV} metadata propagation in sharded cluster with mixed versions with a load balanced connection`,
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
* @tags: [
|
||||
* # TODO (SERVER-85629): Re-enable this test once redness is resolved in multiversion suites.
|
||||
* DISABLED_TEMPORARILY_DUE_TO_FCV_UPGRADE,
|
||||
* grpc_incompatible,
|
||||
* requires_fcv_80,
|
||||
* ]
|
||||
*/
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
/**
|
||||
* Validate we can connect over the proxy protocol port with the protocol appended.
|
||||
* @tags: [
|
||||
* grpc_incompatible,
|
||||
* requires_fcv_52,
|
||||
* ]
|
||||
*/
|
||||
|
||||
@ -161,7 +161,7 @@ jsTest.log.info("4. Testing x.509 auth to mongos with x509 roles disabled");
|
||||
// forwards X.509 identity (DN + roles) via PROXY protocol v2 TLVs over a Unix domain socket.
|
||||
// Architecture: [shell] --TLS--> [proxy] --PP2+UDS--> [mongod/mongos]
|
||||
// ============================================================================
|
||||
if (!isWindows) {
|
||||
if (!isWindows && !jsTestOptions().shellGRPC) {
|
||||
/**
|
||||
* Creates a proxy protocol server that terminates TLS on ingress, extracts the client cert DN
|
||||
* and mongoRoles extension from the TLS handshake, and forwards them as PP2 TLVs to the
|
||||
|
||||
@ -148,7 +148,7 @@ const x509_options = {
|
||||
// forwards X.509 identity via PROXY protocol v2 TLVs over a Unix domain socket.
|
||||
// Architecture: [shell] --TLS--> [proxy] --PP2+UDS--> [mongod/mongos]
|
||||
// ============================================================================
|
||||
if (!isWindows) {
|
||||
if (!isWindows && !jsTestOptions().shellGRPC) {
|
||||
/**
|
||||
* Creates a proxy protocol server that terminates TLS on ingress, extracts the client cert DN
|
||||
* (and roles if present) from the TLS handshake, and forwards them as PP2 TLVs to the target's
|
||||
|
||||
Loading…
Reference in New Issue
Block a user