Skip to content

Commit

Permalink
update init_spec.rb for Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
grant-veepshosting committed Sep 20, 2022
1 parent 1eaec43 commit fa8a5a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/18.04/etc/fail2ban/jail.conf.epp') }
when ['Ubuntu', '20.04']
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/20.04/etc/fail2ban/jail.conf.epp') }
when ['Ubuntu', '22.04']
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/22.04/etc/fail2ban/jail.conf.epp') }
else
# has to be better way of doing this.
it { is_expected.to contain_class('fail2ban').with_config_file_template('a new os.name or os.release.major needs a new case') }
Expand Down

0 comments on commit fa8a5a3

Please sign in to comment.