Skip to content

Commit d44d9fc

Browse files
committed
fixup! fixup! fixup! fixup! Replace mongo shell with mongosh
1 parent 98fa9f5 commit d44d9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/acceptance/user_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class { 'mongodb::server': }
4646

4747
it 'auth should fail' do
4848
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
49-
expect(r.stdout.chomp).to contain('Error: Authentication failed')
49+
expect(r.stdout.chomp).to contain('MongoServerError: Authentication failed.')
5050
end
5151
end
5252
end
@@ -71,7 +71,7 @@ class { 'mongodb::server': port => 27018 }
7171

7272
it 'creates the user' do
7373
shell("mongosh testdb --quiet --port 27018 --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
74-
expect(r.stdout.chomp).to eq('1')
74+
expect(r.stdout.chomp).to eq('{ ok: 1 }')
7575
end
7676
end
7777
end

0 commit comments

Comments
 (0)