Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: add dockerflow callbacks for endpoint #1294

Merged
merged 1 commit into from
Oct 4, 2018
Merged

feat: add dockerflow callbacks for endpoint #1294

merged 1 commit into from
Oct 4, 2018

Conversation

jrconlin
Copy link
Member

Closes #1293


@cyclone.web.asynchronous
def get(self):
self.set_status(200)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: default's 200 so this line can be killed

from autopush.web.base import BaseWebHandler


class VersionHandler(BaseWebHandler):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's have VersionHandler call self.set_header("Content-Type", "application/json")

Also let's have both new handlers override authenticate_peer_cert to do nothing (skipping auth checks) like the handlers in web.health/memusage

@codecov-io
Copy link

codecov-io commented Sep 29, 2018

Codecov Report

Merging #1294 into master will decrease coverage by 0.17%.
The diff coverage is 74.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1294      +/-   ##
==========================================
- Coverage   99.93%   99.76%   -0.18%     
==========================================
  Files          60       61       +1     
  Lines        9831     9897      +66     
==========================================
+ Hits         9825     9874      +49     
- Misses          6       23      +17
Impacted Files Coverage Δ
autopush/http.py 100% <100%> (ø) ⬆️
autopush/web/dockerflow.py 68.96% <68.96%> (ø)
autopush/tests/test_health.py 90.9% <78.37%> (-9.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a569714...2a5e776. Read the comment docs.

@jrconlin jrconlin merged commit bf51b37 into master Oct 4, 2018
@jrconlin jrconlin deleted the feat/1293 branch October 15, 2018 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants