2 Feature: Simple Reverse Tests
3 Simple tests for internal server errors and response format.
5 Scenario Outline: Simple reverse-geocoding
6 When sending reverse coordinates <lat>,<lon>
7 Then the result is valid xml
8 When sending xml reverse coordinates <lat>,<lon>
9 Then the result is valid xml
10 When sending json reverse coordinates <lat>,<lon>
11 Then the result is valid json
12 When sending jsonv2 reverse coordinates <lat>,<lon>
13 Then the result is valid json
14 When sending geojson reverse coordinates <lat>,<lon>
15 Then the result is valid geojson
16 When sending html reverse coordinates <lat>,<lon>
17 Then the result is valid html
26 Scenario Outline: Testing different parameters
27 When sending reverse coordinates 53.603,10.041
29 | <parameter> | <value> |
30 Then the result is valid xml
31 When sending html reverse coordinates 53.603,10.041
33 | <parameter> | <value> |
34 Then the result is valid html
35 When sending xml reverse coordinates 53.603,10.041
37 | <parameter> | <value> |
38 Then the result is valid xml
39 When sending json reverse coordinates 53.603,10.041
41 | <parameter> | <value> |
42 Then the result is valid json
43 When sending jsonv2 reverse coordinates 53.603,10.041
45 | <parameter> | <value> |
46 Then the result is valid json
47 When sending geojson reverse coordinates 53.603,10.041
49 | <parameter> | <value> |
50 Then the result is valid geojson
60 | polygon_geojson | 1 |
61 | polygon_geojson | 0 |
65 Scenario Outline: Wrapping of legal jsonp requests
66 When sending <format> reverse coordinates 67.3245,0.456
69 Then the result is valid <outformat>
72 | format | outformat |
77 Scenario Outline: Boundingbox is returned
78 When sending <format> reverse coordinates 14.62,108.1
81 Then result has bounding box in 9,20,102,113
90 Scenario Outline: Reverse-geocoding with zoom
91 When sending <format> reverse coordinates 53.603,10.041
94 Then exactly 1 result is returned
104 Scenario: Missing lon parameter
105 When sending reverse coordinates 52.52,
106 Then a HTTP 400 is returned
108 Scenario: Missing lat parameter
109 When sending reverse coordinates ,52.52
110 Then a HTTP 400 is returned
112 Scenario: Missing osm_id parameter
113 When sending reverse coordinates ,
116 Then a HTTP 400 is returned
118 Scenario: Missing osm_type parameter
119 When sending reverse coordinates ,
122 Then a HTTP 400 is returned
124 Scenario Outline: Bad format for lat or lon
125 When sending reverse coordinates ,
128 Then a HTTP 400 is returned
135 | 48.966.0 | 8.4482 |