HADOOP-12158. Improve error message in TestCryptoStreamsWithOpensslAesCtrCryptoCodec when OpenSSL is not installed.
(cherry picked from commit b088bc6c8c36ce3fe8b69bc0280fd4ea80ca6328)
This commit is contained in:
parent
fdfd5be2b3
commit
1204140baa
|
@ -163,6 +163,11 @@ Release 2.8.0 - UNRELEASED
|
||||||
|
|
||||||
HADOOP-11958. MetricsSystemImpl fails to show backtrace when an error
|
HADOOP-11958. MetricsSystemImpl fails to show backtrace when an error
|
||||||
occurs (Jason Lowe via jeagles)
|
occurs (Jason Lowe via jeagles)
|
||||||
|
|
||||||
|
HADOOP-12158. Improve error message in
|
||||||
|
TestCryptoStreamsWithOpensslAesCtrCryptoCodec when OpenSSL is not
|
||||||
|
installed. (wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||||
|
|
|
@ -19,9 +19,11 @@ package org.apache.hadoop.crypto;
|
||||||
|
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
|
import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
public class TestCryptoStreamsWithOpensslAesCtrCryptoCodec
|
public class TestCryptoStreamsWithOpensslAesCtrCryptoCodec
|
||||||
extends TestCryptoStreams {
|
extends TestCryptoStreams {
|
||||||
|
|
||||||
|
@ -32,7 +34,10 @@ public class TestCryptoStreamsWithOpensslAesCtrCryptoCodec
|
||||||
CommonConfigurationKeysPublic.HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY,
|
CommonConfigurationKeysPublic.HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY,
|
||||||
OpensslAesCtrCryptoCodec.class.getName());
|
OpensslAesCtrCryptoCodec.class.getName());
|
||||||
codec = CryptoCodec.getInstance(conf);
|
codec = CryptoCodec.getInstance(conf);
|
||||||
Assert.assertEquals(OpensslAesCtrCryptoCodec.class.getCanonicalName(),
|
assertNotNull("Unable to instantiate codec " +
|
||||||
|
OpensslAesCtrCryptoCodec.class.getName() + ", is the required "
|
||||||
|
+ "version of OpenSSL installed?", codec);
|
||||||
|
assertEquals(OpensslAesCtrCryptoCodec.class.getCanonicalName(),
|
||||||
codec.getClass().getCanonicalName());
|
codec.getClass().getCanonicalName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue