Use the mongosh command instead of the old mongo command #374
Annotations
2 errors
Run tests:
spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb#L180
Puppet::Type::Mongodb_replset::ProviderMongo members= raises an error when no member is available
Failure/Error: expect { provider.flush }.to raise_error(Puppet::Error, "Can't connect to any member of replicaset #{resource[:name]}.")
expected Puppet::Error with "Can't connect to any member of replicaset rs_test.", got #<ArgumentError: Puppet::Util::Log requires a message> with backtrace:
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:377:in `message='
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:305:in `initialize'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:89:in `new'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/log.rb:89:in `create'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/logging.rb:10:in `send_log'
# ./vendor/bundle/ruby/3.2.0/gems/puppet-8.5.1/lib/puppet/util/logging.rb:20:in `block (2 levels) in <module:Logging>'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:181:in `rescue in block in get_hosts_status'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:154:in `block in get_hosts_status'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `select'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:153:in `get_hosts_status'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:239:in `set_members'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:65:in `flush'
# ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (4 levels) in <top (required)>'
# ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:186:in `block (3 levels) in <top (required)>'
|
Run tests
Process completed with exit code 1.
|
Loading