[
https://issues.apache.org/jira/browse/HADOOP-11062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14122883#comment-14122883
]
Charles Lamb commented on HADOOP-11062:
---------------------------------------
Hi [~asuresh],
I was under the impression from [~tucu00] that if -Pnative is not specified,
then some sort of helpful warning should be written to the log. I applied your
patch and ran TestCryptoCodec without the native profile using
{quote}
mvn test -Dtest=TestCryptoCodec
{quote}
The surefire report only shows that the tests in TCC were skipped and there's
no corresponding output.
{quote}
-------------------------------------------------------------------------------
Test set: org.apache.hadoop.crypto.TestCryptoCodec
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.268 sec - in
org.apache.hadoop.crypto.TestCryptoCodec
{quote}
Actually, I may be doing something wrong, but running with the native profile
{quote}
mvn -Pnative test -Dtest=TestCryptoCodec
{quote}
produces the same surefire output (i.e. it skips both tests).
If the only requirement is that we skip the tests cleanly, then this patch is
fine.
Other tests like TestCryptoStreamsWithOpensslAesCtrCryptoCodec,
TestOpensslSecureRandom, and TestCryptoStreamsForLocalFS generate this warning
{quote}
2014-09-05 08:11:56,484 WARN util.NativeCodeLoader
(NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for
your platform... using builtin-java classes where applicable
{quote}
I don't know if that's a sufficient warning or not.
> CryptoCodec testcases requiring OpenSSL should be run only if -Pnative is used
> ------------------------------------------------------------------------------
>
> Key: HADOOP-11062
> URL: https://issues.apache.org/jira/browse/HADOOP-11062
> Project: Hadoop Common
> Issue Type: Bug
> Components: security, test
> Affects Versions: 2.6.0
> Reporter: Alejandro Abdelnur
> Assignee: Arun Suresh
> Attachments: HADOOP-11062.1.patch, HADOOP-11062.1.patch
>
>
> there are a few testcases, cryptocodec related that require Hadoop native
> code and OpenSSL.
> These tests should be skipped if -Pnative is not used when running the tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)