Sha256: f4727861c74f936b95ba17b27e4ea79af46dc731f3354a08d9590f74adc5f0ed

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

module Constraints

  # Some tests hardcode the TLS certificates shipped with the driver's
  # test suite, and will fail when using TLS connections that use other
  # certificates.
  def require_local_tls
    require_tls

    before(:all) do
      # TODO This isn't actually the foolproof check
      if ENV['OCSP_ALGORITHM']
        skip 'Driver TLS certificate required, OCSP certificates are not acceptable'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongo-2.14.1 spec/support/constraints.rb
mongo-2.15.0.alpha spec/support/constraints.rb
mongo-2.14.0 spec/support/constraints.rb