Skip to content

test: add http_01 get_content() coverage#73

Merged
toddr merged 1 commit intomainfrom
koan.toddr.bot/test-http01-get-content
Apr 23, 2026
Merged

test: add http_01 get_content() coverage#73
toddr merged 1 commit intomainfrom
koan.toddr.bot/test-http01-get-content

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

What

Add tests for http_01::get_content() — the only user-facing challenge method that lacked coverage.

Why

All other challenge methods (dns_01::get_record_value(), dns_account_01::get_record_value(), http_01::get_path()) have direct tests. get_content() was the gap.

Testing

Two new tests added to t/Net-ACME2-Challenge-http_01-Handler.t:

  • Dies without ACME instance
  • Returns correct key authorization from ACME object

Full test suite passes (12 tests in handler file, all suite tests pass).

🤖 Generated with Claude Code

get_content() was the only user-facing challenge method without tests.
Add two tests: dies without ACME instance, returns key authorization.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr toddr marked this pull request as ready for review April 23, 2026 14:21
@toddr toddr merged commit 974bc3e into main Apr 23, 2026
20 checks passed
@toddr toddr deleted the koan.toddr.bot/test-http01-get-content branch April 23, 2026 14:21
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.

2 participants