mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-26 05:29:45 +00:00
Drop installer NUL cases main does not implement
The ingress test came from a line whose installer also refused NUL bytes in token files. Main's installer does not, so those cases failed on every runner. The remaining cases cover what this branch fixes: both token options read through the real installer and token reader. Contract-Neutral: test scope correction for the portability fix; no contract change
This commit is contained in:
@@ -61,9 +61,6 @@ func TestCollectorTokenReaderInstallerIngress(t *testing.T) {
|
||||
"bare": "synthetic-secret", "LF": "synthetic-secret\n",
|
||||
"normalized": " \tsynthetic-secret\r\n", "literal": "PULSE_TOKEN='synthetic-secret'",
|
||||
"UTF8": "synthetic-caf\u00e9", "limit": strings.Repeat("s", 4096),
|
||||
"NUL leading": "\x00synthetic-secret", "NUL interior": "synthetic\x00-secret",
|
||||
"NUL trailing": "synthetic-secret\x00", "NUL before LF": "synthetic-secret\x00\n",
|
||||
"NUL after LF": "synthetic-secret\n\x00", "NUL only": "\x00",
|
||||
} {
|
||||
for _, option := range []string{"collector", "action"} {
|
||||
t.Run(name+"/"+option, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user