@@ -19,21 +19,35 @@ jsonpath "$[1].name" == "S+U Hauptbahnhof"
1919jsonpath "$[2].name" == "Hauptbahnhof"
2020jsonpath "$[3].name" == "Berlin Hauptbahnhof"
2121jsonpath "$[4].name" == "Berlin Südkreuz"
22- jsonpath "$[5].name" == "Südkreuz (Nord-Süd)"
23- jsonpath "$[6].name" == "Südkreuz (Ringbahn)"
24- jsonpath "$[7].name" == "Berlin-Spandau"
25- jsonpath "$[8].name" == "Spandau"
26- jsonpath "$[9].name" == "Berlin Ostbahnhof"
27- jsonpath "$[10].name" == "Ostbahnhof"
28- jsonpath "$[11].name" == "Gesundbrunnen"
29- jsonpath "$[12].name" == "Ostkreuz (Ringbahn)"
30- jsonpath "$[13].name" == "Berlin Ostkreuz (Stadtbahn-F)"
31- jsonpath "$[14].name" == "Berlin Ostkreuz (Ringbahn-F)"
32- jsonpath "$[15].name" == "Ostkreuz"
33- jsonpath "$[16].name" == "Berlin Gesundbrunnen"
34- jsonpath "$[17].name" == "Berlin Ostkreuz (Ostbahn)"
35- jsonpath "$[18].name" == "Alexanderplatz"
36- jsonpath "$[19].name" == "Berlin Alexanderplatz"
22+ jsonpath "$[5].name" == "Südkreuz (Ringbahn)"
23+ jsonpath "$[6].name" == "Südkreuz (Nord-Süd)"
24+ jsonpath "$[7].name" == "Berlin Nordost"
25+ jsonpath "$[8].name" == "Berlin Greifswalder Straße"
26+ jsonpath "$[9].name" == "Berlin-Grünau"
27+ jsonpath "$[10].name" == "Berlin-Spandau"
28+ jsonpath "$[11].name" == "Berlin-Marienfelde Gbf"
29+ jsonpath "$[12].name" == "Spandau"
30+ jsonpath "$[13].name" == "Berlin-Tempelhof"
31+ jsonpath "$[14].name" == "Berlin-Schönholz"
32+ jsonpath "$[15].name" == "Berlin Ostbahnhof"
33+ jsonpath "$[16].name" == "Ostbahnhof"
34+ jsonpath "$[17].name" == "Gesundbrunnen"
35+ jsonpath "$[18].name" == "Berlin Gesundbrunnen"
36+ jsonpath "$[19].name" == "Berlin-Neukölln"
37+
38+ # Facility request with language
39+ GET {{base_url}}/facility
40+ [QueryStringParams]
41+ name: Berlin Ostbahnhof
42+ lang: en
43+ HTTP 200
44+ Content-Type: application/json
45+ [Asserts]
46+ jsonpath "$" count == 2
47+ jsonpath "$[0].name" == "Ostbahnhof"
48+ jsonpath "$[0].localized_name" == "Ostbahnhof"
49+ jsonpath "$[1].name" == "Berlin Ostbahnhof"
50+ jsonpath "$[1].localized_name" == "Berlin Ostbahnhof railway station"
3751
3852# Facility request with limit
3953GET {{base_url}}/facility
@@ -80,11 +94,11 @@ HTTP 200
8094jsonpath "$" count == 7
8195jsonpath "$[0].name" == "Berlin-Spandau"
8296jsonpath "$[1].name" == "Spandau"
83- jsonpath "$[2].name" == "Berlin-Spandau Gbf "
84- jsonpath "$[3].name" == "Berlin-Spandau West "
85- jsonpath "$[4].name" == "Berlin-Spandau Mitte "
86- jsonpath "$[5].name" == "Berlin-Spandau Ost "
87- jsonpath "$[6].name" == "Berlin-Spandau Johannesstift "
97+ jsonpath "$[2].name" == "Berlin-Spandau Johannesstift "
98+ jsonpath "$[3].name" == "Berlin-Spandau Gbf "
99+ jsonpath "$[4].name" == "Berlin-Spandau West "
100+ jsonpath "$[5].name" == "Berlin-Spandau Mitte "
101+ jsonpath "$[6].name" == "Berlin-Spandau Ost "
88102
89103# Facility request with space
90104GET {{base_url}}/facility
@@ -95,11 +109,11 @@ HTTP 200
95109jsonpath "$" count == 7
96110jsonpath "$[0].name" == "Berlin-Spandau"
97111jsonpath "$[1].name" == "Spandau"
98- jsonpath "$[2].name" == "Berlin-Spandau Gbf "
99- jsonpath "$[3].name" == "Berlin-Spandau West "
100- jsonpath "$[4].name" == "Berlin-Spandau Mitte "
101- jsonpath "$[5].name" == "Berlin-Spandau Ost "
102- jsonpath "$[6].name" == "Berlin-Spandau Johannesstift "
112+ jsonpath "$[2].name" == "Berlin-Spandau Johannesstift "
113+ jsonpath "$[3].name" == "Berlin-Spandau Gbf "
114+ jsonpath "$[4].name" == "Berlin-Spandau West "
115+ jsonpath "$[5].name" == "Berlin-Spandau Mitte "
116+ jsonpath "$[6].name" == "Berlin-Spandau Ost "
103117
104118# Facility request for Spandau
105119GET {{base_url}}/facility
@@ -110,13 +124,13 @@ HTTP 200
110124jsonpath "$" count == 9
111125jsonpath "$[0].name" == "Berlin-Spandau"
112126jsonpath "$[1].name" == "Spandau"
113- jsonpath "$[2].name" == "Altstadt Spandau"
114- jsonpath "$[3].name" == "Rathaus Spandau"
115- jsonpath "$[4].name" == "Berlin-Spandau Gbf "
116- jsonpath "$[5].name" == "Berlin-Spandau West "
117- jsonpath "$[6].name" == "Berlin-Spandau Mitte "
118- jsonpath "$[7].name" == "Berlin-Spandau Ost "
119- jsonpath "$[8].name" == "Berlin-Spandau Johannesstift "
127+ jsonpath "$[2].name" == "Berlin- Spandau Johannesstift "
128+ jsonpath "$[3].name" == "Berlin- Spandau Gbf "
129+ jsonpath "$[4].name" == "Rathaus Spandau "
130+ jsonpath "$[5].name" == "Altstadt Spandau "
131+ jsonpath "$[6].name" == "Berlin-Spandau West "
132+ jsonpath "$[7].name" == "Berlin-Spandau Mitte "
133+ jsonpath "$[8].name" == "Berlin-Spandau Ost "
120134
121135# Facility request with with diacritics
122136GET {{base_url}}/facility
@@ -201,7 +215,7 @@ jsonpath "$" count == 3
201215jsonpath "$[0].name" == "Landsberger Allee/Petersburger Straße"
202216jsonpath "$[0].feature" == "tram_stop"
203217jsonpath "$[0].state" == "present"
204- jsonpath "$[0].rank" == 32
218+ jsonpath "$[0].rank" == 34
205219jsonpath "$[0].osm_ids" count == 4
206220jsonpath "$[0].osm_ids[0]" == 244129991
207221jsonpath "$[0].osm_ids[1]" == 271777826
0 commit comments