Sha256: 0fe170a1013172ce0c9533aba2259edb1e858595a42df9f7738e8ed077a56b80

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 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
  ]
)

Version data entries

8 entries across 6 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/spec/support/authorization.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/spec/support/authorization.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/spec/support/authorization.rb
mongoid-5.0.2 spec/support/authorization.rb
mongoid-5.0.1 spec/support/authorization.rb
mongoid-5.0.0 spec/support/authorization.rb
mongoid-5.0.0.rc0 spec/support/authorization.rb
mongoid-5.0.0.beta spec/support/authorization.rb