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

Need e2e test for #912 #926

Closed
davecheney opened this issue Mar 8, 2019 · 4 comments
Closed

Need e2e test for #912 #926

davecheney opened this issue Mar 8, 2019 · 4 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@davecheney
Copy link
Contributor

#912 landed late in the 0.10 cycle without an e2e test. It would be awesome if someone could write one so we don't revert this fix in the future.

Updates #603

@davecheney davecheney added kind/feature Categorizes issue or PR as related to a new feature. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Mar 8, 2019
@davecheney davecheney added this to the 0.11.0 milestone Mar 8, 2019
@vaamarnath
Copy link
Contributor

@davecheney Shall I pick this up?

@davecheney
Copy link
Contributor Author

davecheney commented Mar 9, 2019 via email

@vaamarnath
Copy link
Contributor

vaamarnath commented Mar 9, 2019

I went through cds_test.go and from what I understand all the e2e tests makes use of cluster() helper function which doesn't set HealthChecks. As a result of which, when e2e tests exercise the code, it never hits the true case here.

My current thought process is to add another helper function which lets us create v2.Cluster object with HealthChecks. Using this, I should be able to add an e2e test that exercises the newly added code path. Does this sound reasonable to you?

@davecheney
Copy link
Contributor Author

davecheney commented Mar 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

2 participants