mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-30 02:07:52 +03:00
d8dca2a3a9
The database must currently be created by hand and the name handed in via -DAPI_TEST_DB='sqlite:...'.
18 lines
450 B
Gherkin
18 lines
450 B
Gherkin
@SQLITE
|
|
@APIDB
|
|
Feature: Status queries
|
|
Testing status query
|
|
|
|
Scenario: Status as text
|
|
When sending status query
|
|
Then a HTTP 200 is returned
|
|
And the page contents equals "OK"
|
|
|
|
Scenario: Status as json
|
|
When sending json status query
|
|
Then the result is valid json
|
|
And results contain
|
|
| status | message |
|
|
| 0 | OK |
|
|
And result has attributes data_updated
|