Skip to content

Commit 40ff308

Browse files
committed
Mongosh requires authentication
1 parent c5754b6 commit 40ff308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/server_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class { 'mongodb::client': }
132132
it { is_expected.to contain 'db.auth(\'admin\', \'password\')' }
133133
end
134134

135-
describe command("mongosh admin --quiet --eval \"load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])\"") do
135+
describe command("mongosh admin --username admin --password password --quiet --eval \"load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])\"") do
136136
its(:exit_status) { is_expected.to eq 0 }
137137
its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" }
138138
end

0 commit comments

Comments
 (0)