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

test: migrate envtests to komega #116

Merged
merged 1 commit into from
Jan 18, 2024
Merged

test: migrate envtests to komega #116

merged 1 commit into from
Jan 18, 2024

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Jan 6, 2024

This introduces komega from controller-runtime envtest framework. IMO it makes the test more readable and test-code shorter. Also standardizing on the Ginkgo pattern to use Expect(<func>).Should(Succeed()) when the K8s client operation is supposed to success without error. It just makes things a bit more compact.

I hope you like this, and that the PR is reviewable. It is a bit large in the number of changes, but I have attempted to change things in a way that doesn't clutter the diff.

This PR is mainly motivated by planned test improvements in #112.

@erikgb erikgb marked this pull request as ready for review January 7, 2024 00:58
@yamatcha yamatcha self-requested a review January 11, 2024 07:22
@yamatcha yamatcha merged commit a1e6de0 into cybozu-go:main Jan 18, 2024
7 checks passed
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.

2 participants