Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Enable ClientAndServer_OneOrBothUseDefault_Ok test #26463

Merged
merged 3 commits into from
Jan 20, 2018

Conversation

pjanotti
Copy link
Contributor

Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.

Fixes #7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)

Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.

Fixes #7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)
if (PlatformDetection.IsWindows && PlatformDetection.WindowsVersion >= 10)
try
{
await Task.WhenAll(tasks);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use Task.WhenAllOrAnyFailedWithTimeout, so that the tests don't hang and timeout with networking test timeout limit..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I wasn't aware that such extension method had been added to TestConfiguration for the Security tests. Thanks.

Copy link
Contributor

@Priya91 Priya91 left a comment

Choose a reason for hiding this comment

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

LGTM

Paulo Janotti added 2 commits January 19, 2018 15:37
On Windows 7 only Tls is supported OOB, so only few test cases can
actually pass. Others fail with:

```System.Security.Authentication.AuthenticationException : A call to SSPI
failed, see inner exception.
---- System.ComponentModel.Win32Exception : The client and server cannot
communicate, because they do not possess a common algorithm```
@pjanotti pjanotti merged commit 9f858d0 into dotnet:master Jan 20, 2018
@karelz karelz added this to the 2.1.0 milestone Jan 20, 2018
@pjanotti pjanotti deleted the net.security.7812 branch February 6, 2018 23:14
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Enable ClientAndServer_OneOrBothUseDefault_Ok test

Protected against error in old versions of Windows and updated assert to
include the case when hash algorithm can be Sha1.

Fixes dotnet/corefx#7812 (actual fix done on Windows, just re-enabling affected tests
with proper guard)

* Waiting for tasks w/ test cfg wrapper

* Skip test on Windows 7

On Windows 7 only Tls is supported OOB, so only few test cases can
actually pass. Others fail with:

```
System.Security.Authentication.AuthenticationException : A call to SSPI
failed, see inner exception.
---- System.ComponentModel.Win32Exception : The client and server cannot
communicate, because they do not possess a common algorithm
```


Commit migrated from dotnet/corefx@9f858d0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WinHttp buffer supplied to the function was too small error should not be exposed
3 participants