Skip to content

Commit

Permalink
Add SWIFT_S3 to list of storage providers to perform content checksum…
Browse files Browse the repository at this point in the history
… verifications. (#67)
  • Loading branch information
msarmie authored Jan 19, 2024
1 parent 5c7fdbf commit 94a9cd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ abstract class BitCheckHandler {
*/
private static void initializeContentChecksumCalculatingStorageProviders() {
CONTENT_CHECKSUM_CALCULATING_STORAGE_PROVIDERS.add(StorageProviderType.AMAZON_S3);
CONTENT_CHECKSUM_CALCULATING_STORAGE_PROVIDERS.add(StorageProviderType.SWIFT_S3);
}

public final boolean handle(BitCheckExecutionState bitCheckState) throws TaskExecutionFailedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ public void testSuccessWithContentCheckS3() throws Exception {
testSuccess(StorageProviderType.AMAZON_S3, true);
}

@Test
public void testSuccessWithContentCheckSwift() throws Exception {
testSuccess(StorageProviderType.SWIFT_S3, true);
}

@Test
public void testSuccessWithOutContentCheckGlacier() throws Exception {
testSuccess(StorageProviderType.AMAZON_GLACIER, false);
Expand Down

0 comments on commit 94a9cd0

Please sign in to comment.