-
Notifications
You must be signed in to change notification settings - Fork 82
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
Run Ubuntu 22.04 in test matrix #234
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
# Enable legacy providers | ||
ENV['OPENSSL_CONF'] = File.expand_path( | ||
File.join(File.dirname(__FILE__), 'support', 'openssl.conf') | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OpenSSL 3 no longer loads old cyphers by default. This allows the tests to pass. Metasploit-framework will have this file loaded at runtime. Unfortunately it means direct users of RubySMB will need a similar configuration change. Or we will need to wait for a solution similar to WinRb/rubyntlm#53 to land |
||
|
||
require 'simplecov' | ||
|
||
SimpleCov.start unless SimpleCov.running | ||
SimpleCov.add_filter '/spec/' | ||
|
||
require 'coveralls' | ||
require 'ruby_smb' | ||
|
||
if ENV['CI'] == 'true' | ||
# don't generate local report as it is inaccessible on travis-ci, which is | ||
# why coveralls is being used. | ||
SimpleCov.formatter = Coveralls::SimpleCov::Formatter | ||
else | ||
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter | ||
end | ||
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter | ||
|
||
Dir['./spec/support/**/*.rb'].sort.each { |f| require f } | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
openssl_conf = openssl_init | ||
|
||
[openssl_init] | ||
providers = provider_sect | ||
|
||
[provider_sect] | ||
default = default_sect | ||
legacy = legacy_sect | ||
|
||
[default_sect] | ||
activate = 1 | ||
|
||
[legacy_sect] | ||
activate = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests were mocking the
session_key
accessor, but not the@session_key
instance variable. As a result, OpenSSL 3 was throwing validation errors that''
was an invalid key.