Skip to content

Commit

Permalink
Review test setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 28, 2024
1 parent 79b36d2 commit dace313
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions s3/src/test/java/ch/cyberduck/core/s3/AbstractS3Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,7 @@ public void setupDefault() throws Exception {
this.getClass().getResourceAsStream("/S3 (HTTPS).cyberduckprofile"));
final Host host = new Host(profile, profile.getDefaultHostname(), new Credentials(
PROPERTIES.get("s3.key"), PROPERTIES.get("s3.secret")
)) {
@Override
public String getProperty(final String key) {
if("s3.listing.metadata.enable".equals(key)) {
return String.valueOf(false);
}
return super.getProperty(key);
}
};
));
session = new S3Session(host, new DefaultX509TrustManager(), new DefaultX509KeyManager());
final LoginConnectionService login = new LoginConnectionService(new DisabledLoginCallback() {
@Override
Expand All @@ -104,7 +96,7 @@ public void setupVirtualHost() throws Exception {
final ProtocolFactory factory = new ProtocolFactory(new HashSet<>(Collections.singleton(new S3Protocol())));
final Profile profile = new ProfilePlistReader(factory).read(
this.getClass().getResourceAsStream("/S3 (HTTPS).cyberduckprofile"));
final Host host = new Host(profile, "test-eu-west-3-cyberduck.s3.amazonaws.com", new Credentials(
final Host host = new Host(profile, "test-eu-central-1-cyberduck.s3.amazonaws.com", new Credentials(
PROPERTIES.get("s3.key"), PROPERTIES.get("s3.secret")
));
virtualhost = new S3Session(host, new DefaultX509TrustManager(), new DefaultX509KeyManager());
Expand Down

0 comments on commit dace313

Please sign in to comment.