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
62 | polygon_geojson | 1 |
63 | polygon_geojson | 0 |
67 Scenario Outline: Wrapping of legal jsonp requests
68 When sending <format> reverse coordinates 67.3245,0.456
71 Then the result is valid <outformat>
74 | format | outformat |
79 Scenario Outline: Boundingbox is returned
80 When sending <format> reverse coordinates 14.62,108.1
83 Then result has bounding box in 9,20,102,113
92 Scenario Outline: Reverse-geocoding with zoom
93 When sending <format> reverse coordinates 53.603,10.041
96 Then exactly 1 result is returned
106 Scenario: Missing lon parameter
107 When sending reverse coordinates 52.52,
108 Then a HTTP 400 is returned
110 Scenario: Missing lat parameter
111 When sending reverse coordinates ,52.52
112 Then a HTTP 400 is returned
114 Scenario: Missing osm_id parameter
115 When sending reverse coordinates ,
118 Then a HTTP 400 is returned
120 Scenario: Missing osm_type parameter
121 When sending reverse coordinates ,
124 Then a HTTP 400 is returned
126 Scenario Outline: Bad format for lat or lon
127 When sending reverse coordinates ,
130 Then a HTTP 400 is returned
137 | 48.966.0 | 8.4482 |