You've already forked directdnsonly
Move all outbound DirectAdmin HTTP logic out of ReconciliationWorker and into a dedicated, independently testable DirectAdminClient class: - directdnsonly/app/da/client.py: list_domains (paginated JSON + legacy fallback), get (authenticated GET to any CMD_* endpoint), _login (DA Evo session-cookie fallback), _parse_legacy_domain_list - directdnsonly/app/da/__init__.py: public re-export of DirectAdminClient - reconciler.py: now purely reconciliation logic; instantiates a client per configured server — no HTTP code remaining - tests/test_da_client.py: 16 dedicated tests for DirectAdminClient - tests/test_reconciler.py: mocks at the DirectAdminClient class boundary instead of the internal _fetch_da_domains method Bumped to 2.2.0 — DirectAdminClient is now a first-class public API.
36 lines
870 B
TOML
36 lines
870 B
TOML
[project]
|
|
name = "directdnsonly"
|
|
version = "2.2.0"
|
|
description = "DNS Management System - DirectAdmin to multiple backends"
|
|
authors = [
|
|
{name = "Aaron Guise",email = "aaron@guise.net.nz"}
|
|
]
|
|
license = {text = "MIT"}
|
|
readme = "README.md"
|
|
requires-python = ">=3.11,<3.14"
|
|
dependencies = [
|
|
"vyper-config (>=1.2.1,<2.0.0)",
|
|
"loguru (>=0.7.3,<0.8.0)",
|
|
"persist-queue (>=1.0.0,<2.0.0)",
|
|
"cherrypy (>=18.10.0,<19.0.0)",
|
|
"sqlalchemy (<2.0.0)",
|
|
"pymysql (>=1.1.1,<2.0.0)",
|
|
"dnspython (>=2.7.0,<3.0.0)",
|
|
"pyyaml (>=6.0.2,<7.0.0)",
|
|
"requests (>=2.32.0,<3.0.0)",
|
|
]
|
|
|
|
[tool.poetry]
|
|
package-mode = true
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
black = "^25.1.0"
|
|
pyinstaller = "^6.13.0"
|
|
pytest = "^8.3.5"
|
|
pytest-cov = "^6.1.1"
|
|
pytest-mock = "^3.14.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|