Backslashes in a password need to be escaped #620
Annotations
11 errors
|
Run tests:
spec/acceptance/server_spec.rb#L176
mongodb::server class installation using authentication with complex password works with no errors
Failure/Error: apply_manifest(pp, catch_failures: true)
Beaker::Host::CommandFailure:
Host 'host1-puppet7.example.com' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_084906513.pp.zsWTbT
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
�[mNotice: Compiled catalog for host1-puppet7.example.com in environment production in 0.19 seconds
Info: Using environment 'production'
Info: Applying configuration version '1714985349'
Error: Found 1 dependency cycle:
(Mongodb_database[admin] => Mongodb::Db[admin] => Class[Mongodb::Server] => Class[Mongodb::Client] => Package[mongodb_client] => Mongodb_database[admin])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Error: Failed to apply catalog: One or more resource dependency cycles detected in graph
|
Run tests:
spec/acceptance/server_spec.rb#L198
mongodb::server class installation using authentication with complex password Package "mongodb-org-server" is expected to be installed
Failure/Error: it { is_expected.to be_installed }
expected Package "mongodb-org-server" to be installed
|
Run tests:
spec/acceptance/server_spec.rb#L202
mongodb::server class installation using authentication with complex password File "/etc/mongod.conf" is expected to be file
Failure/Error: it { is_expected.to be_file }
expected `File "/etc/mongod.conf".file?` to be truthy, got false
|
Run tests:
spec/acceptance/server_spec.rb#L206
mongodb::server class installation using authentication with complex password Service "mongod" is expected to be enabled
Failure/Error: it { is_expected.to be_enabled }
expected Service "mongod" to be enabled
|
Run tests:
spec/acceptance/server_spec.rb#L207
mongodb::server class installation using authentication with complex password Service "mongod" is expected to be running
Failure/Error: it { is_expected.to be_running }
expected Service "mongod" to be running
|
Run tests:
spec/acceptance/server_spec.rb#L211
mongodb::server class installation using authentication with complex password 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#L215
mongodb::server class installation using authentication with complex password Command "mongosh --quiet --eval "db.serverCmdLineOpts().ok"" stderr is expected to match /requires authentication/
Failure/Error: its(:stderr) { is_expected.to match %r{requires authentication} }
expected "/bin/sh: 1: mongosh: not found\n" to match /requires authentication/
Diff:
@@ -1 +1 @@
-/requires authentication/
+/bin/sh: 1: mongosh: not found
|
Run tests:
spec/acceptance/server_spec.rb#L223
mongodb::server class installation using authentication with complex password File "/root/.mongoshrc.js" is expected to contain "admin.auth('admin', 'admin_\\\\_password')"
Failure/Error: it { is_expected.to contain 'admin.auth(\'admin\', \'admin_\\\\_password\')' }
expected File "/root/.mongoshrc.js" to contain "admin.auth('admin', 'admin_\\\\_password')"
|
Run tests:
spec/acceptance/server_spec.rb#L227
mongodb::server class installation using authentication with complex password 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: 127
(compared using ==)
|
Run tests:
spec/acceptance/server_spec.rb#L228
mongodb::server class installation using authentication with complex password 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']"}
|
Loading