]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/regression.feature
adapt API tests to latest data
[nominatim.git] / tests / features / api / regression.feature
1 Feature: API regression tests
2     Tests error cases reported in tickets.
3
4     @poldi-only
5     Scenario Outline: github #36
6         When sending json search query "<query>" with address
7         Then result addresses contain
8          | ID | road     | city
9          | 0  | Seegasse | Wieselburg-Land
10
11     Examples:
12          | query
13          | Seegasse, Gemeinde Wieselburg-Land
14          | Seegasse, Wieselburg-Land
15          | Seegasse, Wieselburg
16
17     Scenario: trac #2430
18         When sending json search query "89 River Avenue, Hoddesdon, Hertfordshire, EN11 0JT"
19         Then at least 1 result is returned
20
21     Scenario: trac #2440
22         When sending json search query "East Harvard Avenue, Denver"
23         Then more than 2 results are returned
24
25     Scenario: trac #2456
26         When sending xml search query "Borlänge Kommun"
27         Then results contain
28          | ID | place_rank
29          | 0  | 19
30
31     Scenario: trac #2530
32         When sending json search query "Lange Straße, Bamberg" with address
33         Then result addresses contain
34          | ID | town
35          | 0  | Bamberg
36
37     Scenario: trac #2541
38         When sending json search query "pad, germany"
39         Then results contain
40          | ID | class   | display_name
41          | 0  | aeroway | Paderborn/Lippstadt,.*
42
43     Scenario: trac #2579
44         When sending json search query "Johnsons Close, hackbridge" with address
45         Then result addresses contain
46          | ID | postcode
47          | 0  | SM5 2LU
48
49     @Fail
50     Scenario Outline: trac #2586
51         When sending json search query "<query>" with address
52         Then result addresses contain
53          | ID | country_code
54          | 0  | uk
55
56     Examples:
57         | query
58         | DL7 0SN
59         | DL70SN
60
61     Scenario: trac #2628 (1)
62         When sending json search query "Adam Kraft Str" with address
63         Then result addresses contain
64          | ID | road          
65          | 0  | Adam-Kraft-Straße
66
67     Scenario: trac #2628 (2)
68         When sending json search query "Maxfeldstr. 5, Nürnberg" with address
69         Then result addresses contain
70          | ID | house_number | road          | city
71          | 0  | 5            | Maxfeldstraße | Nürnberg
72
73     Scenario: trac #2638
74         When sending json search query "Nöthnitzer Str. 40, 01187 Dresden" with address
75         Then result addresses contain
76          | ID | house_number | road              | city
77          | 0  | 40           | Nöthnitzer Straße | Dresden
78
79     Scenario Outline: trac #2667
80         When sending json search query "<query>" with address
81         Then result addresses contain
82          | ID | house_number
83          | 0  | <number>
84
85     Examples:
86         | number | query
87         | 16     | 16 Woodpecker Way, Cambourne
88         | 14906  | 14906, 114 Street Northwest, Edmonton, Alberta, Canada
89         | 14904  | 14904, 114 Street Northwest, Edmonton, Alberta, Canada
90         | 15022  | 15022, 114 Street Northwest, Edmonton, Alberta, Canada
91         | 15024  | 15024, 114 Street Northwest, Edmonton, Alberta, Canada
92
93     Scenario: trac #2681
94         When sending json search query "kirchstraße troisdorf Germany"
95         Then results contain
96          | ID | display_name
97          | 0  | .*, Troisdorf, .*
98
99     Scenario: trac #2758
100         When sending json search query "6а, полуботка, чернигов" with address
101         Then result addresses contain
102          | ID | house_number
103          | 0  | 6а
104
105     Scenario: trac #2790
106         When looking up coordinates 49.0942079697809,8.27565898861822
107         Then result addresses contain
108          | ID | road          | village  | country
109          | 0  | Daimlerstraße | Jockgrim | Deutschland
110
111     Scenario: trac #2794
112         When sending json search query "4008"
113         Then results contain
114          | ID | class | type
115          | 0  | place | postcode
116
117     Scenario: trac #2797
118         When sending json search query "Philippstr.4, 52349 Düren" with address
119         Then result addresses contain
120          | ID | road          | town
121          | 0  | Philippstraße | Düren
122
123     Scenario: trac #2830
124         When sending json search query "528, Merkley Drive, K4A 1N5,CA" with address
125         Then result addresses contain
126          | ID | house_number | road          | postcode | country
127          | 0  | 528          | Merkley Drive | K4A 1N5  | Canada
128
129     Scenario: trac #2830
130         When sending json search query "K4A 1N5,CA"
131         Then results contain
132          | ID | class | type     | display_name
133          | 0  | place | postcode | .*, Canada
134
135     Scenario: trac #2845
136         When sending json search query "Leliestraat 31, Zwolle" with address
137         Then result addresses contain
138          | ID | city
139          | 0  | Zwolle
140
141     Scenario: trac #2852
142         When sending json search query "berlinerstrasse, leipzig" with address
143         Then result addresses contain
144          | ID | road
145          | 0  | Berliner Straße
146
147     Scenario: trac #2871
148         When looking up coordinates -33.906895553,150.99609375
149         Then result addresses contain
150          | ID | city       | postcode | country
151          | 0  | [^0-9]*    | 2197     | Australia
152
153     Scenario: trac #2974
154         When sending json search query "Azadi Square, Faruj" with address
155         Then result addresses contain
156          | ID | road        | city
157          | 0  | ميدان آزادي | فاروج
158         And results contain
159          | ID | latlon
160          | 0  | 37.2323,58.2193 +-1km
161
162      Scenario: trac #2981
163         When sending json search query "Ohmstraße 7, Berlin" with address
164         Then at least 2 results are returned
165         And result addresses contain
166          | house_number | road      | state
167          | 7            | Ohmstraße | Berlin
168
169      Scenario: trac #3049
170         When sending json search query "Soccer City"
171         Then results contain
172          | ID | class   | type    | latlon
173          | 0  | leisure | stadium | -26.2347261,27.982645 +-50m
174
175      Scenario: trac #3130
176         When sending json search query "Old Way, Frinton"
177         Then results contain
178          | ID | class   | latlon
179          | 0  | highway | 51.8324206,1.2447352 +-100m
180
181      Scenario: trac #5238
182         Given the request parameters
183          | bounded | viewbox
184          | 1       | 0,0,-1,-1
185         When sending json search query "sy"
186         Then exactly 0 results are returned
187
188     Scenario: github #190
189         When looking up place N257363453
190         Then the results contain
191          | osm_type   | osm_id     | latlon
192          | node       | 257363453  | 35.8404121,128.5586643 +-100m
193