Skip to content

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jun 9, 2021

On WASM platform existing POST/PUT tests are blocked by current lack of crypto in WASM.
By skipping content checksum validation in the tests for Browser, we could enable about 130 tests of other HTTP features.

@pavelsavara pavelsavara requested review from ManickaP and radical June 9, 2021 10:10
@ghost ghost added the area-System.Net.Http label Jun 9, 2021
@ghost
Copy link

ghost commented Jun 9, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

On WASM platform POST/PUT tests are blocked by current lack of crypto in WASM.
By skipping content checksum validation for Browser, we could enable about 130 tests of other HTTP features.

Author: pavelsavara
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@pavelsavara pavelsavara added the arch-wasm WebAssembly architecture label Jun 9, 2021
@ghost
Copy link

ghost commented Jun 9, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

On WASM platform POST/PUT tests are blocked by current lack of crypto in WASM.
By skipping content checksum validation for Browser, we could enable about 130 tests of other HTTP features.

Author: pavelsavara
Assignees: -
Labels:

arch-wasm, area-System.Net.Http

Milestone: -

@pavelsavara pavelsavara force-pushed the pr_wasm_network_test_avoid_crypto branch from 4d4915e to 939e7cf Compare June 9, 2021 16:21
Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@radical radical left a comment

Choose a reason for hiding this comment

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

Looks good, just a couple of comments.

@pavelsavara pavelsavara merged commit 2e2d1fb into dotnet:main Jun 10, 2021
// Repeat call.
content = new StringContent(data, Encoding.UTF8);
content.Headers.ContentMD5 = TestHelper.ComputeMD5Hash(data);
if (PlatformDetection.IsBrowser)
Copy link

Choose a reason for hiding this comment

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

Should you have this extracted to a method to reduce copy&paste? :-)

@ghost ghost locked as resolved and limited conversation to collaborators Jul 11, 2021
@karelz karelz added this to the 6.0.0 milestone Jul 15, 2021
@pavelsavara pavelsavara deleted the pr_wasm_network_test_avoid_crypto branch July 29, 2021 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-System.Net.Http

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants