Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Replace mongo shell with mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpost committed Mar 22, 2024
1 parent 453a344 commit 44d0616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class { 'mongodb::server': }
it 'auth should fail' do

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 7

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 7

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 10

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 10

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.

Check failure on line 47 in spec/acceptance/user_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

mongodb_database with default port auth should fail Failure/Error: expect { subject }.to eq(1) You must pass an argument rather than a block to `expect` to use the provided matcher (eq 1), or the matcher must implement `supports_block_expectations?`.
subject { system('mongosh testdb --quiet --eval \'db.auth("testuser","passw0rd")\'') }

expect { subject }.to output('MongoServerError: Authentication failed.').to_stderr
expect { subject }.to eq(1)
end
end

Expand Down

0 comments on commit 44d0616

Please sign in to comment.