Skip to content

Commit e53f174

Browse files
committed
Workaround #189.
1 parent 34feb62 commit e53f174

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hub/src/test/java/cloud/katta/core/AbstractHubSynchronizeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void test03AddVault(final HubTestConfig config) throws Exception {
231231
log.info("Creating vault in {}", hubSession);
232232
final UUID vaultId = UUID.fromString(new UUIDRandomStringService().random());
233233

234-
final Path bucket = new Path(null == config.vault.bucketName ? storageProfileWrapper.getBucketPrefix() + vaultId : config.vault.bucketName,
234+
final Path bucket = new Path(null == config.vault.bucketName ? null == storageProfileWrapper.getBucketPrefix() ? "katta-test-" + vaultId : storageProfileWrapper.getBucketPrefix() + vaultId : config.vault.bucketName,
235235
EnumSet.of(Path.Type.volume, Path.Type.directory));
236236
final HubStorageLocationService.StorageLocation location = new HubStorageLocationService.StorageLocation(storageProfileWrapper.getId().toString(), storageProfileWrapper.getRegion(),
237237
storageProfileWrapper.getName());

hub/src/test/java/cloud/katta/workflows/AbstractHubWorkflowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testHubWorkflow(final HubTestConfig config) throws Exception {
6363
.filter(p -> p.getId().toString().equals(config.vault.storageProfileId.toLowerCase())).findFirst().get();
6464

6565
final UUID vaultId = UUID.fromString(new UUIDRandomStringService().random());
66-
final Path bucket = new Path(null == config.vault.bucketName ? storageProfileWrapper.getBucketPrefix() + vaultId : config.vault.bucketName,
66+
final Path bucket = new Path(null == config.vault.bucketName ? null == storageProfileWrapper.getBucketPrefix() ? "katta-test-" + vaultId : storageProfileWrapper.getBucketPrefix() + vaultId : config.vault.bucketName,
6767
EnumSet.of(Path.Type.volume, Path.Type.directory));
6868
final HubStorageLocationService.StorageLocation location = new HubStorageLocationService.StorageLocation(storageProfileWrapper.getId().toString(), storageProfileWrapper.getRegion(),
6969
storageProfileWrapper.getName());

0 commit comments

Comments
 (0)