You've already forked directdnsonly
Add test suite for core components #1
Reference in New Issue
Block a user
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?
Implemented in commit
bd46227.73 tests, all green, ~0.5s runtime.
Coverage:
tests/conftest.py— shared in-memory SQLite fixture +connect()monkeypatchtests/test_utils.py— all 5 zone index helper functions (13 tests)tests/test_admin_api.py—CMD_API_LOGIN_TEST,_handle_exists(0/1/2), rawsave, delete (12 tests)tests/test_reconciler.py— orphan detection, dry-run, backfill, migration,_fetch_da_domains(HTTP/SSL/timeout/HTML/pagination),_parse_da_domain_list, lifecycle (21 tests)tests/test_zone_parser.py—validate_and_normalize_zone,count_zone_records(12 tests)tests/test_coredns_mysql.py— rewritten; write/update/delete/reconcile/verify (15 tests)Also fixed two bugs found while writing tests:
zone_existsfiltering on wrong column (name→zone_name)delete_zonemissingdot_fqdn()normalizationAlso removed legacy artifacts:
app.py(v1 Flask prototype),config.json(empty),config/app.yml(root-level duplicate).