Verify the native library upgrade and record completion
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user