]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/reverse/language.feature
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / api / reverse / language.feature
1 @SQLITE
2 @APIDB
3 Feature: Localization of reverse search results
4
5     Scenario: default language
6         When sending v1/reverse at 47.14,9.55
7         Then result addresses contain
8           | ID | country |
9           | 0  | Liechtenstein |
10
11     Scenario: accept-language parameter
12         When sending v1/reverse at 47.14,9.55
13           | accept-language |
14           | ja,en |
15         Then result addresses contain
16           | ID | country |
17           | 0  | リヒテンシュタイン |
18
19     Scenario: HTTP accept language header
20         Given the HTTP header
21           | accept-language |
22           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
23         When sending v1/reverse at 47.14,9.55
24         Then result addresses contain
25           | ID | country |
26           | 0  | Liktinstein |
27
28     Scenario: accept-language parameter and HTTP header
29         Given the HTTP header
30           | accept-language |
31           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
32         When sending v1/reverse at 47.14,9.55
33           | accept-language |
34           | en |
35         Then result addresses contain
36           | ID | country |
37           | 0  | Liechtenstein |