issues
search
lunches-platform
/
api
Lunches REST API
0
stars
0
forks
source link
Functional API tests for Orders
#156
Open
warlock39
opened
8 years ago
warlock39
commented
8 years ago
[x] /orders - no params
[x] /orders - no startDate param
[x] /orders - no endDate param
[x] /orders - invalid startDate or endDate
[x] /orders - startDate less than endDate
[x] /users/{user}/orders - valid
[x] /users/{user}/orders - not found
[ ] /orders - date range - only orders by specified criterias
[ ] /orders - shipmentDate only orders
[ ] /orders - invalid shipmentDate
[ ] POST /orders - without user
[ ] POST /orders - without address
[ ] POST /orders - without shipmentDate
[ ] POST /orders - without lineItems
[ ] POST /orders - without address and user has address
[ ] POST /orders - without address and user don’t have address
[ ] POST /orders - shipmentDate today
[ ] POST /orders - shipmentDate in the past
[ ] POST /orders - no menu for specified shipmentDate
[ ] POST /orders - line items is not an array
[ ] POST /orders - line item is array of not objects
[ ] POST /orders - line item without size
[ ] POST /orders - line item without dish
[ ] POST /orders - line item invalid size
[ ] POST /orders - line item valid size
[ ] POST /orders - line item non existent dish
[ ] POST /orders - line item invalid dish
[ ] POST /orders - line item dish is not cooking for shipmentDate
[ ] /orders/{id} - object
[ ] /orders/{id} - 404
[ ] /orders/{id} - invalid {id}
[ ] /orders/{id} - has specified fields
[ ] PUT /orders/{id} - restrict to update shipmentDate
[ ] PUT /orders/{id} - restrict to update lineItems
[ ] PUT /orders/{id} - restrict to update user
[ ] PUT /orders/{id} - allow to update address
[ ] PUT /orders/{id} - restrict update orders which status is not created