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

Removing httpclient.Client interface. #6746

Merged
merged 2 commits into from Sep 1, 2023
Merged

Conversation

absoludity
Copy link
Contributor

Description of the change

Part 1 removing the httpclient.Client interface. See #6726 for which this is needed.

Benefits

Able to write code that expects a plain http.Client.
Better tests.

Possible drawbacks

Applicable issues

Additional information

Signed-off-by: Michael Nelson <minelson@vmware.com>
@netlify
Copy link

netlify bot commented Sep 1, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 23313cc
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64f176adf56a82000801811f

Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity merged commit 9782c44 into main Sep 1, 2023
41 checks passed
@absoludity absoludity deleted the remove-httpclient-iface branch September 1, 2023 06:20
absoludity added a commit that referenced this pull request Sep 5, 2023
### Description of the change

Follows on from #6746 removing more uses of the httpclient.Client test
interface that's causing pain when adding new features, and updates
tests to use an `httptest.Server` instead of mocking the client.

### Benefits

See #6726 

Also fixes more tests that were feigning to assert that errors were
equal, but were simply asserting that an error was raised.

### Possible drawbacks

### Applicable issues

- fixes #6726

### Additional information

~~One more PR following which removes the remainder and the interface
itself.~~ (Ended up just adding to this PR).

---------

Signed-off-by: Michael Nelson <minelson@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants