-
-
Notifications
You must be signed in to change notification settings - Fork 130
add support for Debian 13 #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
spec/classes/snmp_init_spec.rb
Outdated
| # in this case | ||
| case facts[:os]['release']['major'] | ||
| when '11', '12' | ||
| when '11', '12', '13' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the whole case statement can go away now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it can. After simplification, this stays:
describe 'manage_snmpdtrapd => false Debian' do
let(:params) { { manage_snmptrapd: false } }
end
I've no idea what it means, I don't speak ruby :/ So I'm unsure if this could disappear too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means you try a test with with parameter manage_snmptrapd: false on Debian, this can stay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like removing the case breaks things. I don't understand why :(
| when '11', '12', '13' | ||
| it { is_expected.to contain_file('snmpd.sysconfig').without_content(%r{TRAPDRUN|TRAPDOPTS}) } | ||
| end | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test doesn't really make a lot of sense to me as you don't test something specific for the parameter you set.
So either remove this whole describe block or actually test what the expected behavior would be.
In the describe block under let parameters you can add the following:
it { is_expected.not_to contain_systemd__dropin_file('snmptrapd.conf') }
it { is_expected.not_to contain_file('snmptrapd.sysconfig') }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bastelfreak What are your thoughts on this?
Pull Request (PR) description
add support for Debian 13
This Pull Request (PR) fixes the following issues