Skip to content

Commit

Permalink
rspec test for Undef
Browse files Browse the repository at this point in the history
  • Loading branch information
thejambavan committed Nov 10, 2023
1 parent 88179d2 commit d59524b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/classes/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,17 @@ class { 'redis':
it { is_expected.to contain_file(config_file_orig).with('content' => %r{^rdb-save-incremental-fsync no$}) }
end

describe 'test rdb-save-incremental-fsync Undef for redis6' do
let(:params) do
{
rdb_save_incremental_fsync: Undef,
}
end

it { is_expected.not_to contain_file(config_file_orig).with('content' => %r{^rdb-save-incremental-fsync}) }

Check failure on line 1711 in spec/classes/redis_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Static validations

Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. (https://rubystyle.guide#empty-lines-around-bodies)
end

describe 'test systemd service timeouts' do
let(:params) do
{
Expand Down

0 comments on commit d59524b

Please sign in to comment.