Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pycturator should allow disabling specifc endpoints #105

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

michaelyaakoby
Copy link
Member

In order to disable pyctuator endpoints such as /pyctuator/httptraces, pyctuator now can be initialized with flags selecting endpoints that shouldn't be registered in SBA and should fail if queried (GET) directly.

Fixes #92

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bb04e43) 95.27% compared to head (73c9b4d) 95.36%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   95.27%   95.36%   +0.09%     
==========================================
  Files          29       30       +1     
  Lines        1184     1208      +24     
==========================================
+ Hits         1128     1152      +24     
  Misses         56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michaelyaakoby michaelyaakoby force-pushed the michael/disable-endpoints branch 7 times, most recently from 1fd5f99 to 86cc438 Compare January 16, 2024 14:24
In order to disable pyctuator endpoints such as `/pyctuator/httptraces`, pyctuator now
can be initialized with flags selecting endpoints that shouldn't be registered in SBA and
should fail if queried (GET) directly.

Fixes #92
@michaelyaakoby michaelyaakoby marked this pull request as ready for review January 16, 2024 23:12
@michaelyaakoby michaelyaakoby self-assigned this Jan 16, 2024
@michaelyaakoby michaelyaakoby merged commit 5f2439a into master Jan 16, 2024
2 checks passed
@michaelyaakoby michaelyaakoby deleted the michael/disable-endpoints branch January 16, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to exclude endpoints?
2 participants