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 unit tests for auth feature #259

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Conversation

m-rudyk
Copy link
Collaborator

@m-rudyk m-rudyk commented Oct 23, 2023

Description

Refactor auth feature in order to cover with unit tests.
Move auth under entities folder;
Add unit tests to cover main functionality;

Fixes # (245, #242)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code cleanup/refactoring
  • Documentation update
  • This change requires a documentation update
  • CI system update
  • Test Coverage update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Below is just an example and you can delete it when you contribute.

Test Configuration:

  • Java: v11
  • LPVS Release: v1.x.x

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@m-rudyk m-rudyk self-assigned this Oct 24, 2023
@m-rudyk m-rudyk force-pushed the m.rudyk/refactor_auth branch from f557aa8 to 6a0628e Compare October 24, 2023 06:47
@m-rudyk m-rudyk marked this pull request as ready for review October 24, 2023 08:27
@m-rudyk m-rudyk force-pushed the m.rudyk/refactor_auth branch from 6a0628e to 1ecf451 Compare October 24, 2023 08:51
@@ -55,7 +56,8 @@ public enum OAuthAttributes {
this.of = of;
}

public static MemberProfile extract(String registrationId, Map<String, Object> attributes) {
public static MemberProfile
extract(String registrationId, Map<String, Object> attributes) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't seem to be a substantial change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks, good point.

Copy link
Collaborator

@v-kerimov v-kerimov left a comment

Choose a reason for hiding this comment

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

Auth part of the project's test coverage was 0% previously so this is a good addition.

Copy link
Collaborator

@o-kopysov o-kopysov left a comment

Choose a reason for hiding this comment

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

+1

@m-rudyk m-rudyk merged commit 79eb5c6 into Samsung:main Oct 24, 2023
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