Sha256: cdbe2b70a6f71ed7ae4be394b0b162e020e9f45b6b1dbc70d986cb809c01b7a7

Contents?: true

Size: 447 Bytes

Versions: 51

Compression:

Stored size: 447 Bytes

Contents

# 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

51 entries across 49 versions & 3 rubygems

Version Path
mongoid-7.0.13 spec/support/authorization.rb
mongoid-7.0.12 spec/support/authorization.rb
mongoid-6.4.8 spec/support/authorization.rb
mongoid-7.0.11 spec/support/authorization.rb
mongoid-7.0.10 spec/support/authorization.rb
mongoid-6.4.7 spec/support/authorization.rb
mongoid-6.4.5 spec/support/authorization.rb
mongoid-7.0.8 spec/support/authorization.rb
mongoid-7.0.7 spec/support/authorization.rb
mongoid-7.0.6 spec/support/authorization.rb
mongoid-5.4.1 spec/support/authorization.rb
mongoid-7.0.5 spec/support/authorization.rb
mongoid-7.0.4 spec/support/authorization.rb
mongoid-6.4.4 spec/support/authorization.rb
mongoid-7.0.3 spec/support/authorization.rb
mongoid-6.4.2 spec/support/authorization.rb
mongoid-7.0.2 spec/support/authorization.rb
mongoid-7.0.1 spec/support/authorization.rb
mongoid-6.4.1 spec/support/authorization.rb
mongoid-5.4.0 spec/support/authorization.rb