-
Notifications
You must be signed in to change notification settings - Fork 0
Add manual list test for https hubs. #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| final String hubURL = "https://testing.katta.cloud/tamarind"; | ||
| final String keycloakAuthServerUrl = "https://testing.katta.cloud/kc/realms/tamarind"; | ||
| final String clientId = "cryptomator"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkocher keep as env vars as well?
| final String username = System.getenv().get("username"); | ||
| final String accountKey = System.getenv().get("account_key"); | ||
|
|
||
| final String storageProfileId = "45a3cd17-9955-4580-9e60-790d84f5785f"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkocher dito?
| final Scheme scheme = setup.hubURL.startsWith("https://") ? Scheme.https : Scheme.http; | ||
| final Protocol profile = factory.find(p -> p.getScheme().equals(scheme) && p.getIdentifier().equals("hub") && p.isEnabled()).getFirst(); | ||
| factory.find(p -> p.getIdentifier().equals("hub") && !p.getScheme().equals(scheme) && p instanceof Profile).stream().forEach(p -> factory.unregister((Profile) p)); | ||
| assertNotNull(factory.forName("hub")); | ||
| assertNotNull(factory.forName("s3")); | ||
| final Host hub = new Host(profile).withCredentials(new Credentials(setup.userConfig.credentials).withOauth(new OAuthTokens(setup.userConfig.credentials.getOauth() != null ? setup.userConfig.credentials.getOauth() : OAuthTokens.EMPTY))); | ||
| hub.setHostname(HostParser.parse(setup.hubURL).getHostname()); | ||
| hub.setDefaultPath(HostParser.parse(setup.hubURL).getDefaultPath()); | ||
| hub.setPort(scheme.getPort()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dkocher is there a more cyberduck-idiomatic way?
724cf5b to
923210c
Compare
| <string>http</string> | ||
| <key>Schemes</key> | ||
| <array> | ||
| <string>http</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A custom scheme would make lookup of profile easier.
923210c to
0027a42
Compare
0027a42 to
42b8ab7
Compare
No description provided.