-
Notifications
You must be signed in to change notification settings - Fork 5
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
Using different defaults about logging for vs/pure-ftpd (bnc#888287) #5
Conversation
@@ -1,4 +1,10 @@ | |||
------------------------------------------------------------------- | |||
Wed Jul 30 09:32:53 UTC 2014 - cwh@suse.com | |||
|
|||
- Using different defaults about logging for vs/pure-ftpd (bnc#888287) |
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.
vsftpd/pure-ftpd otherwise someone grepping for vsftpd wouldn't find it
|
Looking briefly at the existing code I see a big mess ( I can guess what |
You are right that it is not obvious how it works. It needs definitively some love. After fixing the bug I created the test case to be used after a rewrite of least a part of that module in proper ruby. For now I just wanted to fix that bug - all the code beautification should happen in a different commit. I will try to explain my fix a bit more detailled. |
Explaining this fix: So the fix is to add in yast's internal list of default values for vsftpd "log_ftp_protocol = YES" which results in yast writing the right default settings. |
Actually not. It turns out the correct setting is |
Remember that information in pull requests is volatile (nobody read it once it's closed), so explanations about what the code does and why should be in the code itself. |
I guess we should focus on finishing this PR. |
"pasv_max_port" => "30100" | ||
} | ||
|
||
PURE_SETTINGS = { |
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.
Just nit picking: I'd rather prefer putting large mock data into separate files (fixtures). In this case it's not that big like in available_addons.yml, but still makes sense IMHO.
(Ideally define a helper method in spec_helper.rb and then use it in tests.)
Then you can easily share the data in more tests.
Made YARD see the attributes of FtpServer. Documented the *_SETTINGS attributes.
added testcase setting xferlog_enable instead of syslog_enable
21b14d1
to
fbe7424
Compare
Opened a new pull request, since this one is somehow screwed |
also added test