v0.22.0 several enhancements and fixes for security, network, doc, test, packaging
Test / test (push) Canceled after 0s
Test / e2e (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-03 14:52:16 -04:00
1 parent 9ab8c356d2
commit 71d1b82f83
102 files changed
+7102 -2178

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
package main
import (
"slices"
"testing"
)
// A plugin's details map is spread into its status line: auth and TLS
// rejection counters live there and would otherwise never be reported.
func TestStatusLineCarriesPluginDetails(t *testing.T) {
fields := statsFields("Pipeline sources", "in", map[string]any{
"id": "in",
"details": map[string]any{"auth_rejected": uint64(3), "tls_handshake_errors": uint64(1)},
})
for _, key := range []string{"auth_rejected", "tls_handshake_errors"} {
if !slices.Contains(fields, any(key)) {
t.Errorf("status fields lack %s: %v", key, fields)
}
}
}