[ 
https://issues.apache.org/jira/browse/PROTON-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558149#comment-17558149
 ] 

Timothy A. Bish edited comment on PROTON-2570 at 6/23/22 8:32 PM:
------------------------------------------------------------------

The test suite is not written to be run in a fips enabled environment so 
failures like this are likely as that mode disabled features necessary for the 
execution of the tests. 

For testing fips mode I'd suggest using the dotnet test tools filters to ignore 
tests that aren't going to work in fips mode as you are asking them to operate 
in an environment where they cannot work

 {{dotnet test --filter 
FullyQualifiedName!=MSTestNamespace.UnitTest1.TestMethod1}}

https://docs.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest


was (Author: tabish121):
The test suite is not written to be run in a fips enabled environment so 
failures like this are likely as that mode disabled features necessary for the 
execution of the tests. 

> TestSuccessfulAuthentication fails on FIPS enabled system
> ---------------------------------------------------------
>
>                 Key: PROTON-2570
>                 URL: https://issues.apache.org/jira/browse/PROTON-2570
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-dotnet
>    Affects Versions: proton-dotnet-1.0.0-M2
>         Environment: OS: RHEL8
> dotnet: 6.0.106
> broker: Red Hat AMQ 7.9.4.GA
>            Reporter: Petr Matousek
>            Assignee: Timothy A. Bish
>            Priority: Minor
>
> TestSuccessfulAuthentication fails on FIPS enabled system.
> {code:java}
> Starting test execution, please wait...
> A total of 1 test files matched the specified pattern.
>   Failed TestSuccessfulAuthentication [12 ms]
>   Error Message:
>    System.Security.Cryptography.CryptographicException : Error occurred 
> during a cryptographic operation.
>   Stack Trace:
>      at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle)
>    at 
> Internal.Cryptography.HashProviderDispenser.HmacHashProvider..ctor(IntPtr 
> algorithmEvp, ReadOnlySpan`1 key)
>    at Internal.Cryptography.HMACCommon.ChangeKeyImpl(ReadOnlySpan`1 key)
>    at System.Security.Cryptography.HMACMD5..ctor(Byte[] key)
>    at 
> Apache.Qpid.Proton.Engine.Sasl.Client.CramMD5Mechanism.GetChallengeResponse(ISaslCredentialsProvider
>  credentials, IProtonBuffer challenge) in 
> /root/qpid-proton-dotnet/src/Proton/Engine/Sasl/Client/CramMD5Mechanism.cs:line
>  55
>    at 
> Apache.Qpid.Proton.Engine.Sasl.Client.CramMD5MechanismTest.TestSuccessfulAuthentication()
>  in 
> /root/qpid-proton-dotnet/test/Proton.Tests/Engine/Sasl/Client/CramMD5MechanismTest.cs:line
>  45
> Failed!  - Failed:     1, Passed:  3451, Skipped:     0, Total:  3452, 
> Duration: 14 s - /root/qpid-proton-dotnet/test/Proton.Te
> {code}
>  
> Steps to Reproduce:
>  # fips-mode-setup --enable
>  # reboot
>  # git clone [https://github.com/apache/qpid-proton-dotnet.git]
>  # cd qpid-proton-dotnet/
>  # dotnet build
>  # dotnet test



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to