HADOOP-18057. Fix typo: validateEncrytionSecrets -> validateEncryptionSecrets (#3826)

This commit is contained in:
Ashutosh Gupta 2021-12-27 14:21:17 +05:30 committed by GitHub
parent a5659fe0f7
commit ebdbe7eb82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ public abstract class AbstractTestS3AEncryption extends AbstractS3ATestBase {
@Test
public void testEncryption() throws Throwable {
requireEncryptedFileSystem();
validateEncrytionSecrets(getFileSystem().getEncryptionSecrets());
validateEncryptionSecrets(getFileSystem().getEncryptionSecrets());
for (int size: SIZES) {
validateEncryptionForFilesize(size);
}
@ -116,7 +116,7 @@ public abstract class AbstractTestS3AEncryption extends AbstractS3ATestBase {
byte[] data = dataset(1024, 'a', 'z');
S3AFileSystem fs = getFileSystem();
EncryptionSecrets secrets = fs.getEncryptionSecrets();
validateEncrytionSecrets(secrets);
validateEncryptionSecrets(secrets);
writeDataset(fs, src, data, data.length, 1024 * 1024, true);
ContractTestUtils.verifyFileContents(fs, src, data);
// this file will be encrypted
@ -135,7 +135,7 @@ public abstract class AbstractTestS3AEncryption extends AbstractS3ATestBase {
* This makes sure that the settings have propagated properly.
* @param secrets encryption secrets of the filesystem.
*/
protected void validateEncrytionSecrets(final EncryptionSecrets secrets) {
protected void validateEncryptionSecrets(final EncryptionSecrets secrets) {
assertNotNull("No encryption secrets for filesystem", secrets);
S3AEncryptionMethods sseAlgorithm = getSSEAlgorithm();
assertEquals("Filesystem has wrong encryption algorithm",

View File

@ -135,7 +135,7 @@ public class ITestS3AEncryptionWithDefaultS3Settings extends
Path src = path(createFilename(1024));
byte[] data = dataset(1024, 'a', 'z');
EncryptionSecrets secrets = fs.getEncryptionSecrets();
validateEncrytionSecrets(secrets);
validateEncryptionSecrets(secrets);
writeDataset(fs, src, data, data.length, 1024 * 1024, true);
ContractTestUtils.verifyFileContents(fs, src, data);