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

Add specs for OmniAuth::Strategies #1318

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

MrSerth
Copy link
Member

@MrSerth MrSerth commented Mar 25, 2024

So far, the SAML strategies included in the application still lacked some test coverage. With this PR, I am improving the test coverage.

Please note that this branch already includes the changes of #1316.

@MrSerth MrSerth requested a review from kkoehn March 25, 2024 18:50
@MrSerth MrSerth self-assigned this Mar 25, 2024
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.98%. Comparing base (fb0a66e) to head (092f634).

Additional details and impacted files
@@                Coverage Diff                @@
##           omniauth_link    #1318      +/-   ##
=================================================
+ Coverage          88.80%   91.98%   +3.18%     
=================================================
  Files                100      100              
  Lines               2376     2358      -18     
=================================================
+ Hits                2110     2169      +59     
+ Misses               266      189      -77     

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

Copy link
Collaborator

@kkoehn kkoehn left a comment

Choose a reason for hiding this comment

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

Nice additions to the test-suite!
I added a few notes for the abstract_saml_spec

spec/lib/omni_auth/strategies/abstract_saml_spec.rb Outdated Show resolved Hide resolved
spec/lib/omni_auth/strategies/abstract_saml_spec.rb Outdated Show resolved Hide resolved
@kkoehn kkoehn merged commit 34dccad into omniauth_link Apr 2, 2024
7 checks passed
@kkoehn kkoehn deleted the specs_saml_strategies branch April 2, 2024 18:39
MrSerth added a commit that referenced this pull request Apr 2, 2024
MrSerth added a commit that referenced this pull request Apr 2, 2024
kkoehn pushed a commit that referenced this pull request Apr 2, 2024
* Allow adding and removing OmniAuth account links

* Allow OmniAuth users to perform changes to their account

In order to allow changes, we disable the password requirement for those users. As soon as a password is set for OmniAuth users, the regular workflow requiring the current password is restored.

* Prevent deletion of last OmniAuth identity

* Add specs for OmniAuth::Strategies (#1318)
Melhaya pushed a commit that referenced this pull request Apr 12, 2024
* Allow adding and removing OmniAuth account links

* Allow OmniAuth users to perform changes to their account

In order to allow changes, we disable the password requirement for those users. As soon as a password is set for OmniAuth users, the regular workflow requiring the current password is restored.

* Prevent deletion of last OmniAuth identity

* Add specs for OmniAuth::Strategies (#1318)
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.

2 participants