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 remoterootsync controller #3860

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

natasha41575
Copy link
Contributor

@natasha41575 natasha41575 commented Mar 3, 2023

This PR addresses part of of #3856

The bulk of the business logic in the RemoteRootSync reconciler looks like is in the patchRootSync function, so this PR adds unit tests for patchRootSync using a fake kubernetes dynamic client.

A note on sequencing, this has some conflicts with #3857 and #3850. Whichever PRs are merged last should (a) address the conflicts and (b) should ensure that unit tests for supporting RepoSync are also added here.

I plan to add unit tests for Rollouts controller separately.

@natasha41575 natasha41575 requested a review from a team as a code owner March 3, 2023 21:40
@natasha41575 natasha41575 merged commit a6f1175 into kptdev:main Mar 8, 2023
@natasha41575 natasha41575 deleted the rollouts/rrstest branch March 8, 2023 02:29
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.

None yet

2 participants