-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change tests assesrtions to pass on FIPS environment #1297
Conversation
response.statusCode(500) | ||
.body(containsString("java.security.NoSuchAlgorithmException: Cannot find any provider supporting")); | ||
|
||
final List<String> messages = PolicyTestUtils.drainMessages("drainMessages", 2); |
Check notice
Code scanning / CodeQL
Unread local variable Note test
@ppalaga (@ffang ) Here is a few lines from the log when executing CustomEncryptSignPolicyIT.helloCustomizedValuesCorrectly JVM part of log, FIPS (looks as expected):
native part of the log:
You can see the same line in both logs Do you have an idea, what can be wrong? I'm pasting whole log here
|
I'm able to debug the JVM execution via remote and I see the value entering |
Thanks @ppalaga for the help! |
7a2eae3
to
ae8684d
Compare
I fixed the problems and change is prepared to be merged. If test runs in native and the machine environment (where the test runs) or the binary is FIPS enabled, the test fails with the message: In jvm, test detects, whether system is FIPS compliant, and test asserts success or failure based on this information. To show behavior correctly: In non-fips mode (jvm or native), results are |
fixes #1285
replaces #1286
Tests are capable of knowing whether the environment is FIPS, therefore assertions are changed accordingly (whether success or failure is expected)
!There is a problem with the execution in the native in the FIPS!
non-FIPS - jvm and native works
FIPS - jvm works, native fails - I'm investigating it now.
I created this draft to see the CI results.