feat: implement TLS certificate inspector (closes #4) #7

已合併
sneak 將 4 次提交從 feature/tlscheck-implementation 合併至 main 2026-02-20 19:36:40 +01:00
僅顯示提交 3fcf203485 的變更 - 顯示所有提交
+3 -3
查看文件
@@ -41,7 +41,7 @@ func TestCheckCertificateValid(t *testing.T) {
defer srv.Close()
checker := tlscheck.NewStandalone(
tlscheck.WithTimeout(5 * time.Second),
tlscheck.WithTimeout(5*time.Second),
tlscheck.WithTLSConfig(&tls.Config{
//nolint:gosec // test uses self-signed cert
InsecureSkipVerify: true,
@@ -110,7 +110,7 @@ func TestCheckCertificateContextCanceled(t *testing.T) {
cancel()
checker := tlscheck.NewStandalone(
tlscheck.WithTimeout(2 * time.Second),
tlscheck.WithTimeout(2*time.Second),
tlscheck.WithPort(1),
)
@@ -126,7 +126,7 @@ func TestCheckCertificateTimeout(t *testing.T) {
t.Parallel()
checker := tlscheck.NewStandalone(
tlscheck.WithTimeout(1 * time.Millisecond),
tlscheck.WithTimeout(1*time.Millisecond),
tlscheck.WithPort(1),
)