Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,16 @@ protected void patchConfigurationEncryptionSettings(
0, 1, 2, 3, 4, 5, 254, 255, 256, 257, 2 ^ 12 - 1
};

/**
* Skips the tests if encryption is not enabled in configuration.
*
* @implNote We can use {@link #createConfiguration()} here since
* it does not depend on any per-bucket based configuration.
* Otherwise, we would need to grab the configuration from an
* instance of {@link S3AFileSystem}.
*/
protected void requireEncryptedFileSystem() {
skipIfEncryptionTestsDisabled(getFileSystem().getConf());
skipIfEncryptionTestsDisabled(createConfiguration());
}

/**
Expand All @@ -91,8 +99,8 @@ protected void requireEncryptedFileSystem() {
@Override
public void setup() throws Exception {
try {
super.setup();
requireEncryptedFileSystem();
super.setup();
} catch (AccessDeniedException e) {
skip("Bucket does not allow " + getSSEAlgorithm() + " encryption method");
}
Expand Down