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

Refactor - Use interface for rekor and fulcio #352

Conversation

naveensrinivasan
Copy link
Collaborator

  • Refactored the implementation to accept the interface instead of the
    concrete implementation within the function.

  • With this change GenerateProvenance can be tested with mocks. At the
    moment there aren't any unit tests for GenerateProvenance.

Signed-off-by: naveensrinivasan [email protected]

@naveensrinivasan
Copy link
Collaborator Author

@laurentsimon 👀

Copy link
Member

@ianlewis ianlewis left a comment

Choose a reason for hiding this comment

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

Thanks!

internal/builders/go/pkg/provenance.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@laurentsimon laurentsimon left a comment

Choose a reason for hiding this comment

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

Thanks!

@naveensrinivasan naveensrinivasan force-pushed the naveen/feat/refactor-provenancegeneration branch from 799449d to 324f41e Compare June 20, 2022 15:05
- Refactored the implementation to accept the interface instead of the
  concrete implementation within the function.

- With this change `GenerateProvenance` can be tested with mocks. At the
  moment there aren't any unit tests for `GenerateProvenance`.

Signed-off-by: naveensrinivasan <[email protected]>
@naveensrinivasan naveensrinivasan force-pushed the naveen/feat/refactor-provenancegeneration branch from 324f41e to 2fa67a9 Compare June 20, 2022 17:28
@ianlewis ianlewis enabled auto-merge (squash) June 21, 2022 03:00
@ianlewis ianlewis merged commit 78eabb2 into slsa-framework:main Jun 21, 2022
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