]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/details/simple.feature
allow nginx to serve files without php extensions
[nominatim.git] / test / bdd / api / details / simple.feature
1 @APIDB
2 Feature: Object details
3     Check details page for correctness
4
5     Scenario Outline: Details via OSM id
6         When sending <format> details query for <object>
7         Then the result is valid <format>
8
9     Examples:
10      | format | object |
11      | html | 492887 |
12      | json | 492887 |
13      | html | N4267356889 |
14      | json | N4267356889 |
15      | html | W230804120 |
16      | json | W230804120 |
17      | html | R123924 |
18      | json | R123924 |
19
20     Scenario Outline: Details via unknown OSM id
21         When sending <format> details query for <object>
22         Then a HTTP 400 is returned
23
24     Examples:
25       | format | object |
26       | html | 1 |
27       | json | 1 |
28       | html | R1 |
29       | json | R1 |
30
31     Scenario: Details with keywords
32         When sending details query for W78099902
33             | keywords |
34             | 1 |
35         Then the result is valid html
36