Skip to content

Commit 8204ad9

Browse files
bilaharithsteveloughran
authored andcommitted
HADOOP-17459. ADLS Gen1: Fixes for rename contract tests #2607
Contributed by Bilaharith
1 parent b3f8557 commit 8204ad9

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/TestAdlContractRenameLive.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@
1919

2020
package org.apache.hadoop.fs.adl.live;
2121

22-
import org.junit.Test;
23-
2422
import org.apache.hadoop.conf.Configuration;
2523
import org.apache.hadoop.fs.contract.AbstractContractRenameTest;
2624
import org.apache.hadoop.fs.contract.AbstractFSContract;
27-
import org.apache.hadoop.security.AccessControlException;
28-
import org.apache.hadoop.test.LambdaTestUtils;
2925

3026
/**
3127
* Test rename contract test cases on Adl file system.
@@ -37,14 +33,4 @@ protected AbstractFSContract createContract(Configuration configuration) {
3733
return new AdlStorageContract(configuration);
3834
}
3935

40-
/**
41-
* ADL throws an Access Control Exception rather than return false.
42-
* This is caught and its error text checked, to catch regressions.
43-
*/
44-
@Test
45-
public void testRenameFileUnderFile() throws Exception {
46-
LambdaTestUtils.intercept(AccessControlException.class,
47-
"Parent path is not a folder.",
48-
super::testRenameFileUnderFile);
49-
}
5036
}

hadoop-tools/hadoop-azure-datalake/src/test/resources/adls.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<value>true</value>
3939
</property>
4040

41+
<property>
42+
<name>fs.contract.rename-returns-false-if-dest-exists</name>
43+
<value>true</value>
44+
</property>
45+
4146
<property>
4247
<name>fs.contract.test.random-seek-count</name>
4348
<value>10</value>

0 commit comments

Comments
 (0)