Skip to content
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

Merged
merged 1 commit into from
Jun 23, 2022
Merged

Conversation

WilburZjh
Copy link
Contributor

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 with encrypt args aims to make sure that importing secret keys work in FIPS mode. FIPSKeyExtractImport with extractkey args aims to check that extracting RSA keys work in FIPS mode.

@WilburZjh WilburZjh force-pushed the cmdLineTests4FIPS branch 2 times, most recently from 9125ade to 7854a4c Compare June 20, 2022 17:15

<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>
Copy link
Contributor

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.

Copy link
Contributor Author

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">
Copy link
Contributor

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.

Copy link
Contributor Author

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>
Copy link
Contributor

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>

Copy link
Contributor Author

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>
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edited

@WilburZjh WilburZjh force-pushed the cmdLineTests4FIPS branch 2 times, most recently from ef4bdf3 to 007b7ff Compare June 22, 2022 14:35
-->
<playlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../TKG/playlist.xsd">
<test>
<testCaseName>cmdLineTester_fips_providers</testCaseName>
Copy link
Contributor

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?

Copy link
Contributor Author

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>
@llxia
Copy link
Contributor

llxia commented Jun 23, 2022

@llxia
Copy link
Contributor

llxia commented Jun 23, 2022

with FIPS: Grinder_FIPS/48

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@llxia llxia merged commit 43258c1 into eclipse-openj9:master Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants