-
Notifications
You must be signed in to change notification settings - Fork 231
fix feature gate #293
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
fix feature gate #293
Conversation
|
/lgtm |
|
/test e2e-aws |
| return false | ||
| } | ||
|
|
||
| func TestOperatorSyncClusterAPIControllerHealthCheckControllerNotDeployed(t *testing.T) { |
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.
I put the tests under two separete functions so it's obvious which case is tested. Though, if you feel it's better this way, I am fine with that.
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.
table driven tests is the recommended approach i guess, https://github.com/golang/go/wiki/TableDrivenTests
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.
I find that it depends. Quite often table driven tests end up adding complexity and sometimes I find it easier to do:
func TestFooDoesX
func TestFooErrorsWithBar
func TestFooSucceedsWithKnownInputs|
/lgtm |
|
/test integration |
1 similar comment
|
/test integration |
| verbs: | ||
| - get | ||
|
|
||
| - apiGroups: |
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.
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.
Addressed in #295
|
Blocked by #295 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| apiVersion: | ||
| description: 'APIVersion defines the versioned schema of this representation | ||
| of an object. Servers should convert recognized schemas to the latest | ||
| internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' |
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.
s/value, and/value and
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.
I copy-pasted the CRD, cant' fix that.
| return false | ||
| } | ||
|
|
||
| func TestOperatorSyncClusterAPIControllerHealthCheckControllerNotDeployed(t *testing.T) { |
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.
table driven tests is the recommended approach i guess, https://github.com/golang/go/wiki/TableDrivenTests
81ed78d to
d2f3509
Compare
d2f3509 to
1f46dde
Compare
|
@enxebre: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
Follow up for #291 which left machine health check enable by default https://github.com/openshift/machine-api-operator/pull/291/files#diff-554de5523753fda8c93e7008c9bd947fR229