39 lines
847 B
Plaintext
39 lines
847 B
Plaintext
meta {
|
|
name: POST craft deny insufficient materials
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
docs {
|
|
NEO-70: craft without seeded materials denies with insufficient_materials on dev-local-1 empty inventory.
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/game/players/{{playerId}}/craft
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
content-type: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"schemaVersion": 1,
|
|
"recipeId": "refine_scrap_standard"
|
|
}
|
|
}
|
|
|
|
tests {
|
|
test("denies with insufficient_materials", function () {
|
|
expect(res.getStatus()).to.equal(200);
|
|
const body = res.getBody();
|
|
expect(body.schemaVersion).to.equal(1);
|
|
expect(body.success).to.equal(false);
|
|
expect(body.reasonCode).to.equal("insufficient_materials");
|
|
expect(body.inputsConsumed).to.be.an("array").that.is.empty;
|
|
expect(body.outputsGranted).to.be.an("array").that.is.empty;
|
|
});
|
|
}
|