Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
amend status route - use hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbashdown committed Apr 22, 2014
1 parent b0c102a commit 58ea554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backdrop/read/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def health_check():
return jsonify(status='ok', message='database is up')


@app.route('/_status/data_sets', methods=['GET'])
@app.route('/_status/data-sets', methods=['GET'])
@cache_control.nocache
def data_set_health():

Expand Down
6 changes: 3 additions & 3 deletions features/read_api/status.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ Feature: the read/status api
| key | value |
| max_age_expected | 60 |
and I have a record updated "10 seconds" ago in the "recent" data_set
when I go to "/_status/data_sets"
when I go to "/_status/data-sets"
then I should get back a status of "200"

Scenario: checking an out-of-date data_set
Given I have a data_set named "recent" with settings
| key | value |
| max_age_expected | 1 |
and I have a record updated "10 seconds" ago in the "recent" data_set
when I go to "/_status/data_sets"
when I go to "/_status/data-sets"
then I should get back a status of "500"

Scenario: checking a data_set with no max age expected
Given I have a data_set named "recent" with settings
| key | value |
| max_age_expected | None |
and I have a record updated "10 seconds" ago in the "recent" data_set
when I go to "/_status/data_sets"
when I go to "/_status/data-sets"
then I should get back a status of "200"

0 comments on commit 58ea554

Please sign in to comment.