Skip to content

Commit

Permalink
Delete test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 4, 2024
1 parent 2ac0dcd commit ebbed78
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,30 +163,6 @@ public void testCustomHostnameUnknown() throws Exception {
}
}

@Test
public void testCustomHostname() throws Exception {
final Host host = new Host(new S3Protocol(), "cyberduck.io", new Credentials(
PROPERTIES.get("s3.key"), "s"
));
final AtomicBoolean set = new AtomicBoolean();
final S3Session session = new S3Session(host);
session.withListener(new TranscriptListener() {
@Override
public void log(final Type request, final String message) {
switch(request) {
case request:
if(message.contains("Host:")) {
assertEquals("Host: cyberduck.io", message);
set.set(true);
}
}
}
});
session.open(new DisabledProxyFinder(), new DisabledHostKeyCallback(), new DisabledLoginCallback(), new DisabledCancelCallback());
session.login(new DisabledLoginCallback(), new DisabledCancelCallback());
assertTrue(set.get());
}

@Test
public void testFeatures() {
final S3Session aws = new S3Session(new Host(new S3Protocol(), new S3Protocol().getDefaultHostname()));
Expand Down

0 comments on commit ebbed78

Please sign in to comment.