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

end-to-end tests for #167 #170

Merged
merged 4 commits into from
Dec 15, 2021
Merged

end-to-end tests for #167 #170

merged 4 commits into from
Dec 15, 2021

Conversation

tanmaykm
Copy link
Member

@tanmaykm tanmaykm commented Dec 14, 2021

This adds end-to-end tests for the changes introduced in #167.

Verbose mode is switched off for these tests, but switching it on would show that not setting content-length headers results in chunked transfer encoding while setting it prevents that. Both tests should pass.

fixes #169

@codecov
Copy link

codecov bot commented Dec 14, 2021

Codecov Report

Merging #170 (4e0408a) into master (ab628ab) will increase coverage by 1.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #170      +/-   ##
==========================================
+ Coverage   91.29%   92.47%   +1.17%     
==========================================
  Files           5        5              
  Lines         494      518      +24     
==========================================
+ Hits          451      479      +28     
+ Misses         43       39       -4     
Impacted Files Coverage Δ
src/Curl/Curl.jl 100.00% <ø> (ø)
src/Curl/Easy.jl 95.76% <100.00%> (+1.25%) ⬆️
src/Downloads.jl 85.45% <100.00%> (+1.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab628ab...4e0408a. Read the comment docs.

@StefanKarpinski
Copy link
Sponsor Member

Right, so this is good for coverage since now we're hitting all the code paths, but what I'd ideally like is a way to tell from the response whether the request was chunked or not. I was poking around the response headers from httpbingo yesterday but didn't find a way to tell this.

StefanKarpinski and others added 4 commits December 14, 2021 12:09
These only add one callback so having them be plural is weird.
This adds end-to-end tests for the changes introduced in #167.

Verbose mode is switched off for these tests, but switching it on would show that not setting content-length headers results in chunked transfer encoding while setting it prevents that. Both tests should pass.
This combines the functionality from the previous two commits to not
only trigger both chunked and non-chunked uploads, but also test for
that difference by capturing and inspecting the debug events.
@StefanKarpinski StefanKarpinski merged commit c445f45 into master Dec 15, 2021
@StefanKarpinski StefanKarpinski deleted the tan/chunkedtransfer branch December 15, 2021 03:11
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.

end-to-end testing for #167
2 participants