mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
Update healthcheck page - remove travis references
Also remove travis references from the repository
This commit is contained in:
2
Makefile
2
Makefile
@@ -35,7 +35,7 @@ help:
|
||||
|
||||
.PHONY: generate-version-file
|
||||
generate-version-file: ## Generates the app version file
|
||||
@echo -e "__travis_commit__ = \"${GIT_COMMIT}\"\n__time__ = \"${DATE}\"\n__travis_job_number__ = \"${BUILD_NUMBER}\"\n__travis_job_url__ = \"${BUILD_URL}\"" > ${APP_VERSION_FILE}
|
||||
@echo -e "__git_commit__ = \"${GIT_COMMIT}\"\n__time__ = \"${DATE}\"" > ${APP_VERSION_FILE}
|
||||
|
||||
.PHONY: test
|
||||
test: generate-version-file ## Run tests
|
||||
|
||||
@@ -19,8 +19,7 @@ def show_status():
|
||||
else:
|
||||
return jsonify(
|
||||
status="ok", # This should be considered part of the public API
|
||||
travis_commit=version.__travis_commit__,
|
||||
travis_build_number=version.__travis_job_number__,
|
||||
git_commit=version.__git_commit__,
|
||||
build_time=version.__time__,
|
||||
db_version=get_db_version()), 200
|
||||
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
__travis_commit__ = ""
|
||||
__git_commit__ = ""
|
||||
__time__ = ""
|
||||
__travis_job_number__ = ""
|
||||
__travis_job_url__ = ""
|
||||
|
||||
@@ -11,8 +11,7 @@ def test_get_status_all_ok(client, notify_db_session, path):
|
||||
resp_json = json.loads(response.get_data(as_text=True))
|
||||
assert resp_json['status'] == 'ok'
|
||||
assert resp_json['db_version']
|
||||
assert resp_json['travis_commit']
|
||||
assert resp_json['travis_build_number']
|
||||
assert resp_json['git_commit']
|
||||
assert resp_json['build_time']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user