From 8eb9739ff7dbf34baca735342a7ad1aa1a1061bf Mon Sep 17 00:00:00 2001 From: karen-avetisyan-mc Date: Wed, 28 Feb 2024 14:27:37 +0000 Subject: [PATCH] Moving to the netstandard2.1 over .Net5 --- .github/workflows/test.yml | 10 +- ...rd.Developer.ClientEncryption.Tests.csproj | 4 +- ...eloper.ClientEncryption.Tests.Net4x.csproj | 232 ++++++++++++++++++ 3 files changed, 239 insertions(+), 7 deletions(-) create mode 100644 Mastercard.Developer.ClientEncryption.Tests/Net4x/Mastercard.Developer.ClientEncryption.Tests.Net4x.csproj diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 650e4a2..cc0c491 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,19 +18,19 @@ jobs: strategy: matrix: dotnet: - - 8.0.201 + - 5.0.x include: - - dotnet: 8.0.201 + - dotnet: 5.0.x mono: none TEST_PROJECT: $NETCORE_TEST_PROJECT steps: - name: Checkout code uses: actions/checkout@v2 - - name: Setup .NET 8 + - name: Setup .NET 5 uses: actions/setup-dotnet@v1.9.0 with: - dotnet-version: 8.0.201 - - name: Build using .NET 8 + dotnet-version: 5.0.x + - name: Build using .NET 5 run: > export PATH="$PATH:$HOME/.dotnet/tools" diff --git a/Mastercard.Developer.ClientEncryption.Tests/Mastercard.Developer.ClientEncryption.Tests.csproj b/Mastercard.Developer.ClientEncryption.Tests/Mastercard.Developer.ClientEncryption.Tests.csproj index c54e44d..d0f89e5 100644 --- a/Mastercard.Developer.ClientEncryption.Tests/Mastercard.Developer.ClientEncryption.Tests.csproj +++ b/Mastercard.Developer.ClientEncryption.Tests/Mastercard.Developer.ClientEncryption.Tests.csproj @@ -1,6 +1,6 @@  - net8.0 + net5 Debug AnyCPU {DE07F478-E087-4FAA-80E2-220671C70418} @@ -140,4 +140,4 @@ - \ No newline at end of file + diff --git a/Mastercard.Developer.ClientEncryption.Tests/Net4x/Mastercard.Developer.ClientEncryption.Tests.Net4x.csproj b/Mastercard.Developer.ClientEncryption.Tests/Net4x/Mastercard.Developer.ClientEncryption.Tests.Net4x.csproj new file mode 100644 index 0000000..3e5dd7b --- /dev/null +++ b/Mastercard.Developer.ClientEncryption.Tests/Net4x/Mastercard.Developer.ClientEncryption.Tests.Net4x.csproj @@ -0,0 +1,232 @@ + + + + + Debug + AnyCPU + {DE07F478-E087-4FAA-80E2-220671C70418} + Library + Properties + Mastercard.Developer.ClientEncryption.Tests.Net4x + Mastercard.Developer.ClientEncryption.Tests.Net4x + v6 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 15.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + + + ../../Identity.snk + + + + Encryption\AES\AesEncryptionTest.cs + + + Encryption\EncryptionExceptionTest.cs + + + Encryption\FieldLevelEncryptionConfigBuilderTest.cs + + + Encryption\FieldLevelEncryptionParamsTest.cs + + + Encryption\FieldLevelEncryptionTest.cs + + + Encryption\JweConfigBuilderTest.cs + + + Encryption\JWE\JweEncryptionTest.cs + + + Interceptors\RestResponseDouble.cs + + + Interceptors\RestSharpFieldLevelEncryptionInterceptorTest.cs + + + Interceptors\RestSharpV2FieldLevelEncryptionInterceptorTest.cs + + + Interceptors\RestSharpV2CbcJweEncryptionInterceptorTest.cs + + + Interceptors\RestSharpV2GcmJweEncryptionInterceptorTest.cs + + + Encryption\JWE\GcmJweObjectTest.cs + + + Encryption\JWE\JweHeaderTest.cs + + + Encryption\JWE\CbcJweObjectTest.cs + + + Encryption\RSA\RsaEncryptionTest.cs + + + Test\TestUtils.cs + + + Utils\Base64UtilsTest.cs + + + Utils\ByteUtilsTest.cs + + + Utils\EncodingUtilsTest.cs + + + Utils\EncryptionUtilsTest.cs + + + Utils\JsonUtilsTest.cs + + + Utils\RsaKeyUtilsTest.cs + + + + + _Resources\Certificates\test_certificate-1024.pem + Always + + + _Resources\Certificates\test_certificate-2048.der + Always + + + _Resources\Certificates\test_certificate-2048.pem + Always + + + _Resources\Certificates\test_certificate-4096.pem + Always + + + _Resources\Certificates\test_certificate-512.pem + Always + + + _Resources\Keys\Pkcs1\test_key_pkcs1-1024.pem + Always + + + _Resources\Keys\Pkcs1\test_key_pkcs1-2048.pem + Always + + + _Resources\Keys\Pkcs1\test_key_pkcs1-4096.pem + Always + + + _Resources\Keys\Pkcs1\test_key_pkcs1-512.pem + Always + + + _Resources\Keys\Pkcs12\test_key.p12 + Always + + + _Resources\Keys\Pkcs8\test_invalid_key.der + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-1024.der + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-1024.pem + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-2048.der + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-2048.pem + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-4096.der + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-4096.pem + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-512.der + Always + + + _Resources\Keys\Pkcs8\test_key_pkcs8-512.pem + Always + + + + + {8ffa4f79-9d2c-4807-bad7-8e2f0a15e099} + Mastercard.Developer.ClientEncryption.Core + + + {bc6f2c72-16a3-44cb-ad68-3acd8a465640} + Mastercard.Developer.ClientEncryption.RestSharpV2 + + + {4abdad88-8dc4-4463-91ec-74a711d6acfb} + Mastercard.Developer.ClientEncryption.RestSharp + + + + + + + + 4.0.6 + + + 2.1.2 + + + 2.1.2 + + + 4.7.0 + + + 4.3.2 + + + + + \ No newline at end of file