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

Spec support for faking etcd TTLs #2

Closed
SpComb opened this issue Dec 22, 2016 · 1 comment
Closed

Spec support for faking etcd TTLs #2

SpComb opened this issue Dec 22, 2016 · 1 comment

Comments

@SpComb
Copy link
Contributor

SpComb commented Dec 22, 2016

Testing the behaviour of things like Kontena::Etcd::Writer which use etcd TTLs needs support for faking TTL expirty. For example, refresh should raise an exception if any nodes have expired before the refresh cycle kicks in.

Implementing this in the tests against a real ETCD_ENDPOINT=... would require support from the etcd server... however, we could feasibly implemenet support for faking etcd TTL expiry in the Kontena::Etcd::Test::FakeServer.

@SpComb
Copy link
Contributor Author

SpComb commented Jan 2, 2017

Implemented for the Kontena::Etcd::Test::FakeServer in 04b27db

@SpComb SpComb closed this as completed Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant