From 58ea554d19b7593a970c36f4f90dafc1a864aa48 Mon Sep 17 00:00:00 2001 From: Jacob Ashdown Date: Tue, 22 Apr 2014 16:33:34 +0100 Subject: [PATCH] amend status route - use hyphen --- backdrop/read/api.py | 2 +- features/read_api/status.feature | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backdrop/read/api.py b/backdrop/read/api.py index 8ff499a0..fcae0a8a 100644 --- a/backdrop/read/api.py +++ b/backdrop/read/api.py @@ -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(): diff --git a/features/read_api/status.feature b/features/read_api/status.feature index c48c0713..8617ac14 100644 --- a/features/read_api/status.feature +++ b/features/read_api/status.feature @@ -6,7 +6,7 @@ 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 @@ -14,7 +14,7 @@ Feature: the read/status api | 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 @@ -22,5 +22,5 @@ Feature: the read/status api | 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"