HADOOP-17459. ADLS Gen1: Fixes for rename contract tests #2607

Contributed by Bilaharith
This commit is contained in:
bilaharith 2021-01-12 19:30:48 +05:30 committed by GitHub
parent ca7dd5fad3
commit 612330661b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 14 deletions

View File

@ -19,13 +19,9 @@
package org.apache.hadoop.fs.adl.live;
import org.junit.Test;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.contract.AbstractContractRenameTest;
import org.apache.hadoop.fs.contract.AbstractFSContract;
import org.apache.hadoop.security.AccessControlException;
import org.apache.hadoop.test.LambdaTestUtils;
/**
* Test rename contract test cases on Adl file system.
@ -37,14 +33,4 @@ protected AbstractFSContract createContract(Configuration configuration) {
return new AdlStorageContract(configuration);
}
/**
* ADL throws an Access Control Exception rather than return false.
* This is caught and its error text checked, to catch regressions.
*/
@Test
public void testRenameFileUnderFile() throws Exception {
LambdaTestUtils.intercept(AccessControlException.class,
"Parent path is not a folder.",
super::testRenameFileUnderFile);
}
}

View File

@ -38,6 +38,11 @@
<value>true</value>
</property>
<property>
<name>fs.contract.rename-returns-false-if-dest-exists</name>
<value>true</value>
</property>
<property>
<name>fs.contract.test.random-seek-count</name>
<value>10</value>