Skip to content
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

Refactoring - improving coverage #371

Open
wants to merge 7 commits into
base: refactoring
Choose a base branch
from

Conversation

bluntelk
Copy link

I have started writing some unit tests to improve coverage of the refactoring.

This PR should bring coverage of the acmedns package up to 100%

* More testing of ReadConfig() and its fallback mechanism

* Found that if someone put a '"' double quote into the filename that we configure zap to log to, it would cause the the JSON created to be invalid. I have replaced the JSON string with proper config
…valid value instead of silently failing.

added a basic test for api.setupTLS() (to increase test coverage)
@bluntelk bluntelk mentioned this pull request Jan 14, 2025
@coveralls
Copy link

coveralls commented Jan 20, 2025

Coverage Status

coverage: 75.074% (+6.6%) from 68.477%
when pulling 19311e5 on bluntelk:refactoring
into d20fae3 on joohoi:refactoring.

Bumping github-actions workflow versions to accommodate some changes in upstream golanci-lint
@bluntelk
Copy link
Author

bluntelk commented Jan 20, 2025

not sure why the lint is erroring on my use of the math/rand/v2 - I wonder if they have not accounted for that /v2 on the end of the import path?

@joohoi
Copy link
Owner

joohoi commented Jan 20, 2025

Yeah, it's a bit messy. Currently sitting in a train, trying to debug and figure it out. The overall plan is to migrate acme-dns to "acme-dns" organization after this refactoring is done. I think I'll just take your branch, bump dependencies and push it there.

@joohoi
Copy link
Owner

joohoi commented Jan 20, 2025

For the golangci-lint error about the output format the solution was to bump the version of the github action, as the previous one was old. But yeah, the rand one is weird for sure.

@bluntelk
Copy link
Author

locally I am running golangci-lint has version v1.63.4 and it works ok, so maybe it's using an old version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants