HADOOP-12801. Suppress obsolete S3FileSystem tests. Contributed by Chris Nauroth.

This commit is contained in:
Chris Nauroth 2016-05-10 15:14:31 -07:00
parent 307db61aac
commit 27242f211e
3 changed files with 27 additions and 0 deletions

View File

@ -22,6 +22,9 @@
import org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest; import org.apache.hadoop.fs.contract.AbstractContractRootDirectoryTest;
import org.apache.hadoop.fs.contract.AbstractFSContract; import org.apache.hadoop.fs.contract.AbstractFSContract;
import org.junit.Ignore;
import org.junit.Test;
/** /**
* root dir operations against an S3 bucket * root dir operations against an S3 bucket
*/ */
@ -31,4 +34,16 @@ public class TestS3ContractRootDir extends AbstractContractRootDirectoryTest {
protected AbstractFSContract createContract(Configuration conf) { protected AbstractFSContract createContract(Configuration conf) {
return new S3Contract(conf); return new S3Contract(conf);
} }
@Override
@Test
@Ignore
public void testRmEmptyRootDirNonRecursive() {
}
@Override
@Test
@Ignore
public void testRmRootRecursive() {
}
} }

View File

@ -23,10 +23,19 @@
import org.apache.hadoop.fs.contract.AbstractFSContract; import org.apache.hadoop.fs.contract.AbstractFSContract;
import org.apache.hadoop.fs.contract.ContractTestUtils; import org.apache.hadoop.fs.contract.ContractTestUtils;
import org.junit.Ignore;
import org.junit.Test;
public class TestS3ContractSeek extends AbstractContractSeekTest { public class TestS3ContractSeek extends AbstractContractSeekTest {
@Override @Override
protected AbstractFSContract createContract(Configuration conf) { protected AbstractFSContract createContract(Configuration conf) {
return new S3Contract(conf); return new S3Contract(conf);
} }
@Override
@Test
@Ignore
public void testReadFullyZeroByteFile() {
}
} }

View File

@ -28,6 +28,7 @@
import java.net.URI; import java.net.URI;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.TemporaryFolder; import org.junit.rules.TemporaryFolder;
@ -120,6 +121,7 @@ public void testCredentialProvider() throws Exception {
} }
@Test(expected=IllegalArgumentException.class) @Test(expected=IllegalArgumentException.class)
@Ignore
public void noSecretShouldThrow() throws Exception { public void noSecretShouldThrow() throws Exception {
S3Credentials s3Credentials = new S3Credentials(); S3Credentials s3Credentials = new S3Credentials();
Configuration conf = new Configuration(); Configuration conf = new Configuration();
@ -128,6 +130,7 @@ public void noSecretShouldThrow() throws Exception {
} }
@Test(expected=IllegalArgumentException.class) @Test(expected=IllegalArgumentException.class)
@Ignore
public void noAccessIdShouldThrow() throws Exception { public void noAccessIdShouldThrow() throws Exception {
S3Credentials s3Credentials = new S3Credentials(); S3Credentials s3Credentials = new S3Credentials();
Configuration conf = new Configuration(); Configuration conf = new Configuration();