]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/lookup/simple.feature
set exception handler by request format, not always HTML
[nominatim.git] / test / bdd / api / lookup / simple.feature
1 @APIDB
2 Feature: Places by osm_type and osm_id Tests
3     Simple tests for response format.
4
5     Scenario Outline: address lookup for existing node, way, relation
6         When sending <format> lookup query for N3284625766,W6065798,,R123924,X99,N0
7         Then the result is valid <format>
8         And exactly 3 results are returned
9
10     Examples:
11         | format  |
12         | xml     |
13         | json    |
14         | geojson |
15
16     Scenario: address lookup for non-existing or invalid node, way, relation
17         When sending xml lookup query for X99,,N0,nN158845944,ABC,,W9
18         Then exactly 0 results are returned