Catch boost bad_numeric_cast exception and let parser return an error
This commit is contained in:
committed by
Patrick Niklaus
parent
14b024e4dc
commit
240a7696da
@@ -46,22 +46,23 @@ Feature: Status messages
|
||||
| ab |
|
||||
|
||||
When I route I should get
|
||||
| request | status | message |
|
||||
| route/v1/driving/1,1;1,2 | 200 | |
|
||||
| nonsense | 400 | URL string malformed close to position 9: "nse" |
|
||||
| nonsense/v1/driving/1,1;1,2 | 400 | Service nonsense not found! |
|
||||
| | 400 | URL string malformed close to position 1: "/" |
|
||||
| / | 400 | URL string malformed close to position 1: "//" |
|
||||
| ? | 400 | URL string malformed close to position 1: "/?" |
|
||||
| route/v1/driving | 400 | URL string malformed close to position 17: "ing" |
|
||||
| route/v1/driving/ | 400 | URL string malformed close to position 18: "ng/" |
|
||||
| route/v1/driving/1 | 400 | Query string malformed close to position 19 |
|
||||
| route/v1/driving/1,1 | 400 | Number of coordinates needs to be at least two. |
|
||||
| route/v1/driving/1,1,1 | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/x | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/x,y | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/1,1; | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;1 | 400 | Query string malformed close to position 23 |
|
||||
| route/v1/driving/1,1;1,1,1 | 400 | Query string malformed close to position 25 |
|
||||
| route/v1/driving/1,1;x | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;x,y | 400 | Query string malformed close to position 21 |
|
||||
| request | status | message |
|
||||
| route/v1/driving/1,1;1,2 | 200 | |
|
||||
| route/v1/driving/-74697224,5.191564 | 400 | Query string malformed close to position 18 |
|
||||
| nonsense | 400 | URL string malformed close to position 9: "nse" |
|
||||
| nonsense/v1/driving/1,1;1,2 | 400 | Service nonsense not found! |
|
||||
| | 400 | URL string malformed close to position 1: "/" |
|
||||
| / | 400 | URL string malformed close to position 1: "//" |
|
||||
| ? | 400 | URL string malformed close to position 1: "/?" |
|
||||
| route/v1/driving | 400 | URL string malformed close to position 17: "ing" |
|
||||
| route/v1/driving/ | 400 | URL string malformed close to position 18: "ng/" |
|
||||
| route/v1/driving/1 | 400 | Query string malformed close to position 19 |
|
||||
| route/v1/driving/1,1 | 400 | Number of coordinates needs to be at least two. |
|
||||
| route/v1/driving/1,1,1 | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/x | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/x,y | 400 | Query string malformed close to position 18 |
|
||||
| route/v1/driving/1,1; | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;1 | 400 | Query string malformed close to position 23 |
|
||||
| route/v1/driving/1,1;1,1,1 | 400 | Query string malformed close to position 25 |
|
||||
| route/v1/driving/1,1;x | 400 | Query string malformed close to position 21 |
|
||||
| route/v1/driving/1,1;x,y | 400 | Query string malformed close to position 21 |
|
||||
|
||||
Reference in New Issue
Block a user