use of alluxio.underfs.UnderFileSystemFactory in project alluxio by Alluxio.
the class S3AUnderFileSystemFactoryTest method factory.
/**
* This test ensures the S3A UFS module correctly accepts paths that begin with s3a://.
*/
@Test
public void factory() {
UnderFileSystemFactory factory = UnderFileSystemRegistry.find("s3a://test-bucket/path");
UnderFileSystemFactory factory2 = UnderFileSystemRegistry.find("s3n://test-bucket/path");
UnderFileSystemFactory factory3 = UnderFileSystemRegistry.find("s3://test-bucket/path");
Assert.assertNotNull("A UnderFileSystemFactory should exist for s3a paths when using this module", factory);
Assert.assertNull("A UnderFileSystemFactory should not exist for non s3a paths when using this module", factory2);
Assert.assertNull("A UnderFileSystemFactory should not exist for non s3a paths when using this module", factory3);
}
use of alluxio.underfs.UnderFileSystemFactory in project alluxio by Alluxio.
the class S3UnderFileSystemFactoryTest method factory.
/**
* This test ensures the S3 UFS module correctly accepts paths that begin with s3n://.
*/
@Test
public void factory() {
UnderFileSystemFactory factory = UnderFileSystemRegistry.find("s3n://test-bucket/path");
UnderFileSystemFactory factory2 = UnderFileSystemRegistry.find("s3://test-bucket/path");
Assert.assertNotNull("A UnderFileSystemFactory should exist for s3n paths when using this module", factory);
Assert.assertNull("A UnderFileSystemFactory should not exist for non s3n paths when using this module", factory2);
}
use of alluxio.underfs.UnderFileSystemFactory in project alluxio by Alluxio.
the class HdfsUnderFileSystemFactoryTest method factory.
/**
* This test ensures the HDFS UFS module correctly accepts paths that begin with hdfs://.
*/
@Test
public void factory() {
UnderFileSystemFactory factory = UnderFileSystemRegistry.find("hdfs://localhost/test/path");
Assert.assertNotNull("A UnderFileSystemFactory should exist for HDFS paths when using this module", factory);
factory = UnderFileSystemRegistry.find("s3://localhost/test/path");
Assert.assertNull("A UnderFileSystemFactory should not exist for S3 paths when using this module", factory);
factory = UnderFileSystemRegistry.find("s3n://localhost/test/path");
Assert.assertNull("A UnderFileSystemFactory should not exist for S3 paths when using this module", factory);
factory = UnderFileSystemRegistry.find("alluxio://localhost:19999/test");
Assert.assertNull("A UnderFileSystemFactory should not exist for non supported paths when " + "using this module", factory);
}
use of alluxio.underfs.UnderFileSystemFactory in project alluxio by Alluxio.
the class GCSUnderFileSystemFactoryTest method factory.
/**
* This test ensures the GCS UFS module correctly accepts paths that begin with gs://.
*/
@Test
public void factory() {
UnderFileSystemFactory factory = UnderFileSystemRegistry.find("gs://test-bucket/path");
Assert.assertNotNull("A UnderFileSystemFactory should exist for gs paths when using this module", factory);
}
Aggregations