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

[pull] master from spinnaker:master #60

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Conversation

pull[bot]
Copy link

@pull pull bot commented Feb 27, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

* refactor(OAuth2): groovy to java conversion for OAuth module

Validated and tested using google and github OAuth.

* Add specific imports and remove *

* Remove DefaultGroovyMethods

* Add StructuredArguments.entries

* Rename safeGet to toStringOrNull. toStringOrNull returns null when the input is null. Add javadoc

* Replace details.getOrDefault with Optional to handle null cases

* Add log statement from groovy code

* Use AssertJ

* First checks log.isDebugEnabled() to avoid unnecessary String concatenation

* Add non empty string check

* Add test for SpinnakerUserInfoTokenServices#isServiceAccount

* Refactor SpinnakerUserInfoTokenServices to use constructor injection

- Replaced member injection with constructor injection
- Improved encapsulation by removing direct member access
- Updated tests to pass dependencies via constructor

* Preserve method call verifications in tests

* Refactor to use constructor injection

- Removed  annotations from individual members
- Added  to the all-args constructor
- Removed no-arg constructor to enforce dependency injection
- Improved clarity and testability of the class

* Add specific imports and remove *

* Move SpinnakerProviderTokenServices to constructor argument and make it optional using Optional<SpinnakerProviderTokenServices>
@pull pull bot added the ⤵️ pull label Feb 27, 2025
@pull pull bot merged commit 381f554 into KathrynLewis:master Feb 27, 2025
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.

1 participant