spec/support/spec_config.rb
def external_user?
    case uri_options[:auth_mech]
    when :mongodb_x509, :aws
      true
    when nil, :scram, :scram256
      false
    else
      raise "Unknown auth mechanism value: #{uri_options[:auth_mech]}"
    end
  end
# When we authenticate with a username & password mechanism (scram, cr)
# we create a variety of users in the test suite for different purposes.
# When we authenticate with passwordless mechanisms (x509, aws) we use
# the globally specified user for all operations.
When we authenticate with a username & password mechanism (scram, cr)
we create a variety of users in the test suite for different purposes.
When we authenticate with passwordless mechanisms (x509, aws) we use
the globally specified user for all operations.
When we authenticate with a username & password mechanism ( scram cr ) we create a variety of users in the test suite for different purposes . When we authenticate with passwordless mechanisms ( x509 aws ) we use the globally specified user for all operations .
def external_user?
    case uri_options[:auth_mech]
    when :mongodb_x509, :aws
      true
    when nil, :scram, :scram256
      false
    else
      raise "Unknown auth mechanism value: #{uri_options[:auth_mech]}"
    end
  end
def external_user? case uri_options [ :auth_mech ] when :mongodb_x509 , :aws true when nil , :scram , :scram256 false else raise "Unknown auth mechanism value: #{uri_options[:auth_mech]}" end end
When we authenticate with a username & password mechanism (scram, cr)
we create a variety of users in the test suite for different purposes.
When we authenticate with a username & password mechanism ( scram cr ) we create a variety of users in the test suite for different purposes .