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

Make client.Request/RESTClient more testable and fakeable #2047

Merged

Conversation

smarterclayton
Copy link
Contributor

Will allow kubectl to be more thoroughly tested in #2000

Moves polling to a function provided by the RESTClient, not innate
to Request. Moves doRequest from RESTClient to Request for clarity.
@@ -603,6 +603,7 @@ type Status struct {
type StatusDetails struct {
// The ID attribute of the resource associated with the status StatusReason
// (when there is a single ID which can be described).
// TODO: replace with Name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only in v3

@lavalamp
Copy link
Member

LGTM, nit fixes optional.

@smarterclayton
Copy link
Contributor Author

Nits addressed and tests are green

smarterclayton added a commit that referenced this pull request Oct 29, 2014
Make client.Request/RESTClient more testable and fakeable
@smarterclayton smarterclayton merged commit 2c10dd8 into kubernetes:master Oct 29, 2014
@smarterclayton smarterclayton deleted the make_request_testable branch February 11, 2015 02:21
bertinatto pushed a commit to bertinatto/kubernetes that referenced this pull request Aug 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants