]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/api/reverse/language.feature
release 5.1.0.post5
[nominatim.git] / test / bdd / features / api / reverse / language.feature
1 Feature: Localization of reverse search results
2
3     Scenario: Reverse - default language
4         When sending v1/reverse with format jsonv2
5           | lat   | lon  |
6           | 47.14 | 9.55 |
7         Then a HTTP 200 is returned
8         And the result is valid json
9         And the result contains
10           | address+country |
11           | Liechtenstein |
12
13     Scenario: Reverse - accept-language parameter
14         When sending v1/reverse with format jsonv2
15           | lat   | lon  | accept-language |
16           | 47.14 | 9.55 | ja,en |
17         Then a HTTP 200 is returned
18         And the result is valid json
19         And the result contains
20           | address+country |
21           | リヒテンシュタイン |
22
23     Scenario: Reverse - HTTP accept language header
24         Given the HTTP header
25           | accept-language |
26           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
27         When sending v1/reverse with format jsonv2
28           | lat   | lon  |
29           | 47.14 | 9.55 |
30         Then a HTTP 200 is returned
31         And the result is valid json
32         And the result contains
33           | address+country |
34           | Liktinstein |
35
36     Scenario: Reverse - accept-language parameter and HTTP header
37         Given the HTTP header
38           | accept-language |
39           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
40         When sending v1/reverse with format jsonv2
41           | lat   | lon  | accept-language |
42           | 47.14 | 9.55 | en |
43         Then a HTTP 200 is returned
44         And the result is valid json
45         And the result contains
46           | address+country |
47           | Liechtenstein |