Sha256: 59f3fa7327e0c176bf5520cd012a8bd8068ff380e08b9453eba7352fc1f784ec

Contents?: true

Size: 488 Bytes

Versions: 18

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

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

18 entries across 18 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/support/constraints.rb
mongo-2.17.4 spec/support/constraints.rb
mongo-2.18.3 spec/support/constraints.rb
mongo-2.18.2 spec/support/constraints.rb
mongo-2.17.3 spec/support/constraints.rb
mongo-2.18.1 spec/support/constraints.rb
mongo-2.18.0 spec/support/constraints.rb
mongo-2.17.2 spec/support/constraints.rb
mongo-2.16.3 spec/support/constraints.rb
mongo-2.18.0.beta1 spec/support/constraints.rb
mongo-2.16.2 spec/support/constraints.rb
mongo-2.17.1 spec/support/constraints.rb
mongo-2.16.1 spec/support/constraints.rb
mongo-2.17.0 spec/support/constraints.rb
mongo-2.16.0 spec/support/constraints.rb
mongo-2.15.1 spec/support/constraints.rb
mongo-2.16.0.alpha1 spec/support/constraints.rb
mongo-2.15.0 spec/support/constraints.rb