Sha256: 9f08fe57fdfc689eec071d52da3f8dae6b7009e50d2ce3c8412b4fc18486e1c9

Contents?: true

Size: 496 Bytes

Versions: 27

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

# Set up a root user so we can set up authentication on a database level.
MONGOID_ROOT_USER = Mongo::Auth::User.new(
  database: Mongo::Database::ADMIN,
  user: 'mongoid-user',
  password: 'password',
  roles: [
    Mongo::Auth::Roles::USER_ADMIN_ANY_DATABASE,
    Mongo::Auth::Roles::DATABASE_ADMIN_ANY_DATABASE,
    Mongo::Auth::Roles::READ_WRITE_ANY_DATABASE,
    Mongo::Auth::Roles::HOST_MANAGER,
    Mongo::Auth::Roles::CLUSTER_MONITOR
  ]
)

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
mongoid-7.3.5 spec/support/authorization.rb
mongoid-7.3.4 spec/support/authorization.rb
mongoid-7.1.11 spec/support/authorization.rb
mongoid-7.2.6 spec/support/authorization.rb
mongoid-7.3.3 spec/support/authorization.rb
mongoid-7.3.2 spec/support/authorization.rb
mongoid-7.2.5 spec/support/authorization.rb
mongoid-7.1.10 spec/support/authorization.rb
mongoid-7.1.9 spec/support/authorization.rb
mongoid-7.2.4 spec/support/authorization.rb
mongoid-7.3.1 spec/support/authorization.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/spec/support/authorization.rb
mongoid-7.3.0 spec/support/authorization.rb
mongoid-7.2.3 spec/support/authorization.rb
mongoid-7.1.8 spec/support/authorization.rb
mongoid-7.2.2 spec/support/authorization.rb
mongoid-7.2.1 spec/support/authorization.rb
mongoid-7.1.7 spec/support/authorization.rb
mongoid-7.2.0 spec/support/authorization.rb
mongoid-7.1.6 spec/support/authorization.rb