use of com.facebook.presto.hive.s3.PrestoS3FileSystem in project flink by apache.
the class PrestoS3FileSystemTest method validateBasicCredentials.
// ------------------------------------------------------------------------
// utilities
// ------------------------------------------------------------------------
private static void validateBasicCredentials(FileSystem fs) throws Exception {
assertTrue(fs instanceof FlinkS3FileSystem);
org.apache.hadoop.fs.FileSystem hadoopFs = ((FlinkS3FileSystem) fs).getHadoopFileSystem();
assertTrue(hadoopFs instanceof PrestoS3FileSystem);
try (PrestoS3FileSystem prestoFs = (PrestoS3FileSystem) hadoopFs) {
AWSCredentialsProvider provider = getAwsCredentialsProvider(prestoFs);
assertTrue(provider instanceof AWSStaticCredentialsProvider);
}
}
Aggregations