Java Code Examples for org.apache.hadoop.fs.contract.ContractTestUtils#createAndVerifyFile()
The following examples show how to use
org.apache.hadoop.fs.contract.ContractTestUtils#createAndVerifyFile() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestS3ADeleteManyFiles.java From hadoop with Apache License 2.0 | 6 votes |
@Test public void testOpenCreate() throws IOException { Path dir = new Path("/tests3a"); ContractTestUtils.createAndVerifyFile(fs, dir, 1024); ContractTestUtils.createAndVerifyFile(fs, dir, 5 * 1024 * 1024); ContractTestUtils.createAndVerifyFile(fs, dir, 20 * 1024 * 1024); /* Enable to test the multipart upload try { ContractTestUtils.createAndVerifyFile(fs, dir, (long)6 * 1024 * 1024 * 1024); } catch (IOException e) { fail(e.getMessage()); } */ }
Example 2
Source File: TestS3ADeleteManyFiles.java From big-c with Apache License 2.0 | 6 votes |
@Test public void testOpenCreate() throws IOException { Path dir = new Path("/tests3a"); ContractTestUtils.createAndVerifyFile(fs, dir, 1024); ContractTestUtils.createAndVerifyFile(fs, dir, 5 * 1024 * 1024); ContractTestUtils.createAndVerifyFile(fs, dir, 20 * 1024 * 1024); /* Enable to test the multipart upload try { ContractTestUtils.createAndVerifyFile(fs, dir, (long)6 * 1024 * 1024 * 1024); } catch (IOException e) { fail(e.getMessage()); } */ }
Example 3
Source File: TestS3AFastOutputStream.java From hadoop with Apache License 2.0 | 4 votes |
@Test public void testRegularUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 1024 * 1024); }
Example 4
Source File: TestS3AFastOutputStream.java From hadoop with Apache License 2.0 | 4 votes |
@Test public void testMultiPartUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 6 * 1024 * 1024); }
Example 5
Source File: TestS3AFastOutputStream.java From big-c with Apache License 2.0 | 4 votes |
@Test public void testRegularUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 1024 * 1024); }
Example 6
Source File: TestS3AFastOutputStream.java From big-c with Apache License 2.0 | 4 votes |
@Test public void testMultiPartUpload() throws IOException { ContractTestUtils.createAndVerifyFile(fs, getTestPath(), 6 * 1024 * 1024); }