Skip to content

RUBY-3154 Fix broken mongocryptd spec #2704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
)
end

before(:each) do
skip 'This test requires crypt shared library' unless SpecConfig.instance.crypt_shared_lib_path

key_vault_collection.drop
key_vault_collection.insert_one(data_key)

encryption_client['users'].drop
end

context 'when shared library is loaded' do
let(:extra_options) do
{
Expand Down Expand Up @@ -70,8 +79,6 @@ def done!
end

it 'does not try to connect to mongocryptd' do
skip 'This test requires crypt shared library' unless SpecConfig.instance.crypt_shared_lib_path

encryption_client[:users].insert_one(ssn: ssn)
expect(connect_attempt.done?).to eq(false)
end
Expand All @@ -88,8 +95,6 @@ def done!
end

it 'does not spawn mongocryptd' do
skip 'This test requires crypt shared library' unless SpecConfig.instance.crypt_shared_lib_path

expect do
encryption_client[:users].insert_one(ssn: ssn)
end.not_to raise_error
Expand Down