Sync public tree to 8a8f27c
This commit is contained in:
parent
65ccb17519
commit
4e04601794
4 changed files with 44 additions and 3 deletions
|
|
@ -102,6 +102,11 @@ async function main() {
|
|||
assert.strictEqual(report.run_start.machine_error.category, "quota");
|
||||
assert.strictEqual(report.run_start.machine_error.resource_category, "api_calls");
|
||||
assert.strictEqual(report.run_start.machine_error.community_tier_language, true);
|
||||
assert.strictEqual(
|
||||
report.run_start.machine_error.community_tier_label,
|
||||
"community tier"
|
||||
);
|
||||
assert.doesNotMatch(result.stdout, new RegExp(["free", "tier"].join(" "), "i"));
|
||||
assert.strictEqual(
|
||||
report.run_start.machine_error.private_abuse_heuristics_exposed,
|
||||
false
|
||||
|
|
|
|||
|
|
@ -127,6 +127,11 @@ expect(
|
|||
"quota resource-category criteria",
|
||||
/Hitting a quota produces a clear error[\s\S]*resource category[\s\S]*private abuse heuristics[\s\S]*quota machine errors now extract the resource category/
|
||||
);
|
||||
expect(
|
||||
criteria,
|
||||
"community tier CLI wording criteria",
|
||||
/Community tier language is used instead of "free[ -]tier" in user-facing CLI output/
|
||||
);
|
||||
expect(
|
||||
cliFirstAcceptance,
|
||||
"CLI-first acceptance report",
|
||||
|
|
@ -399,8 +404,14 @@ expect(
|
|||
expect(
|
||||
cli,
|
||||
"CLI exposes quota machine-error posture",
|
||||
/fn cli_error_summary_for_category[\s\S]*resource_category[\s\S]*quota_error_resource_category[\s\S]*community_tier_language[\s\S]*private_abuse_heuristics_exposed[\s\S]*fn quota_error_resource_category[\s\S]*resource limit exceeded for /
|
||||
/fn cli_error_summary_for_category[\s\S]*resource_category[\s\S]*quota_error_resource_category[\s\S]*community_tier_language[\s\S]*community_tier_label[\s\S]*private_abuse_heuristics_exposed[\s\S]*fn quota_error_resource_category[\s\S]*resource limit exceeded for /
|
||||
);
|
||||
expect(
|
||||
cli,
|
||||
"CLI renders community tier wording",
|
||||
/push_string_field\(&mut lines, value, "quota_tier", "quota tier"\)[\s\S]*community_tier_label[\s\S]*quota tier: \{tier\}/
|
||||
);
|
||||
assert.doesNotMatch(cli, /free[- ]tier/i, "CLI source should use community tier wording");
|
||||
expect(
|
||||
cli,
|
||||
"CLI reports stable error-code contract",
|
||||
|
|
@ -528,6 +539,7 @@ for (const [name, pattern] of [
|
|||
["run uses JSON mode", /"run"[\s\S]*"--json"/],
|
||||
["actual quota exit code", /assert\.strictEqual\(result\.code, 22/],
|
||||
["actual quota resource-category assertion", /machine_error\.resource_category, "api_calls"/],
|
||||
["actual quota community-tier label assertion", /machine_error\.community_tier_label,[\s\S]*"community tier"/],
|
||||
["actual quota abuse-heuristics assertion", /machine_error\.private_abuse_heuristics_exposed,[\s\S]*false/],
|
||||
["exit-code application in JSON", /process_exit_code_applied[\s\S]*true/],
|
||||
]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue