Initial commit
This commit is contained in:
39
Docker Backend/bruno-tests/5 Order Finalize.bru
Normal file
39
Docker Backend/bruno-tests/5 Order Finalize.bru
Normal file
@@ -0,0 +1,39 @@
|
||||
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");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user