-
Notifications
You must be signed in to change notification settings - Fork 706
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
Add tests in FIPS mode #15372
Add tests in FIPS mode #15372
Conversation
9125ade
to
7854a4c
Compare
|
||
<test id="Verify providers in FIPS mode"> | ||
<command>$EXE$ $CLASSPATH$ org.openj9.test.fips.FIPSProvidersTest</command> | ||
<output type="success" caseSensitive="no" regex="no">Verify providers in FIPS mode COMPLETED</output> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix the indentation? The same for the rest of PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
<delete dir="${build}" /> | ||
</target> | ||
|
||
<target name="build" depends="buildCmdLineTestTools"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see buildCmdLineTestTools
is defined anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
</groups> | ||
<impls> | ||
<impl>openj9</impl> | ||
</impls> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to run against JDK8? If not, please add
<versions>
<version>11+</version>
</versions>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verified
</impls> | ||
</test> | ||
<test> | ||
<testCaseName>cmdLineTester_fips_importAndExtractKeys</testCaseName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests are defined in fips.xml, so we only need one <test>
in playlist.xml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edited
ef4bdf3
to
007b7ff
Compare
--> | ||
<playlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../TKG/playlist.xsd"> | ||
<test> | ||
<testCaseName>cmdLineTester_fips_providers</testCaseName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we merge tests into one target, should we call it - cmdLineTester_fips
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I updated.
Signed-off-by: Jinhang Zhang <Jinhang.Zhang@ibm.com>
007b7ff
to
7377459
Compare
with FIPS: Grinder_FIPS/48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR contains three tests in FIPS mode.
FIPSProviderTest
aims to ensure that a program in FIPS mode has 4 providers and they are the right ones.FIPSKeyExtractImport
withencrypt
args aims to make sure that importing secret keys work in FIPS mode.FIPSKeyExtractImport
withextractkey
args aims to check that extracting RSA keys work in FIPS mode.