40 lines
736 B
Plaintext
40 lines
736 B
Plaintext
meta {
|
|
name: POST hotbar loadout unknown ability deny
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
docs {
|
|
NEO-79: unknown ability ids deny with reasonCode unknown_ability (catalog-backed IAbilityDefinitionRegistry).
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/game/players/dev-local-1/hotbar-loadout
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"schemaVersion": 1,
|
|
"slots": [
|
|
{
|
|
"slotIndex": 2,
|
|
"abilityId": "missing_ability"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
tests {
|
|
test("status 200", function () {
|
|
expect(res.getStatus()).to.equal(200);
|
|
});
|
|
|
|
test("updated false with unknown_ability", function () {
|
|
const body = res.getBody();
|
|
expect(body.updated).to.equal(false);
|
|
expect(body.reasonCode).to.equal("unknown_ability");
|
|
});
|
|
}
|