Skip to content

Commit

Permalink
Fix TrailingDotSniTest not to use TlsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Jan 14, 2025
1 parent 7acfa94 commit 9bda1c7
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.linecorp.armeria.common.AggregatedHttpResponse;
import com.linecorp.armeria.common.HttpResponse;
import com.linecorp.armeria.common.HttpStatus;
import com.linecorp.armeria.common.TlsProvider;
import com.linecorp.armeria.internal.testing.MockAddressResolverGroup;
import com.linecorp.armeria.server.ServerBuilder;
import com.linecorp.armeria.testing.junit5.server.SelfSignedCertificateExtension;
Expand All @@ -44,12 +43,12 @@ class TrailingDotSniTest {
@Override
protected void configure(ServerBuilder sb) {
sb.https(0);
sb.tlsProvider(TlsProvider.builder()
.keyPair("example.com", ssc.tlsKeyPair())
.build());
sb.service("/", (ctx, req) -> {
return HttpResponse.of(200);
});
sb.tlsSelfSigned();
sb.virtualHost("example.com")
.tls(ssc.privateKey(), ssc.certificate())
.service("/", (ctx, req) -> {
return HttpResponse.of(200);
});
}
};

Expand Down

0 comments on commit 9bda1c7

Please sign in to comment.