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
Bug 1871170: test/e2e: add etcdctl sanity test #456
Bug 1871170: test/e2e: add etcdctl sanity test #456
Conversation
2ee7d88
to
9c0e272
Compare
/test e2e |
@hexfusion: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions 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. |
/retitle Bug 1871170: test/e2e: add etcdctl sanity test |
@hexfusion: This pull request references Bugzilla bug 1871170, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions 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'm not really persuaded of the value of introducing switch {
case err != nil && len(tc.expectedError) != 0 && !strings.Contains(string(actual), tc.expectedError):
require.NoError(t, fmt.Errorf("unexpected error: %q", actual))
} vs switch {
case err != nil && len(tc.expectedError) != 0 && !strings.Contains(string(actual), tc.expectedError):
t.Fatalf(fmt.Errorf("unexpected error: %w", actual))
} More indirection, requires learning another library, not sure what it adds. |
/retest |
I was hoping we could move to this as a standard for operator e2e. If the standard is adhered to it would give a clean pattern for future testing. Currently, I feel like we hand roll a lot of what testify provides. But I am open to other thoughts, libraries for this use. cc @marun |
I'm a big +1 for testify. It's already used in some group b operators like ckao as well as in upstream kube. It provides most of the benefits of ginkgo's helpers without incurring declarative/imperative confusion. Full benefit, though, often requires a rewrite: if len(tc.expectedError) > 0 {
require.Contains(string(actual), tc.expectedError, "expected error not reported: %q", tc.expectedError)
else {
require.NoError(t, actual)
} |
@hexfusion: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions 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. |
9c0e272
to
7040af9
Compare
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
7040af9
to
8b19b50
Compare
updated @marun PTAL |
@hexfusion: The following test failed, say
Full PR test history. Your PR dashboard. Instructions 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 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hexfusion, marun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
@hexfusion: All pull requests linked via external trackers have merged: Bugzilla bug 1871170 has been moved to the MODIFIED state. In response to this:
Instructions 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. |
let's not get bugs because we are not testing simple things. this test exposes a few bugs and should keep us honest moving forward.