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
24 Scenario Outline: Testing different parameters
25 When sending reverse coordinates 53.603,10.041
27 | <parameter> | <value> |
28 Then the result is valid xml
29 When sending xml reverse coordinates 53.603,10.041
31 | <parameter> | <value> |
32 Then the result is valid xml
33 When sending json reverse coordinates 53.603,10.041
35 | <parameter> | <value> |
36 Then the result is valid json
37 When sending jsonv2 reverse coordinates 53.603,10.041
39 | <parameter> | <value> |
40 Then the result is valid json
41 When sending geojson reverse coordinates 53.603,10.041
43 | <parameter> | <value> |
44 Then the result is valid geojson
45 When sending geocodejson reverse coordinates 53.603,10.041
47 | <parameter> | <value> |
48 Then the result is valid geocodejson
56 | polygon_geojson | 1 |
57 | polygon_geojson | 0 |
61 Scenario Outline: Wrapping of legal jsonp requests
62 When sending <format> reverse coordinates 67.3245,0.456
65 Then the result is valid <outformat>
68 | format | outformat |
73 Scenario Outline: Boundingbox is returned
74 When sending <format> reverse coordinates 47.11,9.57
77 Then result has bounding box in 47,48,9,10
86 Scenario Outline: Reverse-geocoding with zoom
87 When sending <format> reverse coordinates 47.11,9.57
90 Then exactly 1 result is returned
99 Scenario: Missing lon parameter
100 When sending reverse coordinates 52.52,
101 Then a HTTP 400 is returned
103 Scenario: Missing lat parameter
104 When sending reverse coordinates ,52.52
105 Then a HTTP 400 is returned
107 Scenario: Missing osm_id parameter
108 When sending reverse coordinates ,
111 Then a HTTP 400 is returned
113 Scenario: Missing osm_type parameter
114 When sending reverse coordinates ,
117 Then a HTTP 400 is returned
119 Scenario Outline: Bad format for lat or lon
120 When sending reverse coordinates ,
123 Then a HTTP 400 is returned
130 | 48.966.0 | 8.4482 |
135 Scenario: Reverse Debug output returns no errors
136 When sending debug reverse coordinates 47.11,9.57
137 Then a HTTP 200 is returned