Skip to content

Commit

Permalink
Add --strict-ssl flag to minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 12, 2024
1 parent 0cadbec commit 285353b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,15 @@ def parser
queue_config.timeout = timeout
end

help = <<~EOS
Force strict SSL checks on the Redis connection.
The default connection behavior is to set SSL verification to `OpenSSL::SSL::VERIFY_NONE` because hosted Redis services may use self-signed certificates.
When this flag is activated, the full TLS check will be performed.
EOS
parser.on('--strict-ssl', *help) do
queue_config.strict_ssl = true
end

help = <<~EOS
Specify a timeout after which the report command will fail if not all tests have been processed.
Defaults to the value set for --timeout.
Expand Down

0 comments on commit 285353b

Please sign in to comment.