-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add missing new lines when generating files #190
Conversation
@Josh5K think you can please add a test which verifies this is doing what you expect? |
it 'has > 1 line' do | ||
expect(File.open('/opt/kafka/config/log4j.properties', 'r').readlines.size).to be > 1 | ||
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.
I recommend you use the file InSpec Resource for this test instead of using raw ruby and actually check some of the content specifically.
Hey @Josh5K Can you change the tests to use the native inspec file resource then we can get this merged, Thanks! |
Hi, Sorry for the 👻 ing. I'll get the tests fixed next time I have some free time. |
Can this PR be unblocked / merged please? This issue is actually preventing Kafka from starting up due to the lack of newlines in |
@hrak do you fancy taking over this PR and fixing up the tests? |
no problem, i also have a cleaner solution that matches the one used in |
Filed a new PR in #193 |
Description
Adds the required newlines when generating log4j.properties and /etc/sysconfig/kafka
Issues Resolved
#189
Check List