[ 
https://issues.apache.org/jira/browse/HADOOP-14397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006439#comment-16006439
 ] 

Steve Loughran commented on HADOOP-14397:
-----------------------------------------

yes, this is the place. 

Once you've done the spec for what the preconditions and postconditions of the 
operation are in HADOOP-14398, the tests should be pretty obvious, especially 
as the existing create tests are the basis. 

There's little point duplicating all the existing creation tests, but what we 
can explore is any changes, what if an unknown option is supplied (good q.), 
what if overwrite=false and the file exists, overwrite=true and the dest is a 
path...some of the classic troublespots

> Pull up the builder pattern to FileSystem and add AbstractContractCreateTest 
> for it
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-14397
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14397
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: common, fs, hdfs-client
>    Affects Versions: 2.9.0
>            Reporter: Lei (Eddy) Xu
>
> After reach the stability of the Builder APIs, we should promote the API from 
> {{DistributedFileSystem}} to {{FileSystem}}, and add necessary contract tests 
> to cover the API for all file systems.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to