Use the mongosh command instead of the old mongo command #343
Annotations
9 errors
Run tests:
spec/acceptance/mongos_spec.rb#L10
mongodb::mongos class installation works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_164104484.pp.fPDAeY
Last 10 lines of output were:
Mar 19 16:48:33 centos7-64-puppet8.example.com systemd[1]: Unit mongos.service entered failed state.
Mar 19 16:48:33 centos7-64-puppet8.example.com systemd[1]: mongos.service failed.
�[mNotice: /Stage[main]/Mongodb::Mongos::Service/Service[mongos]: Triggered 'refresh' from 2 events
�[mNotice: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Dependency Service[mongos] has failures: true
Warning: /Stage[main]/Mongodb::Mongos::Service/Mongodb_conn_validator[mongos]: Skipping because of failed dependencies
Info: Class[Mongodb::Mongos::Service]: Unscheduling all events on Class[Mongodb::Mongos::Service]
Info: Class[Mongodb::Mongos]: Unscheduling all events on Class[Mongodb::Mongos]
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 446.15 seconds
|
Run tests:
spec/acceptance/mongos_spec.rb#L38
mongodb::mongos class installation Service "mongos" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "mongos" to be running
|
Run tests:
spec/acceptance/mongos_spec.rb#L42
mongodb::mongos class installation Port "27017" is expected to be listening
Failure/Error: it { is_expected.to be_listening }
expected Port "27017" to be listening
|
Run tests:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_changes: true)
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet8.example.com' exited with 2 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_164917123.pp.wXiKio
Last 10 lines of output were:
Info: Loading facts
�[mNotice: Compiled catalog for centos7-64-puppet8.example.com in environment production in 0.13 seconds
Info: Using environment 'production'
Info: Applying configuration version '1710866959'
Warning: Are we on the master?
Warning: User info is available only from master host
Warning: Are we on the master?
Warning: User creation is available only from master host
�[mNotice: /Stage[main]/Main/Mongodb_user[User admin on db admin]/ensure: created
�[mNotice: Applied catalog in 0.93 seconds
|
Run tests:
spec/acceptance/server_spec.rb#L124
mongodb::server class installation using authentication Command "mongosh --quiet --eval "db.serverCmdLineOpts().code"" stdout is expected to match "13"
Failure/Error: its(:stdout) { is_expected.to match '13' }
expected "" to match "13"
|
Run tests:
spec/acceptance/server_spec.rb#L136
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" exit_status is expected to eq 0
Failure/Error: its(:exit_status) { is_expected.to eq 0 }
expected: 0
got: 1
(compared using ==)
|
Run tests:
spec/acceptance/server_spec.rb#L137
mongodb::server class installation using authentication Command "mongosh admin --quiet --eval "load('/root/.mongoshrc.js');EJSON.stringify(db.getUser('admin')['customData'])"" stdout is expected to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n"
Failure/Error: its(:stdout) { is_expected.to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n" }
expected "" to match "{ \"createdBy\" : \"Puppet Mongodb_user['User admin on db admin']\" }\n"
Diff:
@@ -1,2 +1 @@
-{ "createdBy" : "Puppet Mongodb_user['User admin on db admin']" }
|
Run tests:
spec/acceptance/user_spec.rb#L47
mongodb_database with default port auth should fail
Failure/Error:
shell("mongosh testdb --quiet --eval 'db.auth(\"testuser\",\"passw0rd\")'") do |r|
expect(r.stdout.chomp).to contain('MongoServerError: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet8.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Run tests
Process completed with exit code 1.
|
Loading