Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

FALCON-1964 Should delete temporary JKS file after IT tests for credential provider alias #146

Closed
wants to merge 3 commits into from

Conversation

ying-eng
Copy link
Contributor

No description provided.

@@ -67,6 +67,12 @@ public void testResolveAlias() throws Exception {
properties.resolveAlias();
Assert.assertEquals(properties.getProperty(PROPERTY_1), PASSWORD_1);
Assert.assertEquals(properties.getProperty(PROPERTY_2), PASSWORD_2);

// delete temporary jks files
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add it as @afterclass to ensure these files are deleted even if there are test failures

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out, @bvellanki . Added to AfterClass.

@bvellanki
Copy link
Contributor

+1

@AfterClass
public void tearDown() throws Exception {
// delete temporary jks files
File credDir = new File(".");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we define credDir as public static final String CRED_DIR so that it can be reused in tearDown and testResolveAlias? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed.

@sowmyaramesh
Copy link
Contributor

+1, will commit.

@asfgit asfgit closed this in 78bb796 May 18, 2016
pallavi-rao pushed a commit to pallavi-rao/falcon that referenced this pull request Feb 16, 2018
…ntial provider alias

Author: yzheng-hortonworks <yzheng@hortonworks.com>

Reviewers: "Sowmya Ramesh <sramesh@hortonworks.com>, Balu Vellanki <balu@apache.org>"

Closes apache#146 from yzheng-hortonworks/FALCON-1964
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants