-
Notifications
You must be signed in to change notification settings - Fork 62
operator_controller_test: ensure we cleanup after each spec #257
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
operator_controller_test: ensure we cleanup after each spec #257
Conversation
3c1cff4
to
623d98b
Compare
Signed-off-by: Joe Lanford <[email protected]>
623d98b
to
adcb836
Compare
@@ -665,51 +659,6 @@ var _ = Describe("Operator Controller Test", func() { | |||
Expect(cond.Message).To(Equal("installation has not been attempted as resolution failed")) | |||
}) | |||
}) | |||
When("the existing operator status is based on bundleDeployment", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of #134, this block no longer has any specs in it. So it is unused. Therefore removing it.
Expect(err).To(Not(HaveOccurred())) | ||
}) | ||
}) | ||
When("an invalid semver is provided that bypasses the regex validation", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this block into the When("the operator exists")
so that it also passes through the verifyInvariants
check that we apply to operators after calling Reconcile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question, but this looks good to me overall
Description
I was reviewing #251 and noticed that there were leftover items in the envtest etcd after several operator_controller_test specs completed.
This PR:
Reviewer Checklist