]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/api/status/failures.feature
release 5.1.0.post12
[nominatim.git] / test / bdd / features / api / status / failures.feature
1 Feature: Status queries against unknown database
2     Testing status query
3
4     Background:
5         Given an unknown database
6
7     Scenario: Failed status as text
8         When sending v1/status
9         Then a HTTP 500 is returned
10         And the page content equals "ERROR: Database connection failed"
11
12     Scenario: Failed status as json
13         When sending v1/status with format json
14         Then a HTTP 200 is returned
15         And the result is valid json
16         And the result contains
17           | status!:d | message |
18           | 700       | Database connection failed |
19         And the result has no attributes data_updated