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

Controller tests setup #495

Merged
merged 3 commits into from
Oct 19, 2022
Merged

Controller tests setup #495

merged 3 commits into from
Oct 19, 2022

Conversation

live-wire
Copy link
Contributor

@live-wire live-wire commented Oct 19, 2022

Currently, we don't have any controller tests.
To add more functionality(more CRDs?) safely, we should have a framework for adding FlinkCluster lifecycle tests.

  • Use explicit envtest versions
  • Test to check if JobManager StatefulSet exists on new FlinkCluster creation

Expect(err).ToNot(HaveOccurred())
timeout := 30 * time.Second
poll := 5 * time.Second
Eventually(func() error {
Copy link
Contributor Author

@live-wire live-wire Oct 19, 2022

Choose a reason for hiding this comment

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

kube-apiserver can take some time to be terminated when the test suite is being terminated.
(Known issue)

Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@regadas regadas left a comment

Choose a reason for hiding this comment

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

ok this seems like a starting point 😄

@regadas regadas merged commit 818b5f9 into master Oct 19, 2022
@regadas regadas deleted the live-wire/tests branch October 19, 2022 15:17
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