Use the mongosh command instead of the old mongo command #337
ci.yml
on: pull_request
Puppet
/
Static validations
19s
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet
/
Test suite
0s
Annotations
80 errors
Puppet / Puppet 7 - CentOS 7:
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-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151549247.pp.G7XJ3a
Last 10 lines of output were:
Mar 19 15:23:18 centos7-64-puppet7.example.com systemd[1]: Unit mongos.service entered failed state.
Mar 19 15:23:18 centos7-64-puppet7.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.43 seconds
|
Puppet / Puppet 7 - CentOS 7:
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
|
Puppet / Puppet 7 - CentOS 7:
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
|
Puppet / Puppet 7 - CentOS 7:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152353090.pp.dZHr8Z
Last 10 lines of output were:
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for Puppet::Type::Mongodb_user::ProviderMongodb:Class
Did you mean? mongoshrc_file
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 4.56 seconds
|
Puppet / Puppet 7 - CentOS 7:
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"
|
Puppet / Puppet 7 - CentOS 7:
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 ==)
|
Puppet / Puppet 7 - CentOS 7:
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']" }
|
Puppet / Puppet 7 - CentOS 7:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - CentOS 7:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'centos7-64-puppet7.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Puppet / Puppet 7 - CentOS 7:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - CentOS 7:
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_151543248.pp.QwyrNi
Last 10 lines of output were:
Mar 19 15:23:12 centos7-64-puppet8.example.com systemd[1]: Unit mongos.service entered failed state.
Mar 19 15:23:12 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.24 seconds
|
Puppet / Puppet 8 - CentOS 7:
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
|
Puppet / Puppet 8 - CentOS 7:
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
|
Puppet / Puppet 8 - CentOS 7:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication 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_152349528.pp.JehlQm
Last 10 lines of output were:
Info: Applying configuration version '1710861832'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for #<Class:0x00007fc1cb671e18>
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 4.56 seconds
|
Puppet / Puppet 8 - CentOS 7:
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"
|
Puppet / Puppet 8 - CentOS 7:
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 ==)
|
Puppet / Puppet 8 - CentOS 7:
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']" }
|
Puppet / Puppet 8 - CentOS 7:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - CentOS 7:
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('Error: 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.
|
Puppet / Puppet 8 - CentOS 7:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - CentOS 8:
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 'centos8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151549362.pp.qOSrPs
Last 10 lines of output were:
Mar 19 15:23:18 centos8-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:18 centos8-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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.81 seconds
|
Puppet / Puppet 7 - CentOS 8:
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
|
Puppet / Puppet 7 - CentOS 8:
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
|
Puppet / Puppet 7 - CentOS 8:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos8-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152354620.pp.ZqWZui
Last 10 lines of output were:
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for Puppet::Type::Mongodb_user::ProviderMongodb:Class
Did you mean? mongoshrc_file
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 4.54 seconds
|
Puppet / Puppet 7 - CentOS 8:
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"
|
Puppet / Puppet 7 - CentOS 8:
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 ==)
|
Puppet / Puppet 7 - CentOS 8:
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']" }
|
Puppet / Puppet 7 - CentOS 8:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - CentOS 8:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'centos8-64-puppet7.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Puppet / Puppet 7 - CentOS 8:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - CentOS 8:
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 'centos8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151553467.pp.JtJzg9
Last 10 lines of output were:
Mar 19 15:23:23 centos8-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:23 centos8-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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 447.17 seconds
|
Puppet / Puppet 8 - CentOS 8:
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
|
Puppet / Puppet 8 - CentOS 8:
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
|
Puppet / Puppet 8 - CentOS 8:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'centos8-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152359540.pp.PsrNuY
Last 10 lines of output were:
Info: Applying configuration version '1710861842'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}a598b3ee8c49312e66e2a045a5a07a2f077ab070018ccaa029eefdff8ebd52d0' to '{sha256}a12ad999b73aa27ae1bc2c8433f7ec3184a37f8a725ad672b1cabab426175185'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for #<Class:0x00007ff890a22778>
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 4.54 seconds
|
Puppet / Puppet 8 - CentOS 8:
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"
|
Puppet / Puppet 8 - CentOS 8:
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 ==)
|
Puppet / Puppet 8 - CentOS 8:
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']" }
|
Puppet / Puppet 8 - CentOS 8:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - CentOS 8:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'centos8-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.
|
Puppet / Puppet 8 - CentOS 8:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - Debian 11:
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 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151558146.pp.K21A8A
Last 10 lines of output were:
Mar 19 15:23:29 debian11-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:29 debian11-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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 447.56 seconds
|
Puppet / Puppet 7 - Debian 11:
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
|
Puppet / Puppet 7 - Debian 11:
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
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152417125.pp.f8ipgJ
Last 10 lines of output were:
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for Puppet::Type::Mongodb_user::ProviderMongodb:Class
Did you mean? mongoshrc_file
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 5.35 seconds
|
Puppet / Puppet 7 - Debian 11:
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"
|
Puppet / Puppet 7 - Debian 11:
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 ==)
|
Puppet / Puppet 7 - Debian 11:
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']" }
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - Debian 11:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet7.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Puppet / Puppet 7 - Debian 11:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - Debian 11:
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 'debian11-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151600854.pp.j6DxRs
Last 10 lines of output were:
Mar 19 15:23:31 debian11-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:31 debian11-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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 447.26 seconds
|
Puppet / Puppet 8 - Debian 11:
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
|
Puppet / Puppet 8 - Debian 11:
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
|
Puppet / Puppet 8 - Debian 11:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'debian11-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152419739.pp.uqblRT
Last 10 lines of output were:
Info: Applying configuration version '1710861863'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for #<Class:0x00007f6498ee1e08>
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 5.35 seconds
|
Puppet / Puppet 8 - Debian 11:
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"
|
Puppet / Puppet 8 - Debian 11:
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 ==)
|
Puppet / Puppet 8 - Debian 11:
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']" }
|
Puppet / Puppet 8 - Debian 11:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - Debian 11:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'debian11-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.
|
Puppet / Puppet 8 - Debian 11:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - Ubuntu 20.04:
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 'ubuntu2004-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151616651.pp.0ThsYo
Last 10 lines of output were:
Mar 19 15:23:50 ubuntu2004-64-puppet7.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:50 ubuntu2004-64-puppet7.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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 448.76 seconds
|
Puppet / Puppet 7 - Ubuntu 20.04:
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
|
Puppet / Puppet 7 - Ubuntu 20.04:
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
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet7.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152450123.pp.R63PVa
Last 10 lines of output were:
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for Puppet::Type::Mongodb_user::ProviderMongodb:Class
Did you mean? mongoshrc_file
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 5.53 seconds
|
Puppet / Puppet 7 - Ubuntu 20.04:
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"
|
Puppet / Puppet 7 - Ubuntu 20.04:
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 ==)
|
Puppet / Puppet 7 - Ubuntu 20.04:
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']" }
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 7 - Ubuntu 20.04:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet7.example.com' exited with 1 running:
mongosh testdb --quiet --eval 'db.auth("testuser","passw0rd")'
Last 10 lines of output were:
MongoServerError: Authentication failed.
|
Puppet / Puppet 7 - Ubuntu 20.04:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - Ubuntu 20.04:
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 'ubuntu2004-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_151624221.pp.UjzguP
Last 10 lines of output were:
Mar 19 15:23:59 ubuntu2004-64-puppet8.example.com systemd[1]: mongos.service: Failed with result 'timeout'.
Mar 19 15:23:59 ubuntu2004-64-puppet8.example.com systemd[1]: Failed to start MongoDB Database Server.
�[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 449.87 seconds
|
Puppet / Puppet 8 - Ubuntu 20.04:
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
|
Puppet / Puppet 8 - Ubuntu 20.04:
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
|
Puppet / Puppet 8 - Ubuntu 20.04:
spec/acceptance/server_spec.rb#L79
mongodb::server class installation using authentication works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'ubuntu2004-64-puppet8.example.com' exited with 6 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_152502110.pp.eo2rpD
Last 10 lines of output were:
Info: Applying configuration version '1710861906'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]/content: content changed '{sha256}41c7561050b6d191462e7242c9bf93f98ae5ffa91e6ab8307cc9c5073ca76455' to '{sha256}cbe690d4db3e62992a7dfed4e75b1f30e0072e8a580e38932d54df81617343e8'
�[mNotice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongoshrc.js]/content: content changed '{sha256}f7eec824ed4427fcde6092515a2ec1bc6e15dc06291cbf99ddb5a140616cb246' to '{sha256}f4956ae86af4c64bb234f3ada827f378d0bcbdb25896d551c68f9c1e50037ab5'
Info: Class[Mongodb::Server::Config]: Scheduling refresh of Class[Mongodb::Server::Service]
Info: Class[Mongodb::Server::Service]: Scheduling refresh of Service[mongodb]
�[mNotice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Triggered 'refresh' from 1 event
Error: Could not prefetch mongodb_user provider 'mongodb': undefined local variable or method `mongorc_file' for #<Class:0x00007f5e4d0630d0>
Warning: /Stage[main]/Main/Mongodb_user[User admin on db admin]: Skipping because provider prefetch failed
Info: Stage[main]: Unscheduling all events on Stage[main]
�[mNotice: Applied catalog in 5.57 seconds
|
Puppet / Puppet 8 - Ubuntu 20.04:
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"
|
Puppet / Puppet 8 - Ubuntu 20.04:
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 ==)
|
Puppet / Puppet 8 - Ubuntu 20.04:
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']" }
|
Puppet / Puppet 8 - Ubuntu 20.04:
spec/acceptance/user_spec.rb#L24
mongodb_database with default port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|
Puppet / Puppet 8 - Ubuntu 20.04:
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('Error: Authentication failed')
end
Beaker::Host::CommandFailure:
Host 'ubuntu2004-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.
|
Puppet / Puppet 8 - Ubuntu 20.04:
spec/acceptance/user_spec.rb#L72
mongodb_database with custom port creates the user
Failure/Error: expect(r.stdout.chomp).to eq('1')
expected: "1"
got: "{ ok: 1 }"
(compared using ==)
|