test: comprehensive test gap closure across 24 packages

Close coverage gaps identified by dual-audit (qualitative + quantitative).
New test files for config (0%→98%), router (0%→100%), handler validation,
health, audit, response helpers, webhook notifier (0%→88%), email notifier,
middleware (recovery, rate limiter), domain profile, service nil-safety,
config helpers, issuer bootstrap, and server bootstrap wiring. Expanded
existing tests for ACME (34%→42%), step-ca (42%→52%), F5, SSH, agent
(43%→63%), scheduler (88%→99%), renewal service, and issuerfactory.

All tests pass: go test -short, go vet, go test -race clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shankar
2026-04-09 23:09:40 -04:00
parent e72f06f35b
commit 43e1c89623
24 changed files with 9225 additions and 4 deletions
@@ -136,3 +136,14 @@ func TestNewFromConfig_EmptyConfig(t *testing.T) {
t.Fatal("expected non-nil connector")
}
}
func TestNewFromConfig_AWSACMPCA(t *testing.T) {
cfg := json.RawMessage(`{"project":"my-project","location":"us-central1","ca_pool":"my-pool","credentials":"/path/to/creds.json"}`)
conn, err := NewFromConfig("AWSACMPCA", cfg, testLogger())
if err != nil {
t.Fatalf("NewFromConfig(AWSACMPCA) failed: %v", err)
}
if conn == nil {
t.Fatal("expected non-nil connector")
}
}