test(cli): check the Go input budget recovery flag (#14672)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-11-26 07:08:37 +00:00
1 parent 155715942e
commit bcaf6056a8
1 file changed
+6 -1
@@ -85,7 +85,12 @@ exit 1
expect(output.json).toMatchObject({
details: { limit: { parameter: recovery, cli_flag: cliFlag } },
});
expect(refusal.remediation.action).not.toContain("--");
if (command === "inspect-go-binary") {
expect(refusal.remediation.action).toContain(cliFlag);
expect(refusal.remediation.action).toContain(`rea ${command}`);
} else {
expect(refusal.remediation.action).not.toContain("--");
}
}
expect(refusal.remediation.action).not.toMatch(
/allowance for the evidence reply/u,