mindersec / minder

Software Supply Chain Security Platform
https://minder-docs.stacklok.dev/
Apache License 2.0
290 stars 41 forks source link

Additional test coverage and refactoring needed in ProfileService #2656

Open dmjb opened 8 months ago

dmjb commented 8 months ago

Please describe the enhancement

Profile Create/Update was moved to a separate interface as part of this PR: https://github.com/stacklok/minder/pull/2653

There is a significant amount of logic in these two methods, and I decided to defer writing new tests for these methods.

Solution Proposal

Write a test suite for these two methods. Further refactoring may be necessary.

Describe alternatives you've considered

No response

Additional context

No response

Acceptance Criteria

No response

eleftherias commented 1 month ago

Hey @gajananan, you mentioned you were interested in this issue, shall I assign it to you?

gajananan commented 1 month ago

hi @eleftherias yes, please. (I am sorry for late response)

gajananan commented 1 month ago

hi @dmjb

Could you share your suggestions on additional test cases. I thought of the followings.

Additional Test cases for CreateProfile Method: