mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 04:11:44 +08:00
S3 is removed from the parameter names in CloudImportJobTestCase.
This commit is contained in:
parent
6b329762c2
commit
511d3f9565
@ -170,17 +170,17 @@ protected void insertInputDataIntoTableForMerge(List<List<Object>> inputData) {
|
|||||||
insertRecordsIntoTableWithColTypesAndNames(dataSet.getColumnNamesForMerge(), dataSet.getColumnTypesForMerge(), inputData);
|
insertRecordsIntoTableWithColTypesAndNames(dataSet.getColumnNamesForMerge(), dataSet.getColumnTypesForMerge(), inputData);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void failIfOutputFilePathContainingPatternExists(FileSystem s3Client, Path targetDirPath, String pattern) throws IOException {
|
protected void failIfOutputFilePathContainingPatternExists(FileSystem cloudFileSystem, Path targetDirPath, String pattern) throws IOException {
|
||||||
List<Path> outputFilesWithPathContainingPattern = FileSystemUtil.findFilesWithPathContainingPattern(targetDirPath,
|
List<Path> outputFilesWithPathContainingPattern = FileSystemUtil.findFilesWithPathContainingPattern(targetDirPath,
|
||||||
s3Client.getConf(), pattern);
|
cloudFileSystem.getConf(), pattern);
|
||||||
if (outputFilesWithPathContainingPattern.size() != 0) {
|
if (outputFilesWithPathContainingPattern.size() != 0) {
|
||||||
fail("No output file was expected with pattern" + pattern);
|
fail("No output file was expected with pattern" + pattern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void failIfOutputFilePathContainingPatternDoesNotExists(FileSystem s3Client, Path targetDirPath, String pattern) throws IOException {
|
protected void failIfOutputFilePathContainingPatternDoesNotExists(FileSystem cloudFileSystem, Path targetDirPath, String pattern) throws IOException {
|
||||||
List<Path> outputFilesWithPathContainingPattern = FileSystemUtil.findFilesWithPathContainingPattern(targetDirPath,
|
List<Path> outputFilesWithPathContainingPattern = FileSystemUtil.findFilesWithPathContainingPattern(targetDirPath,
|
||||||
s3Client.getConf(), pattern);
|
cloudFileSystem.getConf(), pattern);
|
||||||
if (outputFilesWithPathContainingPattern.size() == 0) {
|
if (outputFilesWithPathContainingPattern.size() == 0) {
|
||||||
fail("No output file was found with pattern" + pattern);
|
fail("No output file was found with pattern" + pattern);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user