Closed larsen0815 closed 9 years ago
Thanks for writing the lens. Could you also add a few tests so we don't break what works right now when the lens gets updated in the future ? Have a look at the files in lenses/tests/ (e.g., test_hosts.aug) for examples of existing tests.
I´m afraid that this is out of my capabilities. I had a hard time understanding the syntax when writing the lens and it was more of a copy-paste-trial-and-error-and-error-and-error-development. And the tests don´t look any less confusing. Sorry.
Ok, fair enough; could you paste the sasl/smtpd.conf file that you used as a model into this issue then ? I'll try and take a stab at writing tests.
Sure:
# cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: auxprop saslauthd
auxprop_plugin: plesk
saslauthd_path: /private/plesk_saslauthd
mech_list: CRAM-MD5 PLAIN LOGIN
sql_engine: intentionally disabled
log_level: 4
In the meantime, this entry was added to the lens:
simple_entry "auto_transition"
Thanks for that ! I just committed the lens and a test as c1b7784e
Please let me know if there's any problems with it.
I couldn´t find a lens for "/etc/postfix/sasl/smtpd.conf", so I created it myself. I think this file stems from Parallels Plesk (12.0.18 in use). This is my first try on creating a lens, so don´t expect it to be bugs-free.
It works for the file that I have on my server, but there will probably be more items/keys that are not implemented, yet. Though, this lens will hopefully be useful for others and provide a starting point.