HDFS-3104. Add tests for HADOOP-8175. Contributed by Daryn Sharp
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1301665 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
662b1887af
commit
2a0024403a
@ -656,6 +656,8 @@ Release 0.23.2 - UNRELEASED
|
||||
|
||||
HDFS-3098. Update and add tests for HADOOP-8173. (Daryn Sharp via szetszwo)
|
||||
|
||||
HDFS-3104. Add tests for HADOOP-8175. (Daryn Sharp via szetszwo)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
BUG FIXES
|
||||
|
@ -5720,6 +5720,42 @@
|
||||
</comparators>
|
||||
</test>
|
||||
|
||||
<test> <!-- TESTED -->
|
||||
<description>mkdir: Test recreate of existing directory fails</description>
|
||||
<test-commands>
|
||||
<command>-fs NAMENODE -rm -r -f dir0</command>
|
||||
<command>-fs NAMENODE -mkdir dir0/dir1</command>
|
||||
<command>-fs NAMENODE -mkdir dir0/dir1</command>
|
||||
</test-commands>
|
||||
<cleanup-commands>
|
||||
<command>-fs NAMENODE -rm -r dir0</command>
|
||||
</cleanup-commands>
|
||||
<comparators>
|
||||
<comparator>
|
||||
<type>RegexpComparator</type>
|
||||
<expected-output>mkdir: `dir0/dir1': File exists</expected-output>
|
||||
</comparator>
|
||||
</comparators>
|
||||
</test>
|
||||
|
||||
<test> <!-- TESTED -->
|
||||
<description>mkdir: Test recreate of existing directory with -p succeeds</description>
|
||||
<test-commands>
|
||||
<command>-fs NAMENODE -rm -r -f dir0</command>
|
||||
<command>-fs NAMENODE -mkdir dir0/dir1</command>
|
||||
<command>-fs NAMENODE -mkdir -p dir0/dir1</command>
|
||||
</test-commands>
|
||||
<cleanup-commands>
|
||||
<command>-fs NAMENODE -rm -r dir0</command>
|
||||
</cleanup-commands>
|
||||
<comparators>
|
||||
<comparator>
|
||||
<type>ExactComparator</type>
|
||||
<expected-output></expected-output>
|
||||
</comparator>
|
||||
</comparators>
|
||||
</test>
|
||||
|
||||
<!--Tests for setrep-->
|
||||
<test> <!-- TESTED -->
|
||||
<description>setrep: existent file (absolute path)</description>
|
||||
|
Loading…
Reference in New Issue
Block a user