Use the mongosh command instead of the old mongo command #382
Annotations
2 errors
Run tests:
spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb#L168
Puppet::Type::Mongodb_replset::ProviderMongo members= raises an error when at least one member is not running with --replSet
Failure/Error: expect { provider.flush }.to raise_error(Puppet::Error, %r{is not supposed to be part of a replicaset\.$})
expected Puppet::Error with message matching /is not supposed to be part of a replicaset\.$/, got #<Puppet::Error: Can't connect to any member of replicaset rs_test.> with backtrace:
# ./lib/puppet/provider/mongodb_replset/mongo.rb:243:in `set_members'
# ./lib/puppet/provider/mongodb_replset/mongo.rb:65:in `flush'
# ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:171:in `block (4 levels) in <top (required)>'
# ./spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb:171:in `block (3 levels) in <top (required)>'
|
Run tests
Process completed with exit code 1.
|
Loading