We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98fa9f5 commit d44d9fcCopy full SHA for d44d9fc
spec/acceptance/user_spec.rb
@@ -46,7 +46,7 @@ class { 'mongodb::server': }
46
47
it 'auth should fail' do
48
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
49
- expect(r.stdout.chomp).to contain('Error: Authentication failed')
+ expect(r.stdout.chomp).to contain('MongoServerError: Authentication failed.')
50
end
51
52
@@ -71,7 +71,7 @@ class { 'mongodb::server': port => 27018 }
71
72
it 'creates the user' do
73
shell("mongosh testdb --quiet --port 27018 --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
74
- expect(r.stdout.chomp).to eq('1')
+ expect(r.stdout.chomp).to eq('{ ok: 1 }')
75
76
77
0 commit comments