|
4 | 4 |
|
5 | 5 | package cloud.katta.workflows; |
6 | 6 |
|
7 | | -import ch.cyberduck.core.*; |
| 7 | +import ch.cyberduck.core.AlphanumericRandomStringService; |
| 8 | +import ch.cyberduck.core.AttributedList; |
| 9 | +import ch.cyberduck.core.DisabledConnectionCallback; |
| 10 | +import ch.cyberduck.core.DisabledListProgressListener; |
| 11 | +import ch.cyberduck.core.DisabledLoginCallback; |
| 12 | +import ch.cyberduck.core.DisabledPasswordCallback; |
| 13 | +import ch.cyberduck.core.ListService; |
| 14 | +import ch.cyberduck.core.OAuthTokens; |
| 15 | +import ch.cyberduck.core.Path; |
| 16 | +import ch.cyberduck.core.SimplePathPredicate; |
| 17 | +import ch.cyberduck.core.UUIDRandomStringService; |
8 | 18 | import ch.cyberduck.core.exception.AccessDeniedException; |
9 | 19 | import ch.cyberduck.core.exception.NotfoundException; |
10 | | -import ch.cyberduck.core.features.*; |
| 20 | +import ch.cyberduck.core.features.AttributesFinder; |
| 21 | +import ch.cyberduck.core.features.Delete; |
| 22 | +import ch.cyberduck.core.features.Directory; |
| 23 | +import ch.cyberduck.core.features.Find; |
| 24 | +import ch.cyberduck.core.features.Home; |
| 25 | +import ch.cyberduck.core.features.Move; |
| 26 | +import ch.cyberduck.core.features.Vault; |
| 27 | +import ch.cyberduck.core.features.Write; |
11 | 28 | import ch.cyberduck.core.transfer.TransferStatus; |
12 | 29 | import ch.cyberduck.core.vault.VaultCredentials; |
13 | 30 | import ch.cyberduck.core.vault.VaultRegistry; |
| 31 | + |
| 32 | +import org.apache.commons.lang3.RandomUtils; |
| 33 | +import org.apache.commons.lang3.StringUtils; |
| 34 | +import org.apache.logging.log4j.LogManager; |
| 35 | +import org.apache.logging.log4j.Logger; |
| 36 | +import org.junit.jupiter.api.MethodOrderer; |
| 37 | +import org.junit.jupiter.api.TestMethodOrder; |
| 38 | +import org.junit.jupiter.params.ParameterizedTest; |
| 39 | +import org.junit.jupiter.params.provider.MethodSource; |
| 40 | +import org.openapitools.jackson.nullable.JsonNullableModule; |
| 41 | + |
| 42 | +import java.util.Collections; |
| 43 | +import java.util.EnumSet; |
| 44 | +import java.util.HashMap; |
| 45 | +import java.util.List; |
| 46 | +import java.util.Properties; |
| 47 | +import java.util.UUID; |
| 48 | +import java.util.stream.Collectors; |
| 49 | + |
14 | 50 | import cloud.katta.client.ApiClient; |
15 | 51 | import cloud.katta.client.ApiException; |
16 | 52 | import cloud.katta.client.api.StorageProfileResourceApi; |
17 | | -import cloud.katta.client.model.*; |
| 53 | +import cloud.katta.client.model.S3SERVERSIDEENCRYPTION; |
| 54 | +import cloud.katta.client.model.S3STORAGECLASSES; |
| 55 | +import cloud.katta.client.model.StorageProfileDto; |
| 56 | +import cloud.katta.client.model.StorageProfileS3STSDto; |
| 57 | +import cloud.katta.client.model.StorageProfileS3StaticDto; |
18 | 58 | import cloud.katta.crypto.uvf.UvfMetadataPayload; |
19 | 59 | import cloud.katta.crypto.uvf.VaultMetadataJWEAutomaticAccessGrantDto; |
20 | 60 | import cloud.katta.crypto.uvf.VaultMetadataJWEBackendDto; |
|
26 | 66 | import cloud.katta.testsetup.AbstractHubTest; |
27 | 67 | import cloud.katta.testsetup.HubTestConfig; |
28 | 68 | import cloud.katta.testsetup.HubTestUtilities; |
29 | | -import static cloud.katta.testsetup.HubTestUtilities.getAdminApiClient; |
30 | 69 | import cloud.katta.testsetup.MethodIgnorableSource; |
31 | 70 | import com.fasterxml.jackson.annotation.JsonInclude; |
32 | 71 | import com.fasterxml.jackson.databind.ObjectMapper; |
33 | | -import org.apache.commons.lang3.RandomUtils; |
34 | | -import org.apache.commons.lang3.StringUtils; |
35 | | -import org.apache.logging.log4j.LogManager; |
36 | | -import org.apache.logging.log4j.Logger; |
37 | | -import static org.junit.jupiter.api.Assertions.*; |
38 | | -import org.junit.jupiter.api.MethodOrderer; |
39 | | -import org.junit.jupiter.api.TestMethodOrder; |
40 | | -import org.junit.jupiter.params.ParameterizedTest; |
41 | | -import org.junit.jupiter.params.provider.MethodSource; |
42 | | -import org.openapitools.jackson.nullable.JsonNullableModule; |
43 | 72 |
|
44 | | -import java.util.*; |
45 | | -import java.util.stream.Collectors; |
| 73 | +import static cloud.katta.testsetup.HubTestUtilities.getAdminApiClient; |
| 74 | +import static org.junit.jupiter.api.Assertions.*; |
46 | 75 |
|
47 | 76 | @TestMethodOrder(MethodOrderer.MethodName.class) |
48 | 77 | abstract class AbstractHubSynchronizeTest extends AbstractHubTest { |
@@ -225,8 +254,7 @@ void test03AddVault(final HubTestConfig config) throws Exception { |
225 | 254 | log.info("Creating vault in {}", hubSession); |
226 | 255 | final UUID vaultId = UUID.fromString(new UUIDRandomStringService().random()); |
227 | 256 |
|
228 | | - final Path bucket = new Path(null == storageProfileWrapper.getBucketPrefix() ? "katta-test-" + vaultId : storageProfileWrapper.getBucketPrefix() + vaultId, |
229 | | - EnumSet.of(Path.Type.volume, Path.Type.directory)); |
| 257 | + final Path bucket = new Path(storageProfileWrapper.getBucketPrefix() + vaultId, EnumSet.of(Path.Type.volume, Path.Type.directory)); |
230 | 258 | final HubStorageLocationService.StorageLocation location = new HubStorageLocationService.StorageLocation(storageProfileWrapper.getId().toString(), storageProfileWrapper.getRegion(), |
231 | 259 | storageProfileWrapper.getName()); |
232 | 260 | final UvfMetadataPayload vaultMetadata = UvfMetadataPayload.create() |
|
0 commit comments