This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

+1 -1
View File
@@ -226,7 +226,7 @@ func TestTLSInventoryReportsServingCertificateFingerprint(t *testing.T) {
go func() { _ = server.ServeTLS(listener, certFile, keyFile) }()
t.Cleanup(func() { _ = server.Close() })
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} // test-only: verify the endpoint is actually TLS; RustProxy pins it in production.
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
client := &http.Client{Transport: transport, Timeout: time.Second}
req, _ := http.NewRequest(http.MethodGet, "https://"+listener.Addr().String()+"/v1/inventory", nil)
req.Header.Set("Authorization", "Bearer "+cfg.Token)