You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Joe Skora (JIRA)" <ji...@apache.org> on 2016/03/30 15:33:25 UTC
[jira] [Commented] (NIFI-1671) TestListFile: unit test failing on
Windows with specific accounts configuration
[ https://issues.apache.org/jira/browse/NIFI-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217970#comment-15217970 ]
Joe Skora commented on NIFI-1671:
---------------------------------
[~pvillard], interesting error, unfortunately attributes are difficult to normalize across operating systems so I don't know that it's necessarily your laptop.
I noticed that the file owner is "BUILTIN\Administrateurs", that sounds more like a group name than a user name. Are you using "Run as administrator" to create the shell that is running the tests? Does your company use any special policies that would be creating files as that group instead of yourself?
> TestListFile: unit test failing on Windows with specific accounts configuration
> -------------------------------------------------------------------------------
>
> Key: NIFI-1671
> URL: https://issues.apache.org/jira/browse/NIFI-1671
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 0.5.1
> Environment: Windows 7 Pro, Maven 3.3.9, Java 8
> Reporter: Pierre Villard
> Priority: Minor
>
> In TestListFile, with test testAttributesSet, it fails at
> assertTrue(mock1.getAttribute(ListFile.FILE_OWNER_ATTRIBUTE).contains(userName));
> If I look further:
> mock1.getAttribute(ListFile.FILE_OWNER_ATTRIBUTE) is equal to "BUILTIN\Administrateurs"
> when userName = System.getProperty("user.name") is equal to "pvillard"
> I believe this is something related to a very specific configuration on my company laptop.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)