From 54382f54ac931a8dc1f791ec0f757c9a656de497 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 10 Sep 2026 15:24:08 -0600 Subject: [PATCH 1/2] ensure backpressure tests succeed in authenticated environment --- spec/mongo/retryable/client_backpressure_prose_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/mongo/retryable/client_backpressure_prose_spec.rb b/spec/mongo/retryable/client_backpressure_prose_spec.rb index 9fe24674d8..637195ef38 100644 --- a/spec/mongo/retryable/client_backpressure_prose_spec.rb +++ b/spec/mongo/retryable/client_backpressure_prose_spec.rb @@ -160,7 +160,7 @@ def started_events(command_name) # Reset the parameter here as well as inline, so a failure part-way # through the example cannot leave it set on the shared cluster. after do - admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0) + root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0) rescue Mongo::Error # Ignore cleanup failures. end @@ -171,14 +171,14 @@ def started_events(command_name) exponential_backoff_time = failing_insert_duration(1.0) # Steps 6 and 7: have the server attach baseBackoffMS, then repeat. - admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 50) + root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 50) with_base_backoff_ms_time = failing_insert_duration(1.0) do |err| # Step 8: the driver parsed the field the server attached. expect(err.result.base_backoff_ms).to eq(50) end # Step 9: disable baseBackoffMS on overload errors. - admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0) + root_authorized_admin_client.command('setParameter' => 1, 'externalClientBaseBackoffMS' => 0) # Step 10: a run can never be faster than the sum of its backoffs. With # jitter pinned to 1 the default backoffs are 0.2 + 0.4 = 0.6s and the From f6389e91aa669f3dc16c1c1d188216180039ce49 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 10 Sep 2026 15:37:51 -0600 Subject: [PATCH 2/2] encryption tests need extra_options --- .../string_explicit_encryption_prose_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/integration/client_side_encryption/string_explicit_encryption_prose_spec.rb b/spec/integration/client_side_encryption/string_explicit_encryption_prose_spec.rb index 280c05bbcc..c22c04cfce 100644 --- a/spec/integration/client_side_encryption/string_explicit_encryption_prose_spec.rb +++ b/spec/integration/client_side_encryption/string_explicit_encryption_prose_spec.rb @@ -51,7 +51,8 @@ auto_encryption_options: { key_vault_namespace: key_vault_namespace, kms_providers: local_kms_providers, - bypass_query_analysis: true + bypass_query_analysis: true, + extra_options: extra_options }, database: SpecConfig.instance.test_db ) @@ -64,7 +65,8 @@ SpecConfig.instance.addresses, auto_encryption_options: { key_vault_namespace: key_vault_namespace, - kms_providers: local_kms_providers + kms_providers: local_kms_providers, + extra_options: extra_options }, database: SpecConfig.instance.test_db )