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 html reverse coordinates <lat>,<lon>
 
  15         Then the result is valid html
 
  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 html reverse coordinates 53.603,10.041
 
  31           | <parameter> | <value> |
 
  32         Then the result is valid html
 
  33         When sending xml reverse coordinates 53.603,10.041
 
  35           | <parameter> | <value> |
 
  36         Then the result is valid xml
 
  37         When sending json reverse coordinates 53.603,10.041
 
  39           | <parameter> | <value> |
 
  40         Then the result is valid json
 
  41         When sending jsonv2 reverse coordinates 53.603,10.041
 
  43           | <parameter> | <value> |
 
  44         Then the result is valid json
 
  54      | polygon_geojson  | 1 |
 
  55      | polygon_geojson  | 0 |
 
  59     Scenario Outline: Wrapping of legal jsonp requests
 
  60         When sending <format> reverse coordinates 67.3245,0.456
 
  63         Then the result is valid json
 
  71     Scenario Outline: Boundingbox is returned
 
  72         When sending <format> reverse coordinates 14.62,108.1
 
  75         Then result has bounding box in 9,20,102,113
 
  83     Scenario Outline: Reverse-geocoding with zoom
 
  84         When sending <format> reverse coordinates 53.603,10.041
 
  87         Then exactly 1 result is returned
 
  96     Scenario: Missing lon parameter
 
  97         When sending reverse coordinates 52.52,
 
  98         Then a HTTP 400 is returned
 
 100     Scenario: Missing lat parameter
 
 101         When sending reverse coordinates ,52.52
 
 102         Then a HTTP 400 is returned
 
 104     Scenario: Missing osm_id parameter
 
 105         When sending reverse coordinates ,
 
 108         Then a HTTP 400 is returned
 
 110     Scenario: Missing osm_type parameter
 
 111         When sending reverse coordinates ,
 
 114         Then a HTTP 400 is returned
 
 116     Scenario Outline: Bad format for lat or lon
 
 117         When sending reverse coordinates ,
 
 120         Then a HTTP 400 is returned
 
 127      | 48.966.0 | 8.4482 |