Use the mongosh command instead of the old mongo command #388
Annotations
2 errors
Run tests:
spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail
Failure/Error:
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
expect(r.stderr.chomp).to contain('MongoServerError: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Run tests
Process completed with exit code 1.
|
Loading