mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 00:49:55 +03:00
18 lines
579 B
Gherkin
18 lines
579 B
Gherkin
@UNKNOWNDB
|
|
Feature: Status queries against unknown database
|
|
Testing status query
|
|
|
|
Scenario: Failed status as text
|
|
When sending text status query
|
|
Then a HTTP 500 is returned
|
|
And the page contents equals "ERROR: Database connection failed"
|
|
|
|
Scenario: Failed status as json
|
|
When sending json status query
|
|
Then a HTTP 200 is returned
|
|
And the result is valid json
|
|
And results contain
|
|
| status | message |
|
|
| 700 | Database connection failed |
|
|
And result has not attributes data_updated
|