You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Henry Saputra (JIRA)" <ji...@apache.org> on 2015/02/13 17:55:11 UTC
[jira] [Commented] (FLINK-1542) Test case at BlobUtilsTest should
not assume user could not create new item in root directory
[ https://issues.apache.org/jira/browse/FLINK-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320384#comment-14320384 ]
Henry Saputra commented on FLINK-1542:
--------------------------------------
Per discussion in dev list:
How about construct a Flink test directory under directory specified under "java.io.tmpdir" and change the permission to not allow create new directory.
Then the BlobUtilsTest.testExceptionOnCreateStorageDirectoryFailure test is set to try create "cannot-create-this" under this directory.
Something like:
1. Create /tmp/flink-blob-test-dir at @BeforeClass
2. Change permission to not able to write in here.
3. Try to create Blob store at /tmp/flink-blob-test-dir/cannot-create-this
4. Throw exception
5. Clean up flink-blob-test-dir
> Test case at BlobUtilsTest should not assume user could not create new item in root directory
> ---------------------------------------------------------------------------------------------
>
> Key: FLINK-1542
> URL: https://issues.apache.org/jira/browse/FLINK-1542
> Project: Flink
> Issue Type: Bug
> Reporter: Henry Saputra
> Assignee: Henry Saputra
>
> The test at BlobUtilsTest #testExceptionOnCreateStorageDirectoryFailure assume that current user cannot create new directory at root.
> In my MacOSX, my user has admin group so the test will always fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)