docs: update documentation and project structure
- Update AGENTS.md, README.md, and docs/* with revisions - Refactor lib/acme.py and lib/state.py - Add tests for acme module - Remove install.sh and restart-services.sh (moved to scripts/) - Normalize vendor files (acme.sh, htm.js)
This commit is contained in:
@@ -117,6 +117,20 @@ class TestParseListOutput:
|
||||
result = acme._parse_list_output(raw)
|
||||
assert result == []
|
||||
|
||||
def test_pipe_separated_raw_format(self):
|
||||
"""Pipe-separated output with empty fields (what --listraw produces)."""
|
||||
raw = (
|
||||
"Main_Domain|KeyLength|SAN_Domains|Profile|CA|Created|Renew\n"
|
||||
'example.com|"ec-256"|no||ZeroSSL.com|2026-01-01|2026-07-01\n'
|
||||
)
|
||||
result = acme._parse_list_output(raw)
|
||||
assert len(result) == 1
|
||||
assert result[0]["main_domain"] == "example.com"
|
||||
assert result[0]["profile"] == ""
|
||||
assert result[0]["ca"] == "ZeroSSL.com"
|
||||
assert result[0]["created"] == "2026-01-01"
|
||||
assert result[0]["renew"] == "2026-07-01"
|
||||
|
||||
|
||||
class TestDaysUntil:
|
||||
def test_future_date(self):
|
||||
|
||||
Reference in New Issue
Block a user