Backslashes in a password need to be escaped #623
Annotations
10 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_103939606.pp.nZlkGH
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Error: Could not parse for environment production: Syntax error at '_' (file: /tmp/apply_manifest_103939606.pp.nZlkGH, line: 10, column: 39) on node host1-puppet7.example.com
|
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