Skip to content

Commit 9e82714

Browse files
committed
Fix CreateVaultServiceTest.
1 parent 60de919 commit 9e82714

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ void createVault() throws AccessException, SecurityFailure, BackgroundException,
7171
);
7272
final StorageProfileDtoWrapper storageProfileWrapper = StorageProfileDtoWrapper.coerce(storageProfile);
7373

74-
7574
Mockito.when(hubSession.getHost()).thenReturn(hub);
7675
Mockito.when(hub.getProtocol()).thenReturn(new HubProtocol() {
7776
@Override
@@ -81,8 +80,8 @@ public String getOAuthTokenUrl() {
8180
});
8281
Mockito.when(hub.getCredentials()).thenReturn(new Credentials());
8382
Mockito.when(hub.getHostname()).thenReturn("storage");
84-
85-
Mockito.when(hubSession.getClient()).thenReturn(apiClient);
83+
Mockito.when(apiClient.getBasePath()).thenReturn("http://nix.com/api");
84+
Mockito.when(vaults.getApiClient()).thenReturn(apiClient);
8685

8786
Mockito.when(storageProfiles.apiStorageprofileProfileIdGet(storageProfileId)).thenReturn(storageProfile);
8887
Mockito.when(config.apiConfigGet()).thenReturn(new ConfigDto().keycloakClientIdCryptomatorVaults("hex"));

0 commit comments

Comments
 (0)