Skip to content

test: improve auth test coverage #1024

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 14 commits into
base: main
Choose a base branch
from

Conversation

jescalada
Copy link
Contributor

Builds on top of #963, to improve test coverage for auth methods.

Copy link

netlify bot commented May 23, 2025

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 4d742f6
🔍 Latest deploy log https://app.netlify.com/projects/endearing-brigadeiros-63f9d0/deploys/6853b40f377e330008aad61b

Copy link

codecov bot commented May 23, 2025

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.62%. Comparing base (d13686d) to head (4d742f6).

Files with missing lines Patch % Lines
src/service/passport/activeDirectory.js 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1024      +/-   ##
==========================================
+ Coverage   69.51%   71.62%   +2.11%     
==========================================
  Files          54       54              
  Lines        2227     2224       -3     
  Branches      248      248              
==========================================
+ Hits         1548     1593      +45     
+ Misses        648      600      -48     
  Partials       31       31              

☔ 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.

jescalada added 4 commits May 23, 2025 12:42
The getUser function on git-push.js (which used the api/auth/success endpoint) was exported but not used anywhere else
@jescalada jescalada marked this pull request as ready for review May 26, 2025 14:59
@JamieSlome
Copy link
Member

@jescalada - can you look at the merge conflict here? This was a change by @06kellyjac I believe 🤝

@JamieSlome JamieSlome requested a review from 06kellyjac June 17, 2025 12:17
jescalada and others added 2 commits June 19, 2025 03:32
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
@jescalada
Copy link
Contributor Author

@JamieSlome This should be ready to go! Just had a minor issue with a test failing due to changes in error handling in the AD auth file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Testing]: Improve test coverage for OIDC and authentication changes
2 participants