You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@falcon.apache.org by so...@apache.org on 2016/05/18 20:38:04 UTC
falcon git commit: FALCON-1964 Should delete temporary JKS file after
IT tests for credential provider alias
Repository: falcon
Updated Branches:
refs/heads/master 4ccd3b119 -> 78bb79617
FALCON-1964 Should delete temporary JKS file after IT tests for credential provider alias
Author: yzheng-hortonworks <yz...@hortonworks.com>
Reviewers: "Sowmya Ramesh <sr...@hortonworks.com>, Balu Vellanki <ba...@apache.org>"
Closes #146 from yzheng-hortonworks/FALCON-1964
Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/78bb7961
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/78bb7961
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/78bb7961
Branch: refs/heads/master
Commit: 78bb79617203d61720d38a933d0443a09749f300
Parents: 4ccd3b1
Author: yzheng-hortonworks <yz...@hortonworks.com>
Authored: Wed May 18 13:37:56 2016 -0700
Committer: Sowmya Ramesh <sr...@hortonworks.com>
Committed: Wed May 18 13:37:56 2016 -0700
----------------------------------------------------------------------
.../apache/falcon/util/ApplicationPropertiesTest.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/falcon/blob/78bb7961/common/src/test/java/org/apache/falcon/util/ApplicationPropertiesTest.java
----------------------------------------------------------------------
diff --git a/common/src/test/java/org/apache/falcon/util/ApplicationPropertiesTest.java b/common/src/test/java/org/apache/falcon/util/ApplicationPropertiesTest.java
index 2a131d7..c22b6ad 100644
--- a/common/src/test/java/org/apache/falcon/util/ApplicationPropertiesTest.java
+++ b/common/src/test/java/org/apache/falcon/util/ApplicationPropertiesTest.java
@@ -22,6 +22,7 @@ import org.apache.falcon.FalconException;
import org.apache.falcon.security.CredentialProviderHelper;
import org.apache.hadoop.conf.Configuration;
import org.testng.Assert;
+import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
import java.io.File;
@@ -39,13 +40,23 @@ public class ApplicationPropertiesTest {
private static final String PROPERTY_2 = "property-key-2";
private static final String JKS_FILE_NAME = "credentials.jks";
+ private static final File credDir = new File(".");
+
+ @AfterClass
+ public void tearDown() throws Exception {
+ // delete temporary jks files
+ File file = new File(credDir, JKS_FILE_NAME);
+ file.delete();
+ file = new File(credDir, "." + JKS_FILE_NAME + ".crc");
+ file.delete();
+ }
+
@Test
public void testResolveAlias() throws Exception {
// hadoop credential provider needs to be available
Assert.assertTrue(CredentialProviderHelper.isProviderAvailable());
// clean credential provider store
- File credDir = new File(".");
File file = new File(credDir, JKS_FILE_NAME);
file.delete();