dotnet / dotnet/aspnetcore

[Helix] Cert tests fail with user interaction on OSX

Open
#6,720 6 comments 0 reactions 0 assignees View on GitHub
affected-few area-dataprotection severity-minor task test-failure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

DataProtection/Extensions/test/DataProtectionProviderTests.cs System_UsesProvidedDirectoryAndCertificate fails only on OSX queue

```
[xUnit.net 00:00:01.28] Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate [FAIL]
Failed Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate
Error Message:
Interop+AppleCrypto+AppleCommonCryptoCryptographicException : write permissions error
Stack Trace:
at Interop.AppleCrypto.X509StoreAddCertificate(SafeKeychainItemHandle certOrIdentity, SafeKeychainHandle keychain)
at Internal.Cryptography.Pal.StorePal.AppleKeychainStore.Add(ICertificatePal cert)
at System.Security.Cryptography.X509Certificates.X509Store.Add(X509Certificate2 certificate)
at Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate() in /_/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs:line 124
[xUnit.net 00:00:01.58] Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedDirectory_WithConfigurationCallback [SKIP]
Skipped Microsoft.AspNetCore.DataProtection.DataProtectionProviderTests.System_UsesProvidedDirectory_WithConfigurationCallback
Results File: /Users/dotnet-bot/dotnetbuild/work/e46143d4-88da-42ae-96d7-42513595330a/Work/45b5d399-ffd0-4a6b-ab73-3fce0571cf50/Exec/TestResults/_dci-mac-build-083_2019-01-15_01_40_03.trx
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.