Skip to content

PMM-14021 change access level swagger #4059

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

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

BupycHuk
Copy link
Member

PMM-14021

Link to the Feature Build: SUBMODULES-3942

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

BupycHuk added 2 commits May 28, 2025 17:50
Changed the access level for the "/swagger" endpoint from "none" to "viewer". This ensures proper visibility while maintaining security by restricting advanced permissions.
Updated the TestSwagger function in auth_test.go to replace the custom doRequest function with http.DefaultClient.Do for better error handling. Adjusted assertions to check for a 401 status code instead of 200, ensuring the tests accurately reflect the expected authentication behavior.
@BupycHuk BupycHuk requested a review from a team as a code owner May 28, 2025 15:04
@BupycHuk BupycHuk requested review from idoqo and JiriCtvrtka and removed request for a team May 28, 2025 15:04
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.60%. Comparing base (f48899c) to head (405f844).
Report is 1 commits behind head on v3.

Additional details and impacted files
@@           Coverage Diff           @@
##               v3    #4059   +/-   ##
=======================================
  Coverage   43.60%   43.60%           
=======================================
  Files         369      369           
  Lines       45225    45225           
=======================================
+ Hits        19719    19721    +2     
+ Misses      23798    23797    -1     
+ Partials     1708     1707    -1     
Flag Coverage Δ
managed 44.96% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

3 participants