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

Part two removing test interface httpclient.Client #6756

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Sep 4, 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

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>
@netlify
Copy link

netlify bot commented Sep 4, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 31df88c
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64f55233799c050008b1e698

Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity merged commit b939493 into main Sep 5, 2023
40 of 41 checks passed
@absoludity absoludity deleted the remove-httpclient-iface-2 branch September 5, 2023 01:29
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.

Remove httpclient.Client interface
2 participants