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

Remove e2e boilerplate #3322

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Oct 29, 2018

What this PR does / why we need it:

This PR starts the process to remove Expect(err).ToNot(HaveOccurred()) from the test and also avoid using methods from the framework package that return an error requiring an assert after the invocation.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 29, 2018
@aledbf aledbf added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 29, 2018
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 30, 2018
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 30, 2018
@aledbf aledbf force-pushed the tests-cleanup branch 2 times, most recently from 4509340 to 646cee7 Compare October 30, 2018 01:08
@aledbf aledbf removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 30, 2018
@ElvinEfendi
Copy link
Member

/lgtm

muuch better!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 30, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, ElvinEfendi

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 5671c17 into kubernetes:master Oct 30, 2018
@aledbf aledbf deleted the tests-cleanup branch October 30, 2018 16:06
@antoineco
Copy link
Contributor

@aledbf could you please explain what makes the error assertions unnecessary?

@aledbf
Copy link
Member Author

aledbf commented Oct 30, 2018

makes the error assertions unnecessary?

Is not about the assertion itself but the lack of context using just Expect(err).ToNot(HaveOccurred()).
The assertions are there but inside the methods of itself

Also, please check kubernetes/kubernetes#34059 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants