1 Feature: Object details
2 Check details page for correctness
4 Scenario Outline: Details request with OSM id
5 When sending v1/details
8 Then a HTTP 200 is returned
9 And the result is valid json
10 And the result contains
20 Scenario Outline: Details request with different class types for the same OSM id
21 When sending v1/details
22 | osmtype | osmid | class |
23 | N | 300209696 | <class> |
24 Then a HTTP 200 is returned
25 And the result is valid json
26 And the result contains
27 | osm_type | osm_id | category |
28 | N | 300209696 | <class> |
35 Scenario: Details request without osmtype
36 When sending v1/details
39 Then a HTTP 400 is returned
40 And the result is valid json
42 Scenario: Details request with unknown OSM id
43 When sending v1/details
46 Then a HTTP 404 is returned
47 And the result is valid json
49 Scenario: Details request with unknown class
50 When sending v1/details
51 | osmtype | osmid | class |
52 | N | 300209696 | highway |
53 Then a HTTP 404 is returned
54 And the result is valid json
56 Scenario: Details for interpolation way return the interpolation
57 When sending v1/details
60 Then a HTTP 200 is returned
61 And the result is valid json
62 And the result contains
63 | category | type | osm_type | osm_id | admin_level |
64 | place | houses | W | 1 | 15 |
68 Scenario: Details for interpolation way return the interpolation
69 When sending details query for 112871
70 Then the result is valid json
71 And the result contains
72 | category | type | admin_level |
73 | place | houses | 15 |
74 And result has not attributes osm_type,osm_id
78 Scenario: Details for postcode
79 When sending details query for 112820
80 Then the result is valid json
81 And the result contains
82 | category | type | admin_level |
83 | place | postcode | 15 |
84 And result has not attributes osm_type,osm_id
87 Scenario Outline: Details debug output returns no errors
88 When sending v1/details
89 | osmtype | osmid | debug |
91 Then a HTTP 200 is returned
92 And the result is valid html