Skip to content

Commit

Permalink
Fix acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpost committed Mar 21, 2024
1 parent c16c54f commit 6ee156d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class { 'mongodb::client': }
end

describe command('mongosh --quiet --eval "db.serverCmdLineOpts().ok"') do
its(:stderr) { is_expected.to match %r{not authorized} }
its(:stderr) { is_expected.to match %r{requires authentication} }
end

describe file('/root/.mongoshrc.js') do
Expand All @@ -134,7 +134,7 @@ class { 'mongodb::client': }

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

describe command('mongod --version') do
Expand Down

0 comments on commit 6ee156d

Please sign in to comment.