mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[PR #371] [MERGED] Refactoring - improving coverage #394
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#394
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/acme-dns/acme-dns/pull/371
Author: @bluntelk
Created: 12/31/2024
Status: ✅ Merged
Merged: 5/6/2025
Merged by: @joohoi
Base:
refactoring← Head:refactoring📝 Commits (10+)
076e197Increase code coverage in acmedns5ec965fBetter handling of config options for api.TLS - we now error on an invalid value instead of silently failing.b0c4d1ftesting nameserver isOwnChallenge and isAuthoritative methods323ab13add a unit test for nameserver answerOwnChallenge0ee1ad0fix linting errorsd9449debump go and golangci-lint versions in github actions19311e5Update golangci-lint.yml794dec7Bump Golang version to 1.23 (currently the oldest supported version)2f0abcbbump golanglint-ci action version4a48ccaFixing up new golanglint-ci warnings and errors📊 Changes
16 files changed (+511 additions, -85 deletions)
View changed files
📝
.github/workflows/golangci-lint.yml(+5 -5)📝
.golangci.yaml(+24 -9)📝
go.mod(+1 -1)📝
main.go(+1 -1)📝
pkg/acmedns/acmetxt.go(+2 -2)📝
pkg/acmedns/config.go(+19 -5)📝
pkg/acmedns/logging.go(+22 -19)➕
pkg/acmedns/testdata/test_read_fallback_config.toml(+36 -0)📝
pkg/acmedns/types.go(+1 -1)📝
pkg/acmedns/util_test.go(+142 -12)📝
pkg/api/api.go(+3 -23)📝
pkg/api/api_test.go(+34 -1)📝
pkg/nameserver/dns_test.go(+2 -2)📝
pkg/nameserver/handler.go(+4 -4)➕
pkg/nameserver/handler_test.go(+150 -0)➕
pkg/nameserver/validation_test.go(+65 -0)📄 Description
I have started writing some unit tests to improve coverage of the refactoring.
This PR should bring coverage of the
acmednspackage up to 100%🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.