Verify the native library upgrade and record completion

This commit is contained in:
2026-11-23 03:45:55 +00:00
parent 66e58a78a4
commit 23af6579c3
4 changed files with 37 additions and 13 deletions

View File

@@ -203,3 +203,14 @@ func TestNativeLoadFailureEvidenceOnComparisonSides(t *testing.T) {
}
}
}
func TestRejectedRawKeysRemainRedacted(t *testing.T) {
t.Chdir(t.TempDir())
writeNativeFile(t, "raw.yml", "promptkit:\n backends:\n - id: test\n endpoint: http://localhost:1234/v1\n api_key: sensitive-canary\n")
for _, scope := range []string{"app", "promptkit"} {
outcome, output, diagnostic := executeNative(t, "config", "validate", "--scope="+scope, "--config=raw.yml", "--verbose", "--format=json")
if outcome.Status != 2 || !strings.Contains(diagnostic, "/api_key") || strings.Contains(output+diagnostic, "sensitive-canary") {
t.Fatalf("%s: %+v %q %q", scope, outcome, output, diagnostic)
}
}
}