fix: address protocol probe review findings
This commit is contained in:
@@ -158,8 +158,14 @@ func TestCompleteModelDefensivelyRedactsEveryRenderedPage(t *testing.T) {
|
||||
if strings.Contains(frame, secret) {
|
||||
t.Fatalf("frame %d exposed a credential:\n%s", i, frame)
|
||||
}
|
||||
if !strings.Contains(frame, redacted) {
|
||||
t.Fatalf("frame %d did not apply the presentation redaction path:\n%s", i, frame)
|
||||
if i < 3 {
|
||||
if !strings.Contains(frame, redacted) {
|
||||
t.Fatalf("frame %d did not apply the presentation redaction path:\n%s", i, frame)
|
||||
}
|
||||
continue
|
||||
}
|
||||
if strings.Contains(frame, "alice") || !strings.Contains(frame, "REDACTED@proxy.example:8443") {
|
||||
t.Fatalf("form frame %d did not mask the entire userinfo:\n%s", i, frame)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user