Sha256: 22419f5d23fc2843fb5899edf39f81470d0fd01fe1d86daa5663536c6c797af1

Contents?: true

Size: 895 Bytes

Versions: 5

Compression:

Stored size: 895 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

require 'lite_spec_helper'

require 'mrss/constraints'
require 'mrss/cluster_config'

ClusterConfig = Mrss::ClusterConfig

require 'support/constraints'
require 'support/authorization'
require 'support/primary_socket'
require 'support/cluster_tools'
require 'support/monitoring_ext'

RSpec.configure do |config|
  config.include(Authorization)
  config.extend(Mrss::Constraints)
  config.extend(Constraints)

  config.before(:all) do
    if ClusterConfig.instance.fcv_ish >= '3.6' && !SpecConfig.instance.serverless? # Serverless instances do not support killAllSessions command.
      kill_all_server_sessions
    end
  end

  config.after do
    LocalResourceRegistry.instance.close_all
    ClientRegistry.instance.close_local_clients
  end
end

# require all shared examples
Dir['./spec/support/shared/*.rb'].sort.each { |file| require file }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongo-2.18.3 spec/spec_helper.rb
mongo-2.18.2 spec/spec_helper.rb
mongo-2.18.1 spec/spec_helper.rb
mongo-2.18.0 spec/spec_helper.rb
mongo-2.18.0.beta1 spec/spec_helper.rb