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
 
  70     Scenario Outline: Boundingbox is returned
 
  71         When sending <format> reverse coordinates 14.62,108.1
 
  74         Then result has bounding box in 9,20,102,113
 
  82     Scenario Outline: Reverse-geocoding with zoom
 
  83         When sending <format> reverse coordinates 53.603,10.041
 
  86         Then exactly 1 result is returned
 
  95     Scenario: Missing lon parameter
 
  96         When sending reverse coordinates 52.52,
 
  97         Then a HTTP 400 is returned
 
  99     Scenario: Missing lat parameter
 
 100         When sending reverse coordinates ,52.52
 
 101         Then a HTTP 400 is returned
 
 103     Scenario: Missing osm_id parameter
 
 104         When sending reverse coordinates ,
 
 107         Then a HTTP 400 is returned
 
 109     Scenario: Missing osm_type parameter
 
 110         When sending reverse coordinates ,
 
 113         Then a HTTP 400 is returned
 
 115     Scenario Outline: Bad format for lat or lon
 
 116         When sending reverse coordinates ,
 
 119         Then a HTTP 400 is returned
 
 126      | 48.966.0 | 8.4482 |