1 Feature: Simple Reverse Tests
2 Simple tests for internal server errors and response format.
3 These tests should pass on any Nominatim installation.
5 Scenario Outline: Simple reverse-geocoding
6 When looking up xml coordinates <lat>,<lon>
7 Then the result is valid xml
8 When looking up json coordinates <lat>,<lon>
9 Then the result is valid json
10 When looking up jsonv2 coordinates <lat>,<lon>
11 Then the result is valid json
20 Scenario Outline: Testing different parameters
21 Given the request parameters
24 When sending search query "Manchester"
25 Then the result is valid html
26 Given the request parameters
29 When sending html search query "Manchester"
30 Then the result is valid html
31 Given the request parameters
34 When sending xml search query "Manchester"
35 Then the result is valid xml
36 Given the request parameters
39 When sending json search query "Manchester"
40 Then the result is valid json
41 Given the request parameters
44 When sending jsonv2 search query "Manchester"
45 Then the result is valid json
63 Scenario Outline: Wrapping of legal jsonp requests
64 Given the request parameters
67 When looking up <format> coordinates 67.3245,0.456
68 Then the result is valid json
75 Scenario: Reverse-geocoding without address
76 Given the request parameters
79 When looking up xml coordinates 36.791966,127.171726
80 Then the result is valid xml
81 When looking up json coordinates 36.791966,127.171726
82 Then the result is valid json
83 When looking up jsonv2 coordinates 36.791966,127.171726
84 Then the result is valid json
86 Scenario: Reverse-geocoding with zoom
87 Given the request parameters
90 When looking up xml coordinates 36.791966,127.171726
91 Then the result is valid xml
92 When looking up json coordinates 36.791966,127.171726
93 Then the result is valid json
94 When looking up jsonv2 coordinates 36.791966,127.171726
95 Then the result is valid json
97 Scenario: Missing lon parameter
98 Given the request parameters
101 When sending an API call reverse
102 Then a HTTP 400 is returned
104 Scenario: Missing lat parameter
105 Given the request parameters
108 When sending an API call reverse
109 Then a HTTP 400 is returned
111 Scenario: Missing osm_id parameter
112 Given the request parameters
115 When sending an API call reverse
116 Then a HTTP 400 is returned
118 Scenario: Missing osm_type parameter
119 Given the request parameters
122 When sending an API call reverse
123 Then a HTTP 400 is returned
125 Scenario Outline: Bad format for lat or lon
126 Given the request parameters
129 When sending an API call reverse
130 Then a HTTP 400 is returned