-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.requests.log
33 lines (29 loc) · 1.44 KB
/
example.requests.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
NewCustomer(1, "foo") # ok
NewCustomer(1, "foo") # already used id
GetCustomer(1)
NewCustomer(2, "bar") # ok
NewProduct(1, 1, "P1") # unknown category
NewCategory(0, "default category") # ok
NewProduct(1, 0, "P1") # ok
NewProduct(2, 0, "P1") # name already used in the category
NewProduct(2, 0, "P2") # ok
NewProduct(3, 0, "P3") # ok
NewOrder(1,1,[(1,10)]) # not enough stock
GetStock [1]
NewStockDelivery [(1,20)] # ok
GetStock [1]
NewOrder(1,1,[(1,10)]) # ok
GetStock [1,2,3]
NewStockDelivery [(1,20),(2,10),(3,100)]
NewOrder(1,1,[(1,1),(2,5),(3,10)]) # already used id
NewOrder(1,3,[(1,1),(2,5),(3,10)]) # unknown customer
NewOrder(2,1,[(1,1),(2,5),(3,10)]) # ok
GetStock [1,2,3]
NewCustomer(10, "foo") # ok
NewCustomer(10, "foo") # already used id
NewCustomer(11, "foo") # ok
NewCustomer(11, "foo") # already used id
NewCategory(0, "default category") # ok
NewProduct(1, 0, "P1") # ok
NewProduct(2, 0, "P2") # ok
NewProduct(3, 0, "P3") # ok