Skip to content

Commit

Permalink
fix acceptance test with the new multidb role syntax
Browse files Browse the repository at this point in the history
MongoDB only allows authentication to database where
the user has been created in, see
https://docs.mongodb.com/manual/core/security-users/#user-authentication-database
  • Loading branch information
pecharmin committed Nov 26, 2019
1 parent 10e1931 commit 80d9cdd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/acceptance/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,5 @@ class { 'mongodb::server': }
expect(r.stdout.chomp).to eq('1')
end
end

it 'allows the second user' do
shell("mongo testdb --quiet --eval 'db.auth(\"testuser2\",\"passw0rd\")'") do |r|
expect(r.stdout.chomp).to eq('1')
end
end
end
end

0 comments on commit 80d9cdd

Please sign in to comment.