diff options
author | Santiago Fernandez Madero <safern@microsoft.com> | 2018-04-05 01:26:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 01:26:23 +0300 |
commit | 5d669ef9823a20ec589fc3b7d47a7f5aa1070893 (patch) | |
tree | b17511af7b554abd92a2b9e04275d0170f629494 /src | |
parent | 8d2f167da549322f0ed41b5fafa5c735aaf7d62e (diff) |
Update netfx queues to use rs3 machines with .net471 installed (#28572)
* Update netfx queues to use rs3 machines with .net471 installed
* Use Open queue for CI runs
* Official build netfx queues to RS2 to match CI runs
* Disable BinaryFormatterTests.ValidateAgainstBlobs for NETFX
* Fix RSA EncrypDecrypt test for netfx
Diffstat (limited to 'src')
-rw-r--r-- | src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs | 14 | ||||
-rw-r--r-- | src/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs | 1 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs b/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs index ecc0622b34..391d34e77b 100644 --- a/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs +++ b/src/Common/tests/System/Security/Cryptography/AlgorithmImplementations/RSA/EncryptDecrypt.cs @@ -501,8 +501,11 @@ namespace System.Security.Cryptography.Rsa.Tests byte[] encrypted = Encrypt(rsa, data, RSAEncryptionPadding.OaepSHA1); Array.Resize(ref encrypted, encrypted.Length + 1); - Assert.ThrowsAny<CryptographicException>( - () => Decrypt(rsa, encrypted, RSAEncryptionPadding.OaepSHA1)); + if (!PlatformDetection.IsFullFramework) + { + Assert.ThrowsAny<CryptographicException>( + () => Decrypt(rsa, encrypted, RSAEncryptionPadding.OaepSHA1)); + } Array.Resize(ref encrypted, encrypted.Length - 2); @@ -514,8 +517,11 @@ namespace System.Security.Cryptography.Rsa.Tests encrypted = Encrypt(rsa, data, RSAEncryptionPadding.OaepSHA256); Array.Resize(ref encrypted, encrypted.Length + 1); - Assert.ThrowsAny<CryptographicException>( - () => Decrypt(rsa, encrypted, RSAEncryptionPadding.OaepSHA256)); + if (!PlatformDetection.IsFullFramework) + { + Assert.ThrowsAny<CryptographicException>( + () => Decrypt(rsa, encrypted, RSAEncryptionPadding.OaepSHA256)); + } Array.Resize(ref encrypted, encrypted.Length - 2); diff --git a/src/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs b/src/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs index a6b814711a..9c1630c84b 100644 --- a/src/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs +++ b/src/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs @@ -75,6 +75,7 @@ namespace System.Runtime.Serialization.Formatters.Tests [Theory] [MemberData(nameof(SerializableObjects_MemberData))] + [ActiveIssue(28816, TargetFrameworkMonikers.NetFramework)] public void ValidateAgainstBlobs(object obj, TypeSerializableValue[] blobs) => ValidateAndRoundtrip(obj, blobs, false); |