Daniel Patterson
2cf19010e3
Fix context returned in JSON error (had null bytes).
...
Update status test cases to match new API.
2016-04-05 22:59:14 +02:00
Daniel Patterson
75979d7e1c
Add missing arrival instruction.
2016-04-05 22:59:14 +02:00
Lauren Budorick
c7f3645fe2
Status fixes
2016-04-05 22:59:14 +02:00
Patrick Niklaus
57f257dce5
Fix status messages and don't include
2015-12-18 18:18:48 +01:00
Patrick Niklaus
78ac3cffde
Add max values for viaroute and trip and reorganize return code handling
...
"status" is now always:
- 200 if the request was successful
- 207 if the result is empty (no path found)
- 400 if the request is invalid
viaroute and trip now have a maximum of 500 and 100 locations
respectively. Override with the --max-viaroute-size and --max-trip-size
parameters.
2015-12-17 04:14:34 +01:00
Patrick Niklaus
6dada4e347
Fix impossible route status message
2015-11-25 00:27:20 +01:00
Emil Tin
db06cdb4ce
adjust datastore testing
2014-10-13 10:58:03 +02:00
Dennis Luxen
2d498cb88b
adapt JSON parsing in tests to allow for omitted fields
2014-05-20 14:33:00 +02:00
Emil Tin
2cddf90e49
test different status message and query parsing
2014-05-07 10:38:28 +02:00
Emil Tin
85148d1283
tests covering no route found
2014-05-07 10:38:28 +02:00