File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class { 'mongodb::server': }
2323
2424 it 'creates the user' do
2525 shell ( "mongosh testdb --quiet --eval 'db.auth(\" testuser\" ,\" passw0rd\" )'" ) do |r |
26- expect ( r . stdout . chomp ) . to eq ( '1 ' )
26+ expect ( r . stdout . chomp ) . to eq ( '{ ok: 1 } ' )
2727 end
2828 end
2929
@@ -131,7 +131,7 @@ class { 'mongodb::server': }
131131
132132 it 'allows the testuser' do
133133 shell ( "mongosh testdb --quiet --eval 'db.auth(\" testuser\" ,\" passw0rd\" )'" ) do |r |
134- expect ( r . stdout . chomp ) . to eq ( '1 ' )
134+ expect ( r . stdout . chomp ) . to eq ( '{ ok: 1 } ' )
135135 end
136136 end
137137
@@ -143,7 +143,7 @@ class { 'mongodb::server': }
143143
144144 it 'allows the second user to connect to its default database' do
145145 shell ( "mongosh testdb2 --quiet --eval 'db.auth(\" testuser2\" ,\" passw0rd\" )'" ) do |r |
146- expect ( r . stdout . chomp ) . to eq ( '1 ' )
146+ expect ( r . stdout . chomp ) . to eq ( '{ ok: 1 } ' )
147147 end
148148 end
149149
You can’t perform that action at this time.
0 commit comments