Skip to content

Extra tests for the Watcher classes #178

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

Merged
merged 1 commit into from
Jun 25, 2018
Merged

Extra tests for the Watcher classes #178

merged 1 commit into from
Jun 25, 2018

Conversation

qmfrederik
Copy link
Contributor

This PR adds two new tests

  • WatchEventsWithTimeout, which mimics WatchEvents but adds a delay of 120 seconds between 2 watch events. The default timeout of the HttpClient is 100 seconds, and this test servers to make sure the HttpClient doesn't choke on the 2 minutes without any events
  • DirectWatchAllEvents which is similar to WatchAllEvents, but directly uses the Kubernetes.Watch* API
  • DirectWatchAllEventsWithTimeout which mimics a scenario in which you initiate a watch, but no events are sent in the first 100 seconds. In this scenario, the client times out. The test is disabled because this bug has not been fixed (see Watchers time out after 100 seconds #165).

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 22, 2018
@brendandburns
Copy link
Contributor

LGTM, thank you!

@brendandburns brendandburns merged commit de916f6 into kubernetes-client:master Jun 25, 2018
JonJam pushed a commit to JonJam/csharp that referenced this pull request Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants