Skip to content

Commit 5785538

Browse files
committed
Update dependency.
1 parent d87a8c9 commit 5785538

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

hub/src/main/java/cloud/katta/protocols/hub/HubSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void login(final LoginCallback prompt, final CancelCallback cancel) throw
163163
final OAuthTokens tokens = new OAuthTokens(credentials.getOauth().getAccessToken(), credentials.getOauth().getRefreshToken(), credentials.getOauth().getExpiryInMilliseconds(),
164164
credentials.getOauth().getIdToken());
165165
vaults = new HubVaultListService(protocols, this, trust, key, registry, tokens);
166-
vaults.list(Home.ROOT, new DisabledListProgressListener());
166+
vaults.list(Home.root(), new DisabledListProgressListener());
167167
}
168168
catch(SecurityFailure e) {
169169
throw new InteroperabilityException(LocaleFactory.localizedString("Login failed", "Credentials"), e);

hub/src/main/java/cloud/katta/protocols/hub/HubUVFVault.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public synchronized Path create(final Session<?> session, final String region, f
9090
final Path firstLevel = secondLevel.getParent();
9191
final Path dataDir = firstLevel.getParent();
9292
log.debug("Create vault root directory at {}", secondLevel);
93-
final TransferStatus status = (new TransferStatus()).withRegion(region);
93+
final TransferStatus status = (new TransferStatus()).setRegion(region);
9494

9595
directory.mkdir(dataDir, status);
9696
directory.mkdir(firstLevel, status);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void test03AddVault(final HubTestConfig config) throws Exception {
259259
vaultId, "vault", null,
260260
config.vault.storageProfileId, config.vault.username, config.vault.password, config.vault.bucketName, config.vault.region, true, 3));
261261

262-
final AttributedList<Path> vaults = hubSession.getFeature(ListService.class).list(Home.ROOT, new DisabledListProgressListener());
262+
final AttributedList<Path> vaults = hubSession.getFeature(ListService.class).list(Home.root(), new DisabledListProgressListener());
263263
assertFalse(vaults.isEmpty());
264264

265265
final Path bucket = new Path(storageProfileWrapper.getProtocol() == Protocol.S3_STS ? storageProfileWrapper.getBucketPrefix() + vaultId : config.vault.bucketName,
@@ -350,11 +350,11 @@ public void test04SetupCode(final HubTestConfig config) throws Exception {
350350
assertEquals(OAuthTokens.EMPTY, hubSession.getHost().getCredentials().getOauth());
351351
assertEquals(StringUtils.EMPTY, hubSession.getHost().getCredentials().getPassword());
352352
final ListService feature = hubSession.getFeature(ListService.class);
353-
final AttributedList<Path> vaults = feature.list(Home.ROOT, new DisabledListProgressListener());
353+
final AttributedList<Path> vaults = feature.list(Home.root(), new DisabledListProgressListener());
354354
final ConfigDto configDto = new ConfigResourceApi(hubSession.getClient()).apiConfigGet();
355355
final int expectedNumberOfVaults = configDto.getKeycloakTokenEndpoint().contains("localhost") ? 2 : 4;
356356
assertEquals(expectedNumberOfVaults, vaults.size());
357-
assertEquals(vaults, feature.list(Home.ROOT, new DisabledListProgressListener()));
357+
assertEquals(vaults, feature.list(Home.root(), new DisabledListProgressListener()));
358358
for(final Path vault : vaults) {
359359
assertTrue(hubSession.getFeature(Find.class).find(vault));
360360
}
@@ -363,7 +363,7 @@ public void test04SetupCode(final HubTestConfig config) throws Exception {
363363

364364
private static byte @NotNull [] writeRandomFile(final Session<?> session, final Path file, int size) throws BackgroundException, IOException {
365365
final byte[] content = RandomUtils.nextBytes(size);
366-
final TransferStatus transferStatus = new TransferStatus().withLength(content.length);
366+
final TransferStatus transferStatus = new TransferStatus().setLength(content.length);
367367
transferStatus.setChecksum(session.getFeature(Write.class).checksum(file, transferStatus).compute(new ByteArrayInputStream(content), transferStatus));
368368
session.getFeature(Bulk.class).pre(Transfer.Type.upload, Collections.singletonMap(new TransferItem(file), transferStatus), new DisabledConnectionCallback());
369369
final StatusOutputStream<?> out = session.getFeature(Write.class).write(file, transferStatus, new DisabledConnectionCallback());

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<junit.jupiter.version>5.13.1</junit.jupiter.version>
2525
<junit.platform.version>1.13.1</junit.platform.version>
26-
<cyberduck.version>9.1.3.uvfdraft-SNAPSHOT</cyberduck.version>
26+
<cyberduck.version>10.0.0.uvfdraft-SNAPSHOT</cyberduck.version>
2727
<testcontainers.version>1.21.1</testcontainers.version>
2828
</properties>
2929

0 commit comments

Comments
 (0)