NEO-79: Fix Bruno cast unknown-ability test setup.

Bind slot 0 in pre-request so the cast route reaches unknown_ability
instead of slot_unbound when run before other ability-cast requests.
pull/112/head
VinPropane 2026-05-24 22:11:01 -04:00
parent 0e5bbbff2e
commit 603cc525ad
1 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,21 @@ meta {
docs { docs {
NEO-79: unknown ability ids deny with reasonCode unknown_ability (catalog-backed IAbilityDefinitionRegistry). NEO-79: unknown ability ids deny with reasonCode unknown_ability (catalog-backed IAbilityDefinitionRegistry).
Pre-request binds slot 0 so cast validation reaches ability allowlist (not slot_unbound).
}
script:pre-request {
const axios = require("axios");
const baseUrl = bru.getEnvVar("baseUrl") || bru.getVar("baseUrl");
const playerId = bru.getEnvVar("playerId") || bru.getVar("playerId") || "dev-local-1";
await axios.post(
`${baseUrl}/game/players/${playerId}/hotbar-loadout`,
{
schemaVersion: 1,
slots: [{ slotIndex: 0, abilityId: "prototype_pulse" }],
},
{ headers: { "Content-Type": "application/json" } },
);
} }
post { post {