HADOOP-18057. Fix typo: validateEncrytionSecrets -> validateEncryptionSecrets (#3826)
This commit is contained in:
parent
a5659fe0f7
commit
ebdbe7eb82
@ -104,7 +104,7 @@ public void testEncryptionSettingPropagation() throws Throwable {
|
||||
@Test
|
||||
public void testEncryption() throws Throwable {
|
||||
requireEncryptedFileSystem();
|
||||
validateEncrytionSecrets(getFileSystem().getEncryptionSecrets());
|
||||
validateEncryptionSecrets(getFileSystem().getEncryptionSecrets());
|
||||
for (int size: SIZES) {
|
||||
validateEncryptionForFilesize(size);
|
||||
}
|
||||
@ -116,7 +116,7 @@ public void testEncryptionOverRename() throws Throwable {
|
||||
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 void testEncryptionOverRename() throws Throwable {
|
||||
* 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",
|
||||
|
@ -135,7 +135,7 @@ public void testEncryptionOverRename2() throws Throwable {
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user