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
51 When sending geocodejson reverse coordinates 53.603,10.041
53 | <parameter> | <value> |
54 Then the result is valid geocodejson
64 | polygon_geojson | 1 |
65 | polygon_geojson | 0 |
69 Scenario Outline: Wrapping of legal jsonp requests
70 When sending <format> reverse coordinates 67.3245,0.456
73 Then the result is valid <outformat>
76 | format | outformat |
81 Scenario Outline: Boundingbox is returned
82 When sending <format> reverse coordinates 14.62,108.1
85 Then result has bounding box in 9,20,102,113
94 Scenario Outline: Reverse-geocoding with zoom
95 When sending <format> reverse coordinates 53.603,10.041
98 Then exactly 1 result is returned
108 Scenario: Missing lon parameter
109 When sending reverse coordinates 52.52,
110 Then a HTTP 400 is returned
112 Scenario: Missing lat parameter
113 When sending reverse coordinates ,52.52
114 Then a HTTP 400 is returned
116 Scenario: Missing osm_id parameter
117 When sending reverse coordinates ,
120 Then a HTTP 400 is returned
122 Scenario: Missing osm_type parameter
123 When sending reverse coordinates ,
126 Then a HTTP 400 is returned
128 Scenario Outline: Bad format for lat or lon
129 When sending reverse coordinates ,
132 Then a HTTP 400 is returned
139 | 48.966.0 | 8.4482 |