[wildfly-dev] (WFCORE-640) Platform and User Specific Unit Tests

Darran Lofthouse darran.lofthouse at jboss.com
Wed Apr 15 11:04:06 EDT 2015


For something like this maybe your test case could just modify some 
permissions first using Java APIs - anything OS specific can quickly 
become a problem to maintain.

Regards,
Darran Lofthouse


On 14/04/15 20:47, Brandon Gaisford wrote:
>
> Hello,
>
> I’m code complete on WFCORE-640 and have completed my development
> testing on OS X and Windows 7.  This feature deals with resolution of
> file permissions and I’m not sure how best to proceed with the creation
> of unit tests and subsequent Maven integration.  Not being very familiar
> with the build and release process I thought others may have some advice.
>
> Does the current build process get executed on both *nix and Windows
> platforms?  Platform specific unit test init scripts need to be executed
> to construct a folder hierarchy with specific file/folder permissions
> required for later tests.   On the Windows side, those init scripts
> should be executed as an administrator user and the unit tests executed
> as a non-administrator user.
>
> Use case:  Given a directory path and a properties file name, determine
> whether a given user of the system may update the properties file.
>
> Test cases:
>
>  1. Directory path contains folders w/o read and execute permissions
>  2. Properties file has Read Only property set (Windows)
>  3. Properties file is not writable
>  4. Properties file in not readable
>  5. Etc.
>
>
> Thanks,
>
> Brandon
>
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>


More information about the wildfly-dev mailing list