Sha256: defaef825ce4bb0ef6fc4d2beccfbd69f3d4b18972bf0bbc66288d594112a616

Contents?: true

Size: 478 Bytes

Versions: 25

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

# 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

25 entries across 25 versions & 1 rubygems

Version Path
mongoid-8.1.8 spec/support/authorization.rb
mongoid-8.1.7 spec/support/authorization.rb
mongoid-8.1.6 spec/support/authorization.rb
mongoid-8.0.8 spec/support/authorization.rb
mongoid-8.1.5 spec/support/authorization.rb
mongoid-8.1.4 spec/support/authorization.rb
mongoid-8.0.7 spec/support/authorization.rb
mongoid-8.1.3 spec/support/authorization.rb
mongoid-8.1.2 spec/support/authorization.rb
mongoid-8.0.6 spec/support/authorization.rb
mongoid-7.5.4 spec/support/authorization.rb
mongoid-8.1.1 spec/support/authorization.rb
mongoid-8.0.5 spec/support/authorization.rb
mongoid-8.1.0 spec/support/authorization.rb
mongoid-7.5.3 spec/support/authorization.rb
mongoid-8.0.4 spec/support/authorization.rb
mongoid-8.0.3 spec/support/authorization.rb
mongoid-7.5.2 spec/support/authorization.rb
mongoid-8.0.2 spec/support/authorization.rb
mongoid-7.5.1 spec/support/authorization.rb