flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hshreedha...@apache.org
Subject [4/16] git commit: FLUME-1789: Unit tests TestJCEFileKeyProvider and TestFileChannelEncryption fail with IBM JDK and flume-1.3.0
Date Fri, 21 Dec 2012 23:50:24 GMT
FLUME-1789: Unit tests TestJCEFileKeyProvider and TestFileChannelEncryption fail with IBM JDK
and flume-1.3.0

(Aline Guedes Pinto via Brock Noland)


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/d866ddf8
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/d866ddf8
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/d866ddf8

Branch: refs/heads/flume-1.3.0
Commit: d866ddf8ba6c7d6a32d168cf051f37c4cf821d3e
Parents: 7d9ec23
Author: Brock Noland <brock@apache.org>
Authored: Wed Dec 19 10:44:29 2012 -0600
Committer: Hari Shreedharan <hshreedharan@apache.org>
Committed: Thu Dec 20 14:49:02 2012 -0800

----------------------------------------------------------------------
 .../file/encryption/EncryptionTestUtils.java       |   10 ++++++++--
 .../src/test/resources/ibm-test.keystore           |  Bin 0 -> 730 bytes
 .../src/test/resources/sun-test.keystore           |  Bin 0 -> 964 bytes
 .../src/test/resources/test.keystore               |  Bin 964 -> 0 bytes
 4 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/d866ddf8/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/EncryptionTestUtils.java
----------------------------------------------------------------------
diff --git a/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/EncryptionTestUtils.java
b/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/EncryptionTestUtils.java
index 1ac749a..6ca3246 100644
--- a/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/EncryptionTestUtils.java
+++ b/flume-ng-channels/flume-file-channel/src/test/java/org/apache/flume/channel/file/encryption/EncryptionTestUtils.java
@@ -78,8 +78,14 @@ public class EncryptionTestUtils {
   public static Map<String, File> configureTestKeyStore(File baseDir,
       File keyStoreFile) throws IOException {
     Map<String, File> result = Maps.newHashMap();
-    Resources.copy(Resources.getResource("test.keystore"),
-        new FileOutputStream(keyStoreFile));
+
+    if (System.getProperty("java.vendor").contains("IBM")) {
+      Resources.copy(Resources.getResource("ibm-test.keystore"),
+          new FileOutputStream(keyStoreFile));
+    } else {
+      Resources.copy(Resources.getResource("sun-test.keystore"),
+          new FileOutputStream(keyStoreFile));
+    }
     /*
     Commands below:
     keytool -genseckey -alias key-0 -keypass keyPassword -keyalg AES \

http://git-wip-us.apache.org/repos/asf/flume/blob/d866ddf8/flume-ng-channels/flume-file-channel/src/test/resources/ibm-test.keystore
----------------------------------------------------------------------
diff --git a/flume-ng-channels/flume-file-channel/src/test/resources/ibm-test.keystore b/flume-ng-channels/flume-file-channel/src/test/resources/ibm-test.keystore
new file mode 100644
index 0000000..9d7cd76
Binary files /dev/null and b/flume-ng-channels/flume-file-channel/src/test/resources/ibm-test.keystore
differ

http://git-wip-us.apache.org/repos/asf/flume/blob/d866ddf8/flume-ng-channels/flume-file-channel/src/test/resources/sun-test.keystore
----------------------------------------------------------------------
diff --git a/flume-ng-channels/flume-file-channel/src/test/resources/sun-test.keystore b/flume-ng-channels/flume-file-channel/src/test/resources/sun-test.keystore
new file mode 100644
index 0000000..98db4d5
Binary files /dev/null and b/flume-ng-channels/flume-file-channel/src/test/resources/sun-test.keystore
differ

http://git-wip-us.apache.org/repos/asf/flume/blob/d866ddf8/flume-ng-channels/flume-file-channel/src/test/resources/test.keystore
----------------------------------------------------------------------
diff --git a/flume-ng-channels/flume-file-channel/src/test/resources/test.keystore b/flume-ng-channels/flume-file-channel/src/test/resources/test.keystore
deleted file mode 100644
index 98db4d5..0000000
Binary files a/flume-ng-channels/flume-file-channel/src/test/resources/test.keystore and /dev/null
differ


Mime
View raw message