40 lines
712 B
Plaintext
40 lines
712 B
Plaintext
meta {
|
|
name: 5 Order Finalize
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/api/order/finalize
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"sessionId": "{{sessionId}}",
|
|
"orderNumber": "{{orderNumber}}"
|
|
}
|
|
}
|
|
|
|
docs {
|
|
Finalisiert eine Bestellung aus dem Preview-Cache.
|
|
|
|
WICHTIG: Vorher muss ein Preview Batch generiert worden sein!
|
|
Run "2 Preview Batch - Single Letter" first.
|
|
}
|
|
|
|
tests {
|
|
test("Status is 200", function() {
|
|
expect(res.status).to.equal(200);
|
|
});
|
|
|
|
test("Returns order number", function() {
|
|
expect(res.body.orderNumber).to.equal(bru.getEnvVar("orderNumber"));
|
|
});
|
|
|
|
test("Has output path", function() {
|
|
expect(res.body.outputPath).to.be.a("string");
|
|
});
|
|
}
|