neon-sprawl/bruno/neon-sprawl-server/contract-stores/Reset contract instance via...

36 lines
785 B
Plaintext

meta {
name: Reset contract instance via quest fixture (NEO-149)
type: http
seq: 2
}
post {
url: {{baseUrl}}/game/players/{{playerId}}/__dev/quest-fixture
body: json
auth: none
}
body:json {
{
"schemaVersion": 1,
"resetContractInstanceIds": [
"ci_00000000000000000000000000000000"
]
}
}
docs {
NEO-149: quest-fixture accepts resetContractInstanceIds — clears contract instance, contract_completion delivery row, and outcome audit for each id (idempotent when absent).
Full issue → clear → GET Bruno loop lands in NEO-151 when contract HTTP ships.
}
tests {
test("status 200", function () {
expect(res.getStatus()).to.equal(200);
});
test("applied true", function () {
expect(res.getBody().applied).to.equal(true);
});
}