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

FALCON-2334 Tests in UpdateHelperTest suite fails with ParentNotDirectoryException #408

Closed
wants to merge 1 commit into from

Conversation

sonia-garudi
Copy link
Contributor

The UpdateHelperTest tests fails with the following error :
Parent path is not a directory: /var/lib/jenkins/workspace/falcon/common/target/falcon/tmp-hadoop-jenkins/jail-fs/testCluster/projects/falcon/staging/falcon/workflows/process/sample

The errors occurs only when the EntityUtilTest#testIsStagingPath test runs before the tests mentioned above.

The following code in EntityUtilTest#testIsStagingPath creates a file at path - target/falcon/tmp-hadoop-jenkins/jail-fs/testCluster/projects/falcon/staging/falcon/workflows/process/sample which causes the error :

if (createPath && !fs.exists(path)) {
 fs.create(path);
 }

The change proposed in this pull request deletes the files created in EntityUtilTest#testIsStagingPath after the test checks are done.

@asfgit asfgit closed this in 411d90c Apr 17, 2018
@pallavi-rao
Copy link

Thanks @sonia-garudi for your contribution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants