Provide complete refactoring of openDKIM script#1812
Conversation
|
Pretty busy today. I'll take a look at it as soon as I have a larger time frame available. |
No hurry. Some tests just require proper formatting (I already did a bit on this topic), some a bit refactoring (get rid of I'm learning for exams atm, therefore I don not have any more spare time. |
|
After my PRs are sorted, I have a related Might be appropriate for what you want to do, as I get the time, I'll be extending my reference to cover mail server DNS records myself. If you'd like to include for tests let me know :) |
|
@wernerfred I would like to propose an idea: I would like to focus on the unit tests later in a separate PR because of two reasons:
If you agree, you can just go ahead and merge this or tell me and I will do it :) |
|
Seems logic to me. I will agree as we will definitely need to refactor at least half of the test. Doing this in a separate step together with all others might safe more time in the end as doing it step by step and need to get into it every time again. But we should focus on this in the next time. |
Completely agree. |
| break | ||
| break |
There was a problem hiding this comment.
Why are you using break here instead of shift ?
There was a problem hiding this comment.
Because I messed up. Can you correct this for me? Currently short on time...
There was a problem hiding this comment.
There was a problem hiding this comment.
@aendeavor any idea?:
# -- line differs --
# index : 3
# expected : open-dkim - configure DomainKeys Identified Mail (DKIM)
# actual : open-dkim - configure DomainKeys Identified Mail (DKIM)
# --
#
There was a problem hiding this comment.
Actually your change (d221c58#diff-9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a089) never went through CI as it was no PR and therefore tests didn't run only the linting.
There was a problem hiding this comment.
Might the output have problems with colors?
There was a problem hiding this comment.
Tested it locally with \e[0m but no difference. So the problem might be something else. But I don't get it. The output is exactly the same.
There was a problem hiding this comment.
So I added --partial to the assert line and the test went through locally, will push this as a hotfix but I want to know which "invisible" char breaks the check
There was a problem hiding this comment.
This is absolutely weird... For setup.sh it seems to work just fine...
Description
Complete refactoring of
target/bin/generate-dkim-configand outsourcing of tests.What's left to do?
Many of the currently present tests need a rewrite. This is indicated in the
open_dkim.batsfile with# TODO. @wernerfred or @casperklein I have already spent more time than I have on this. I would need your help here.Note: The
Makefile'stesttarget is currently only testing the openDKIM config for speed. This will of course be reverted before merging.Type of change
Checklist: